diff mbox series

[1/4] mx6slevk: Convert to watchdog driver model

Message ID 20240826180454.2778016-1-festevam@gmail.com
State Accepted
Delegated to: Fabio Estevam
Headers show
Series [1/4] mx6slevk: Convert to watchdog driver model | expand

Commit Message

Fabio Estevam Aug. 26, 2024, 6:04 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused
the 'reset' command in U-Boot to not cause a board reset.
    
Fix it by switching to the watchdog driver model via sysreset, which
is the preferred method for implementing the watchdog reset.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 configs/mx6slevk_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Fabio Estevam Sept. 2, 2024, 5:42 p.m. UTC | #1
On Mon, Aug 26, 2024 at 3:05 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> From: Fabio Estevam <festevam@denx.de>
>
> Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused
> the 'reset' command in U-Boot to not cause a board reset.
>
> Fix it by switching to the watchdog driver model via sysreset, which
> is the preferred method for implementing the watchdog reset.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Applied all, thanks.
diff mbox series

Patch

diff --git a/configs/mx6slevk_defconfig b/configs/mx6slevk_defconfig
index 9beb045d7df3..a9d7435c0e89 100644
--- a/configs/mx6slevk_defconfig
+++ b/configs/mx6slevk_defconfig
@@ -63,9 +63,13 @@  CONFIG_MXC_UART=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_MXC_SPI=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
+CONFIG_SYSRESET_WATCHDOG_AUTO=y
 CONFIG_DM_THERMAL=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
+CONFIG_IMX_WATCHDOG=y