summaryrefslogtreecommitdiffstats
path: root/board/micronas
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-01-09 17:32:46 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-01-16 21:06:46 +0100
commit0c7fd8f4660ed612db5d9e9343f77edfe5af090b (patch)
treeb324506cbf44eb9e78bcf8468f46b26e043bc72e /board/micronas
parent8061cfc942f22e7e9a98897d041966f619308cad (diff)
downloadblackbird-obmc-uboot-0c7fd8f4660ed612db5d9e9343f77edfe5af090b.tar.gz
blackbird-obmc-uboot-0c7fd8f4660ed612db5d9e9343f77edfe5af090b.zip
MIPS: vct: fix I/O accessor calls
Use void pointers as address argument for readl( and writel()). This is required for the upcoming MIPS asm header file and I/O accessor update. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'board/micronas')
-rw-r--r--board/micronas/vct/vct.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/micronas/vct/vct.h b/board/micronas/vct/vct.h
index 0a1c5fcb82..67da6a8e73 100644
--- a/board/micronas/vct/vct.h
+++ b/board/micronas/vct/vct.h
@@ -80,12 +80,14 @@ void vct_pin_mux_initialize(void);
*/
static inline void reg_write(u32 addr, u32 data)
{
- __raw_writel(data, addr + REG_GLOBAL_START_ADDR);
+ void *reg = (void *)(addr + REG_GLOBAL_START_ADDR);
+ __raw_writel(data, reg);
}
static inline u32 reg_read(u32 addr)
{
- return __raw_readl(addr + REG_GLOBAL_START_ADDR);
+ const void *reg = (const void *)(addr + REG_GLOBAL_START_ADDR);
+ return __raw_readl(reg);
}
#endif /* _VCT_H */
OpenPOWER on IntegriCloud