diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 12:34:57 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 12:34:57 +0100 |
commit | 5d57795e26c413656725c26bd053dbee3711adee (patch) | |
tree | 99dcb007b88467a13cfc09805d5d730d62fbe27a /arch/arm/mach-realview | |
parent | 365f7a43497dfdfdc05ca03896a8e22ee6944179 (diff) | |
download | kernel_samsung_espresso10-5d57795e26c413656725c26bd053dbee3711adee.zip kernel_samsung_espresso10-5d57795e26c413656725c26bd053dbee3711adee.tar.gz kernel_samsung_espresso10-5d57795e26c413656725c26bd053dbee3711adee.tar.bz2 |
nommu: Add MMU-less support for the RealView boards
This patch defines the IO_ADDRESS macro for the !CONFIG_MMU case.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r-- | arch/arm/mach-realview/include/mach/hardware.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/include/mach/hardware.h b/arch/arm/mach-realview/include/mach/hardware.h index b42c14f..8a638d1 100644 --- a/arch/arm/mach-realview/include/mach/hardware.h +++ b/arch/arm/mach-realview/include/mach/hardware.h @@ -25,6 +25,7 @@ #include <asm/sizes.h> /* macro to get at IO space when running virtually */ +#ifdef CONFIG_MMU /* * Statically mapped addresses: * @@ -33,6 +34,9 @@ * 1fxx xxxx -> fexx xxxx */ #define IO_ADDRESS(x) (((x) & 0x03ffffff) + 0xfb000000) +#else +#define IO_ADDRESS(x) (x) +#endif #define __io_address(n) __io(IO_ADDRESS(n)) #endif |