提交 5d57795e 编写于 作者: C Catalin Marinas

nommu: Add MMU-less support for the RealView boards

This patch defines the IO_ADDRESS macro for the !CONFIG_MMU case.
Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
上级 365f7a43
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <asm/sizes.h> #include <asm/sizes.h>
/* macro to get at IO space when running virtually */ /* macro to get at IO space when running virtually */
#ifdef CONFIG_MMU
/* /*
* Statically mapped addresses: * Statically mapped addresses:
* *
...@@ -33,6 +34,9 @@ ...@@ -33,6 +34,9 @@
* 1fxx xxxx -> fexx xxxx * 1fxx xxxx -> fexx xxxx
*/ */
#define IO_ADDRESS(x) (((x) & 0x03ffffff) + 0xfb000000) #define IO_ADDRESS(x) (((x) & 0x03ffffff) + 0xfb000000)
#else
#define IO_ADDRESS(x) (x)
#endif
#define __io_address(n) __io(IO_ADDRESS(n)) #define __io_address(n) __io(IO_ADDRESS(n))
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册