9
0
Fork 0

common.h: use special IOMEM() for MIPS

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2014-09-10 11:42:18 +04:00 committed by Sascha Hauer
parent 5a5ba5ad30
commit 1feeb8da0d
1 changed files with 6 additions and 0 deletions

View File

@ -271,7 +271,13 @@ void barebox_set_model(const char *);
const char *barebox_get_hostname(void);
void barebox_set_hostname(const char *);
#if defined(CONFIG_MIPS)
#include <asm/addrspace.h>
#define IOMEM(addr) ((void __force __iomem *)CKSEG1ADDR(addr))
#else
#define IOMEM(addr) ((void __force __iomem *)(addr))
#endif
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))