Skip to contentSkip to conversation

arm: socfpga: Gen5/A10: Enable Designware watchdog

PATCH In review Boon Khai Ng 2 participants 2 messages Feb 27 – Apr 15

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

PATCH 1/1 arm: socfpga: Gen5/A10: Enable Designware watchdog

From: Tien Fong Chee <[email protected]>

Some bootROMs enable the watchdog before jumping to SPL, so calling WATCHDOG_RESET() is required to reset watchdog timely especially in long looping. Enable Designware watchdog driver is required to support WATCHDOG_RESET().

Gen5 uses non device model watchdog HW_WATCHDOG due to OCRAM size limitation.

---
 arch/arm/mach-socfpga/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-socfpga/Kconfig +4 -0
index aec0fb7b1c8..49920a8a4d5 100644
@@ -90,8 +90,10 @@ config ARCH_SOCFPGA_ARRIA10
 	select SPL_ALTERA_SDRAM
 	select SPL_BOARD_INIT if SPL
 	select SPL_CACHE if SPL
+	select SPL_WDT if SPL
 	select CLK
 	select SPL_CLK if SPL
+	select DESIGNWARE_WATCHDOG
 	select DM_I2C
 	select DM_RESET
 	select SPL_DM_RESET if SPL
@@ -100,6 +102,7 @@ config ARCH_SOCFPGA_ARRIA10
 	select SYSCON
 	select SPL_SYSCON if SPL
 	select ETH_DESIGNWARE_SOCFPGA
+	select WDT
 	imply FPGA_SOCFPGA
 	imply SPL_USE_TINY_PRINTF
 
@@ -117,6 +120,7 @@ config ARCH_SOCFPGA_CYCLONE5
 
 config ARCH_SOCFPGA_GEN5
 	bool
+	select DESIGNWARE_WATCHDOG
 	select SPL_ALTERA_SDRAM
 	imply FPGA_SOCFPGA
 	imply SPL_SIZE_LIMIT_SUBTRACT_GD
Signature · 1 line
2.43.7
Reviewed-by on v1 1/1
#1 lore raw
Quoted 48 lines

From: NG, BOON KHAI <[email protected]>
Sent: Friday, February 27, 2026 4:48 PM
To: U-boot Openlist <[email protected]>
Cc: YUSLAIMI, ALIF ZAKUAN <[email protected]>; NG, BOON KHAI <[email protected]>; Brian Sune <[email protected]>; Marek Vasut <[email protected]>; Naresh Kumar Ravulapalli <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tingting Meng <[email protected]>; Tom Rini <[email protected]>; MANIYAM, DINESH <[email protected]>; LOK, CHEN HUEI <[email protected]>; Hea, Kok Kiang <[email protected]>
Subject: [PATCH v1] arm: socfpga: Gen5/A10: Enable Designware watchdog
From: Tien Fong Chee <[email protected]>
Some bootROMs enable the watchdog before jumping to SPL, so calling WATCHDOG_RESET() is required to reset watchdog timely especially in long looping. Enable Designware watchdog driver is required to support WATCHDOG_RESET().
Gen5 uses non device model watchdog HW_WATCHDOG due to OCRAM size limitation.

---
 arch/arm/mach-socfpga/Kconfig | 4 ++++

 1 file changed, 4 insertions(+)
arch/arm/mach-socfpga/Kconfig +0 -0
index aec0fb7b1c8..49920a8a4d5 100644
@@ -90,8 +90,10 @@ config ARCH_SOCFPGA_ARRIA10

         select SPL_ALTERA_SDRAM
         select SPL_BOARD_INIT if SPL
         select SPL_CACHE if SPL
+       select SPL_WDT if SPL
         select CLK
         select SPL_CLK if SPL
+       select DESIGNWARE_WATCHDOG
         select DM_I2C
         select DM_RESET
         select SPL_DM_RESET if SPL

arch/arm/mach-socfpga/Kconfig +0 -0
@@ -100,6 +102,7 @@ config ARCH_SOCFPGA_ARRIA10

         select SYSCON
         select SPL_SYSCON if SPL
         select ETH_DESIGNWARE_SOCFPGA
+       select WDT
         imply FPGA_SOCFPGA
         imply SPL_USE_TINY_PRINTF

arch/arm/mach-socfpga/Kconfig +0 -0
@@ -117,6 +120,7 @@ config ARCH_SOCFPGA_CYCLONE5
Quoted 8 lines

 config ARCH_SOCFPGA_GEN5
         bool
+       select DESIGNWARE_WATCHDOG
         select SPL_ALTERA_SDRAM
         imply FPGA_SOCFPGA
         imply SPL_SIZE_LIMIT_SUBTRACT_GD
--
2.43.7

Best regards,
Tien Fong