diff options
| author | Alice Guo <[email protected]> | 2026-05-19 14:22:07 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2026-06-05 08:58:00 -0300 |
| commit | 3cacd1b1809d9eecffb8b05a9094e234c7227d4b (patch) | |
| tree | 4c0c7ab9832b9f553f18c1a27b3748483078a63f /configs/mx7ulp_com_defconfig | |
| parent | 5ca1f5b54d036f193f4b87974ecf8df8617436ce (diff) | |
watchdog: ulp_wdog: Use driver model for reset_cpu()
Replace hardcoded WDOG_BASE_ADDR with driver model based dynamic address
lookup from device tree, allowing reset_cpu() to dynamically locate
watchdog devices from device tree.
This change also enables CONFIG_WDT for relevant boards and ensures the
watchdog nodes are available for driver model usage.
- Remove hardcoded WDOG_BASE_ADDR from hw_watchdog_* functions
- Reimplement reset_cpu() using UCLASS_WDT device iteration
- Add ulp_wdt_expire_now() callback for standard WDT interface
- Pass wdog register pointer to hw_watchdog_set_timeout()
- Enable CONFIG_WDT for boards using ULP watchdog
- Remove wdog3 status = "disabled" overrides from U-Boot device tree
overlays, as the watchdog device needs to be accessible for driver
model based reset functionality.
Signed-off-by: Alice Guo <[email protected]>
Acked-by: Francesco Dolcini <[email protected]> # Toradex boards
Reviewed-by: Peng Fan <[email protected]>
Diffstat (limited to 'configs/mx7ulp_com_defconfig')
| -rw-r--r-- | configs/mx7ulp_com_defconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/mx7ulp_com_defconfig b/configs/mx7ulp_com_defconfig index d63168fe886..c9c3f6b5f26 100644 --- a/configs/mx7ulp_com_defconfig +++ b/configs/mx7ulp_com_defconfig @@ -63,3 +63,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 CONFIG_CI_UDC=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_ULP_WATCHDOG=y +CONFIG_WDT=y |
