plat: allwinner: common: use r_wdog instead of wdog
authorClément Péron <peron.clem@gmail.com>
Mon, 8 Apr 2019 22:15:06 +0000 (00:15 +0200)
committerClément Péron <peron.clem@gmail.com>
Wed, 10 Apr 2019 23:57:24 +0000 (01:57 +0200)
Some Allwinner H6 has a broken watchdog that doesn't
make the soc reboot.

Use the R_WATCHDOG instead.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Change-Id: Ie95cc30a80ed517b60b30d6bc2e655a1b53f18ba

plat/allwinner/common/sunxi_pm.c

index 1d2dc938527f961d81a195a9f64224a0fb6a8d90..13e1353258c8c79c2697bb78c583a492ff82ec04 100644 (file)
@@ -20,9 +20,9 @@
 #include <sunxi_mmap.h>
 #include <sunxi_private.h>
 
-#define SUNXI_WDOG0_CTRL_REG           (SUNXI_WDOG_BASE + 0x0010)
-#define SUNXI_WDOG0_CFG_REG            (SUNXI_WDOG_BASE + 0x0014)
-#define SUNXI_WDOG0_MODE_REG           (SUNXI_WDOG_BASE + 0x0018)
+#define SUNXI_WDOG0_CTRL_REG           (SUNXI_R_WDOG_BASE + 0x0010)
+#define SUNXI_WDOG0_CFG_REG            (SUNXI_R_WDOG_BASE + 0x0014)
+#define SUNXI_WDOG0_MODE_REG           (SUNXI_R_WDOG_BASE + 0x0018)
 
 #define mpidr_is_valid(mpidr) ( \
        MPIDR_AFFLVL3_VAL(mpidr) == 0 && \