rockchip: rk3288: Migrate to use common spl board file
[oweals/u-boot.git] / arch / arm / mach-uniphier / reset.c
index 43e27d12c3e15a3dd1c7103f5ab6e1db3f87f9c5..31685d00094015ae14db436be0ec7590acd58108 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2012-2014 Panasonic Corporation
  * Copyright (C) 2015-2016 Socionext Inc.
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -23,14 +22,14 @@ void __SECURE reset_cpu(unsigned long ignored)
 {
        u32 tmp;
 
-       writel(5, SC_IRQTIMSET); /* default value */
+       writel(5, sc_base + SC_IRQTIMSET); /* default value */
 
-       tmp  = readl(SC_SLFRSTSEL);
+       tmp  = readl(sc_base + SC_SLFRSTSEL);
        tmp &= ~0x3; /* mask [1:0] */
        tmp |= 0x0;  /* XRST reboot */
-       writel(tmp, SC_SLFRSTSEL);
+       writel(tmp, sc_base + SC_SLFRSTSEL);
 
-       tmp = readl(SC_SLFRSTCTL);
+       tmp = readl(sc_base + SC_SLFRSTCTL);
        tmp |= 0x1;
-       writel(tmp, SC_SLFRSTCTL);
+       writel(tmp, sc_base + SC_SLFRSTCTL);
 }