arm: socfpga: switching watchdog 0 to watchdog 1
Subsystems (3)
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"
Signed-off-by Tien Fong Chee <[email protected]>
Signed-off-by Teik Heng Chong <[email protected]>
--- 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
@@ -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
@@ -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