-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atf: Add fix for Allwinner H6 reboot issue
- Loading branch information
1 parent
5897e81
commit 531c478
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
packages/tools/atf/patches/01-plat-allwinner-h6-add-wdt_quirk-to-use-r_wdt-instead.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 523ab5be1a84e9aa15fb62c3a15a6338b01d3961 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= <peron.clem@gmail.com> | ||
Date: Tue, 9 Apr 2019 00:15:06 +0200 | ||
Subject: [PATCH] plat: allwinner: common: use r_wdog instead of wdog | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
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 | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/plat/allwinner/common/sunxi_pm.c b/plat/allwinner/common/sunxi_pm.c | ||
index 1d2dc93852..13e1353258 100644 | ||
--- a/plat/allwinner/common/sunxi_pm.c | ||
+++ b/plat/allwinner/common/sunxi_pm.c | ||
@@ -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 && \ |