diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-29 23:32:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-29 23:32:53 -0700 |
commit | 8f57be8ee44d92ef161c5af685aedbb717db96e0 (patch) | |
tree | d44a1cf0843390c6ff679f15e052ae1fc87680a8 /arch/arm/mach-at91/include/mach/io.h | |
parent | cb7dee8d22f3e9320424e769d860fbd9712a0666 (diff) | |
parent | fb149f9e2835446e02e796081635520b881dc351 (diff) | |
download | talos-op-linux-8f57be8ee44d92ef161c5af685aedbb717db96e0.tar.gz talos-op-linux-8f57be8ee44d92ef161c5af685aedbb717db96e0.zip |
Merge branch 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc:
at91: add arch specific ioremap support
at91: factorize sram init
at91: move register clocks to soc generic init
at91: move clock subsystem init to soc generic init
at91: use structure to store the current soc
at91: remove AT91_DBGU offset from dbgu register macro
at91: factorize at91 interrupts init to soc
at91: introduce commom AT91_BASE_SYS
Diffstat (limited to 'arch/arm/mach-at91/include/mach/io.h')
-rw-r--r-- | arch/arm/mach-at91/include/mach/io.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/include/mach/io.h b/arch/arm/mach-at91/include/mach/io.h index 0b0cccc46e68..4298e7806c76 100644 --- a/arch/arm/mach-at91/include/mach/io.h +++ b/arch/arm/mach-at91/include/mach/io.h @@ -21,14 +21,23 @@ #ifndef __ASM_ARCH_IO_H #define __ASM_ARCH_IO_H +#include <mach/hardware.h> + #define IO_SPACE_LIMIT 0xFFFFFFFF #define __io(a) __typesafe_io(a) #define __mem_pci(a) (a) - #ifndef __ASSEMBLY__ +#ifndef CONFIG_ARCH_AT91X40 +#define __arch_ioremap at91_ioremap +#define __arch_iounmap at91_iounmap +#endif + +void __iomem *at91_ioremap(unsigned long phys, size_t size, unsigned int type); +void at91_iounmap(volatile void __iomem *addr); + static inline unsigned int at91_sys_read(unsigned int reg_offset) { void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; |