]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx53-qsb: Convert to watchdog driver model
authorFabio Estevam <festevam@gmail.com>
Wed, 21 Feb 2024 17:39:30 +0000 (14:39 -0300)
committerFabio Estevam <festevam@denx.de>
Sat, 24 Feb 2024 19:29:00 +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: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx53-qsb-u-boot.dtsi [new file with mode: 0644]
configs/mx53loco_defconfig

diff --git a/arch/arm/dts/imx53-qsb-u-boot.dtsi b/arch/arm/dts/imx53-qsb-u-boot.dtsi
new file mode 100644 (file)
index 0000000..18cf708
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/ {
+       wdt-reboot {
+               compatible = "wdt-reboot";
+               wdt = <&wdog1>;
+               bootph-pre-ram;
+       };
+};
+
+&wdog1 {
+       bootph-pre-ram;
+};
index d4de8df7b49d92d99fef1a568324535fe494bd8a..e2d3bc0b094e530f87e6e27f2cc0fdd8f97916f4 100644 (file)
@@ -60,6 +60,8 @@ CONFIG_POWER_FSL=y
 CONFIG_POWER_I2C=y
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_MX5=y
 CONFIG_USB_STORAGE=y
@@ -67,3 +69,4 @@ CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
 CONFIG_USB_ETHER_MCS7830=y
 CONFIG_USB_ETHER_SMSC95XX=y
+CONFIG_IMX_WATCHDOG=y