summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-integrator/include
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-07-24 12:34:57 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2009-07-24 12:34:57 +0100
commit365f7a43497dfdfdc05ca03896a8e22ee6944179 (patch)
tree4feeaf5d5424af24fa83fd248384ff09c0c48f34 /arch/arm/mach-integrator/include
parent9a45f026bb3ba720765d46f62f5c464d3317a8ab (diff)
downloadlinux-365f7a43497dfdfdc05ca03896a8e22ee6944179.tar.gz
linux-365f7a43497dfdfdc05ca03896a8e22ee6944179.tar.bz2
linux-365f7a43497dfdfdc05ca03896a8e22ee6944179.zip
nommu: Add MMU-less support for Integrator platforms
This patch redefines the IO_ADDRESS macro in include/asm-arm/hardware.h. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-integrator/include')
-rw-r--r--arch/arm/mach-integrator/include/mach/hardware.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-integrator/include/mach/hardware.h b/arch/arm/mach-integrator/include/mach/hardware.h
index 1251319ef9ae..d795642fad22 100644
--- a/arch/arm/mach-integrator/include/mach/hardware.h
+++ b/arch/arm/mach-integrator/include/mach/hardware.h
@@ -36,8 +36,12 @@
#define PCIO_BASE PCI_IO_VADDR
#define PCIMEM_BASE PCI_MEMORY_VADDR
+#ifdef CONFIG_MMU
/* macro to get at IO space when running virtually */
#define IO_ADDRESS(x) (((x) >> 4) + IO_BASE)
+#else
+#define IO_ADDRESS(x) (x)
+#endif
#define pcibios_assign_all_busses() 1