Message ID | 20220919011735.15969-1-teik.heng.chong@intel.com |
---|---|
State | Needs Review / ACK, archived |
Delegated to: | Marek Vasut |
Headers | show |
Series | arm: socfpga: switching watchdog 0 to watchdog 1 | expand |
diff --git a/arch/arm/mach-socfpga/spl_a10.c b/arch/arm/mach-socfpga/spl_a10.c index 5d661fb995..f743c0624f 100644 --- a/arch/arm/mach-socfpga/spl_a10.c +++ b/arch/arm/mach-socfpga/spl_a10.c @@ -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(); diff --git a/include/configs/socfpga_arria10_socdk.h b/include/configs/socfpga_arria10_socdk.h index f712928d3c..cc2aeebe5b 100644 --- a/include/configs/socfpga_arria10_socdk.h +++ b/include/configs/socfpga_arria10_socdk.h @@ -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__ */