Commit 0c7fd8f4660ed612db5d9e9343f77edfe5af090b

Authored by Daniel Schwierzeck
1 parent 8061cfc942

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

board/micronas/vct/vct.h
... ... @@ -80,12 +80,14 @@
80 80 */
81 81 static inline void reg_write(u32 addr, u32 data)
82 82 {
83   - __raw_writel(data, addr + REG_GLOBAL_START_ADDR);
  83 + void *reg = (void *)(addr + REG_GLOBAL_START_ADDR);
  84 + __raw_writel(data, reg);
84 85 }
85 86  
86 87 static inline u32 reg_read(u32 addr)
87 88 {
88   - return __raw_readl(addr + REG_GLOBAL_START_ADDR);
  89 + const void *reg = (const void *)(addr + REG_GLOBAL_START_ADDR);
  90 + return __raw_readl(reg);
89 91 }
90 92  
91 93 #endif /* _VCT_H */