9443fdd5683722ec9dce5b2de9a19da0ee328f9a
[buildroot.git] /
1 From 523ab5be1a84e9aa15fb62c3a15a6338b01d3961 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= <peron.clem@gmail.com>
3 Date: Tue, 9 Apr 2019 00:15:06 +0200
4 Subject: [PATCH] plat: allwinner: common: use r_wdog instead of wdog
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Some Allwinner H6 has a broken watchdog that doesn't
10 make the soc reboot.
11
12 Use the R_WATCHDOG instead.
13
14 Signed-off-by: Clément Péron <peron.clem@gmail.com>
15 Change-Id: Ie95cc30a80ed517b60b30d6bc2e655a1b53f18ba
16 ---
17 plat/allwinner/common/sunxi_pm.c | 6 +++---
18 1 file changed, 3 insertions(+), 3 deletions(-)
19
20 diff --git a/plat/allwinner/common/sunxi_pm.c b/plat/allwinner/common/sunxi_pm.c
21 index 1d2dc938..13e13532 100644
22 --- a/plat/allwinner/common/sunxi_pm.c
23 +++ b/plat/allwinner/common/sunxi_pm.c
24 @@ -20,9 +20,9 @@
25 #include <sunxi_mmap.h>
26 #include <sunxi_private.h>
27
28 -#define SUNXI_WDOG0_CTRL_REG (SUNXI_WDOG_BASE + 0x0010)
29 -#define SUNXI_WDOG0_CFG_REG (SUNXI_WDOG_BASE + 0x0014)
30 -#define SUNXI_WDOG0_MODE_REG (SUNXI_WDOG_BASE + 0x0018)
31 +#define SUNXI_WDOG0_CTRL_REG (SUNXI_R_WDOG_BASE + 0x0010)
32 +#define SUNXI_WDOG0_CFG_REG (SUNXI_R_WDOG_BASE + 0x0014)
33 +#define SUNXI_WDOG0_MODE_REG (SUNXI_R_WDOG_BASE + 0x0018)
34
35 #define mpidr_is_valid(mpidr) ( \
36 MPIDR_AFFLVL3_VAL(mpidr) == 0 && \
37 --
38 2.20.1
39