]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
opos6uldev: Convert to watchdog driver model
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Fri, 23 Feb 2024 11:28:04 +0000 (12:28 +0100)
committerFabio Estevam <festevam@denx.de>
Sat, 24 Feb 2024 19:29:24 +0000 (16:29 -0300)
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: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx6ul-opos6ul-u-boot.dtsi
configs/opos6uldev_defconfig

index ebfb95dcdf4bace575a095491c88250924e79c2f..e65eeb8d8cebce856e0dfb58c6c2341cff03a89b 100644 (file)
@@ -9,6 +9,12 @@
        soc {
                bootph-pre-ram;
        };
+
+       wdt-reboot {
+               compatible = "wdt-reboot";
+               wdt = <&wdog1>;
+               bootph-pre-ram;
+       };
 };
 
 &aips2 {
@@ -26,3 +32,7 @@
 &usdhc1 {
        bootph-pre-ram;
 };
+
+&wdog1 {
+       bootph-pre-ram;
+};
index ac4170d2e49a5681bd9a469a9983e9b8e86d37ca..e1884df9dd2369e7897c803b85a2a1d375dc40ab 100644 (file)
@@ -102,6 +102,8 @@ CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
@@ -123,4 +125,5 @@ CONFIG_SPLASH_SOURCE=y
 CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
+CONFIG_IMX_WATCHDOG=y
 # CONFIG_EFI_LOADER is not set