0001-plat-allwinner-common-use-r_wdog-instead-of-wdog.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. Some Allwinner H6 has a broken watchdog that doesn't
  9. make the soc reboot.
  10. Use the R_WATCHDOG instead.
  11. Signed-off-by: Clément Péron <peron.clem@gmail.com>
  12. Change-Id: Ie95cc30a80ed517b60b30d6bc2e655a1b53f18ba
  13. ---
  14. plat/allwinner/common/sunxi_pm.c | 6 +++---
  15. 1 file changed, 3 insertions(+), 3 deletions(-)
  16. diff --git a/plat/allwinner/common/sunxi_pm.c b/plat/allwinner/common/sunxi_pm.c
  17. index 1d2dc938..13e13532 100644
  18. --- a/plat/allwinner/common/sunxi_pm.c
  19. +++ b/plat/allwinner/common/sunxi_pm.c
  20. @@ -20,9 +20,9 @@
  21. #include <sunxi_mmap.h>
  22. #include <sunxi_private.h>
  23. -#define SUNXI_WDOG0_CTRL_REG (SUNXI_WDOG_BASE + 0x0010)
  24. -#define SUNXI_WDOG0_CFG_REG (SUNXI_WDOG_BASE + 0x0014)
  25. -#define SUNXI_WDOG0_MODE_REG (SUNXI_WDOG_BASE + 0x0018)
  26. +#define SUNXI_WDOG0_CTRL_REG (SUNXI_R_WDOG_BASE + 0x0010)
  27. +#define SUNXI_WDOG0_CFG_REG (SUNXI_R_WDOG_BASE + 0x0014)
  28. +#define SUNXI_WDOG0_MODE_REG (SUNXI_R_WDOG_BASE + 0x0018)
  29. #define mpidr_is_valid(mpidr) ( \
  30. MPIDR_AFFLVL3_VAL(mpidr) == 0 && \
  31. --
  32. 2.20.1