summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-01-09 17:32:45 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-01-16 21:06:46 +0100
commit8061cfc942f22e7e9a98897d041966f619308cad (patch)
treec2d12a4e3f0352d2ec205d467ca39ef73703815f
parent995118292cdc0f67299e049c2b11b429e8c295c8 (diff)
downloadu-boot-imx-8061cfc942f22e7e9a98897d041966f619308cad.zip
u-boot-imx-8061cfc942f22e7e9a98897d041966f619308cad.tar.gz
u-boot-imx-8061cfc942f22e7e9a98897d041966f619308cad.tar.bz2
MIPS: malta: fix IO accessor call
Use void pointer as address argument for readl(). This is required for the upcoming MIPS asm header file and I/O accessor update. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-rw-r--r--board/imgtec/malta/malta.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c
index 79562f7..cae4a21 100644
--- a/board/imgtec/malta/malta.c
+++ b/board/imgtec/malta/malta.c
@@ -53,8 +53,9 @@ static void malta_lcd_puts(const char *str)
static enum core_card malta_core_card(void)
{
u32 corid, rev;
+ const void *reg = (const void *)CKSEG1ADDR(MALTA_REVISION);
- rev = __raw_readl(CKSEG1ADDR(MALTA_REVISION));
+ rev = __raw_readl(reg);
corid = (rev & MALTA_REVISION_CORID_MSK) >> MALTA_REVISION_CORID_SHF;
switch (corid) {