Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172392
b: refs/heads/master
c: 5cb2faa
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Dec 4, 2009
1 parent 74aaa3a commit f7e0629
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6060e8df517847bf445ebc61de7d4d9c7faae990
refs/heads/master: 5cb2faa6ede7ada9cb2bffc832c4ce60f53d6834
8 changes: 8 additions & 0 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,14 @@ ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
M: Michael Petchkovsky <mkpetch@internode.on.net>
S: Maintained

ARM/NOMADIK ARCHITECTURE
M: Alessandro Rubini <rubini@unipv.it>
M: STEricsson <STEricsson_nomadik_linux@list.st.com>
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
S: Maintained
F: arch/arm/mach-nomadik/
F: arch/arm/plat-nomadik/

ARM/OPENMOKO NEO FREERUNNER (GTA02) MACHINE SUPPORT
M: Nelson Castillo <arhuaco@freaks-unidos.net>
L: openmoko-kernel@lists.openmoko.org (subscribers-only)
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/include/asm/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@
* private definitions which should NOT be used outside memory.h
* files. Use virt_to_phys/phys_to_virt/__pa/__va instead.
*/
#ifndef __virt_to_phys
#define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET)
#define __phys_to_virt(x) ((x) - PHYS_OFFSET + PAGE_OFFSET)
#endif

/*
* Convert a physical address to a Page Frame Number and back
Expand Down
19 changes: 19 additions & 0 deletions trunk/arch/arm/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
# define __SWAB_64_THRU_32__
#endif

#if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >= 6

static inline __attribute_const__ __u16 __arch_swab16(__u16 x)
{
__asm__ ("rev16 %0, %1" : "=r" (x) : "r" (x));
return x;
}
#define __arch_swab16 __arch_swab16

static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
{
__asm__ ("rev %0, %1" : "=r" (x) : "r" (x));
return x;
}
#define __arch_swab32 __arch_swab32

#else

static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
{
__u32 t;
Expand All @@ -48,3 +66,4 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)

#endif

#endif
35 changes: 6 additions & 29 deletions trunk/arch/arm/mach-bcmring/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,11 @@

#define IO_SPACE_LIMIT 0xffffffff

#define __io(a) ((void __iomem *)HW_IO_PHYS_TO_VIRT(a))

/* Do not enable mem_pci for a big endian arm architecture or unexpected byteswaps will */
/* happen in readw/writew etc. */

#define readb(c) __raw_readb(c)
#define readw(c) __raw_readw(c)
#define readl(c) __raw_readl(c)
#define readb_relaxed(addr) readb(addr)
#define readw_relaxed(addr) readw(addr)
#define readl_relaxed(addr) readl(addr)

#define readsb(p, d, l) __raw_readsb(p, d, l)
#define readsw(p, d, l) __raw_readsw(p, d, l)
#define readsl(p, d, l) __raw_readsl(p, d, l)

#define writeb(v, c) __raw_writeb(v, c)
#define writew(v, c) __raw_writew(v, c)
#define writel(v, c) __raw_writel(v, c)

#define writesb(p, d, l) __raw_writesb(p, d, l)
#define writesw(p, d, l) __raw_writesw(p, d, l)
#define writesl(p, d, l) __raw_writesl(p, d, l)

#define memset_io(c, v, l) _memset_io((c), (v), (l))
#define memcpy_fromio(a, c, l) _memcpy_fromio((a), (c), (l))
#define memcpy_toio(c, a, l) _memcpy_toio((c), (a), (l))

#define eth_io_copy_and_sum(s, c, l, b) eth_copy_and_sum((s), (c), (l), (b))
/*
* We don't actually have real ISA nor PCI buses, but there is so many
* drivers out there that might just work if we fake them...
*/
#define __io(a) __typesafe_io(a)
#define __mem_pci(a) (a)

#endif
2 changes: 1 addition & 1 deletion trunk/arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -774,5 +774,5 @@ config CACHE_XSC3L2

config ARM_L1_CACHE_SHIFT
int
default 6 if ARCH_OMAP3
default 6 if ARCH_OMAP3 || ARCH_S5PC1XX
default 5
25 changes: 16 additions & 9 deletions trunk/arch/arm/mm/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,25 @@ void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask)

l2x0_base = base;

/* disable L2X0 */
writel(0, l2x0_base + L2X0_CTRL);
/*
* Check if l2x0 controller is already enabled.
* If you are booting from non-secure mode
* accessing the below registers will fault.
*/
if (!(readl(l2x0_base + L2X0_CTRL) & 1)) {

aux = readl(l2x0_base + L2X0_AUX_CTRL);
aux &= aux_mask;
aux |= aux_val;
writel(aux, l2x0_base + L2X0_AUX_CTRL);
/* l2x0 controller is disabled */

l2x0_inv_all();
aux = readl(l2x0_base + L2X0_AUX_CTRL);
aux &= aux_mask;
aux |= aux_val;
writel(aux, l2x0_base + L2X0_AUX_CTRL);

/* enable L2X0 */
writel(1, l2x0_base + L2X0_CTRL);
l2x0_inv_all();

/* enable L2X0 */
writel(1, l2x0_base + L2X0_CTRL);
}

outer_cache.inv_range = l2x0_inv_range;
outer_cache.clean_range = l2x0_clean_range;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired)
clk = 255;
host->cclk = host->mclk / (2 * (clk + 1));
}
if (host->hw_designer == 0x80)
if (host->hw_designer == AMBA_VENDOR_ST)
clk |= MCI_FCEN; /* Bug fix in ST IP block */
clk |= MCI_CLK_ENABLE;
/* This hasn't proven to be worthwhile */
Expand Down

0 comments on commit f7e0629

Please sign in to comment.