summaryrefslogtreecommitdiff
path: root/arch/arm/mach-footbridge/include/mach/io.h
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2011-03-10 05:12:25 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-03-10 10:04:30 +0000
commit6fa85e5ce311a8c57fe32cb6403961f7a897112d (patch)
tree14213d22c822e433494b034327901377c8ebba4d /arch/arm/mach-footbridge/include/mach/io.h
parentbf9dd36091695f1138a98b6ae85d565e60635545 (diff)
ARM: 6796/1: Footbridge: Fix I/O mappings for NOMMU mode
Use the correct I/O address definitions for Footbridge peripherals when the kernel is compiled without MMU support. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-footbridge/include/mach/io.h')
-rw-r--r--arch/arm/mach-footbridge/include/mach/io.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-footbridge/include/mach/io.h b/arch/arm/mach-footbridge/include/mach/io.h
index 101a4fe90bde..32e4cc397c28 100644
--- a/arch/arm/mach-footbridge/include/mach/io.h
+++ b/arch/arm/mach-footbridge/include/mach/io.h
@@ -14,8 +14,14 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H
-#define PCIO_SIZE 0x00100000
-#define PCIO_BASE 0xff000000
+#ifdef CONFIG_MMU
+#define MMU_IO(a, b) (a)
+#else
+#define MMU_IO(a, b) (b)
+#endif
+
+#define PCIO_SIZE 0x00100000
+#define PCIO_BASE MMU_IO(0xff000000, 0x7c000000)
#define IO_SPACE_LIMIT 0xffff