diff options
Diffstat (limited to 'arch/arm/mach-realview/include/mach/hardware.h')
-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 |