ARC: AXS10x: drop NAND support
[oweals/u-boot.git] / board / micronas / vct / vct.h
index f1a485113144c84d98d02586bb174d5372a87100..22b35b2c5b028b4074ba2f2a7d2a4cefd69d0e2c 100644 (file)
@@ -1,22 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
  *
  * 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
  */
 
 #include <asm/io.h>
@@ -93,12 +79,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 */