Commit f227eea4 authored by Catalin Marinas's avatar Catalin Marinas

nommu: Add MMU-less support for RealView/EB

This patch redefines the IO_ADDRESS macro.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 3cfcfb37
......@@ -39,7 +39,11 @@
#define pcibios_assign_all_busses() 1
/* macro to get at IO space when running virtually */
#ifdef CONFIG_MMU
#define IO_ADDRESS(x) ((((x) & 0x0effffff) | (((x) >> 4) & 0x0f000000)) + 0xf0000000)
#else
#define IO_ADDRESS(x) (x)
#endif
#define __io_address(n) ((void __iomem *)IO_ADDRESS(n))
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment