Skip to contentSkip to conversation

arm: socfpga: switching watchdog 0 to watchdog 1

PATCH New [email protected] 1 participant 1 message Sep 19, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: switching watchdog 0 to watchdog 1

From: Tien Fong Chee <[email protected]>

Switching to watchdog 1, because there is a hardware bug found in watchdog 0, it cannot reliable trigger a reset to the CPU.

More details can be referred in :
Linux commit "59d94d2ed45d598211feb52566e6a806d17f8a3f"

---
 arch/arm/mach-socfpga/spl_a10.c         | 4 ++--
 include/configs/socfpga_arria10_socdk.h | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)
arch/arm/mach-socfpga/spl_a10.c +2 -2
index 5d661fb995..f743c0624f 100644
@@ -263,8 +263,8 @@ void board_init_f(ulong dummy)
 	cm_basic_init(gd->fdt_blob);
 
 #ifdef CONFIG_HW_WATCHDOG
-	/* release watchdog 0 from reset */
-	socfpga_reset_deassert_wd0();
+	/* release watchdog 1 from reset */
+	socfpga_reset_deassert_wd1();
 
 	/* reconfigure and enable the watchdog */
 	hw_watchdog_init();
include/configs/socfpga_arria10_socdk.h +8 -0
index f712928d3c..cc2aeebe5b 100644
@@ -36,4 +36,12 @@
 /* The rest of the configuration is shared */
 #include <configs/socfpga_common.h>
 
+/*
+ * L4 Watchdog
+ */
+#ifdef CONFIG_HW_WATCHDOG
+#undef CONFIG_DW_WDT_BASE
+#define CONFIG_DW_WDT_BASE		SOCFPGA_L4WD1_ADDRESS
+#endif
+
 #endif	/* __CONFIG_SOCFGPA_ARRIA10_H__ */
Signature · 1 line
2.25.1