From: Catalin Marinas Date: Fri, 24 Jul 2009 11:34:57 +0000 (+0100) Subject: nommu: Add MMU-less support for the RealView boards X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d57795e26c413656725c26bd053dbee3711adee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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 @@ #include /* 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