diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:34:57 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:34:57 -0400 |
commit | 5d57795e26c413656725c26bd053dbee3711adee (patch) | |
tree | 99dcb007b88467a13cfc09805d5d730d62fbe27a /arch/arm/mach-realview/include | |
parent | 365f7a43497dfdfdc05ca03896a8e22ee6944179 (diff) |
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/include')
-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 b42c14f89acb..8a638d15797f 100644 --- a/arch/arm/mach-realview/include/mach/hardware.h +++ b/arch/arm/mach-realview/include/mach/hardware.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/sizes.h> | 25 | #include <asm/sizes.h> |
26 | 26 | ||
27 | /* macro to get at IO space when running virtually */ | 27 | /* macro to get at IO space when running virtually */ |
28 | #ifdef CONFIG_MMU | ||
28 | /* | 29 | /* |
29 | * Statically mapped addresses: | 30 | * Statically mapped addresses: |
30 | * | 31 | * |
@@ -33,6 +34,9 @@ | |||
33 | * 1fxx xxxx -> fexx xxxx | 34 | * 1fxx xxxx -> fexx xxxx |
34 | */ | 35 | */ |
35 | #define IO_ADDRESS(x) (((x) & 0x03ffffff) + 0xfb000000) | 36 | #define IO_ADDRESS(x) (((x) & 0x03ffffff) + 0xfb000000) |
37 | #else | ||
38 | #define IO_ADDRESS(x) (x) | ||
39 | #endif | ||
36 | #define __io_address(n) __io(IO_ADDRESS(n)) | 40 | #define __io_address(n) __io(IO_ADDRESS(n)) |
37 | 41 | ||
38 | #endif | 42 | #endif |