]> git.sur5r.net Git - u-boot/blobdiff - board/micronas/vct/vct.h
MIPS: vct: fix I/O accessor calls
[u-boot] / board / micronas / vct / vct.h
index f1a485113144c84d98d02586bb174d5372a87100..67da6a8e730590b2167b2b3e259494baf83d3bae 100644 (file)
@@ -3,20 +3,7 @@
  *
  * Copyright (C) 2006 Micronas GmbH
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <asm/io.h>
@@ -93,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 */