]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ge: mx53ppd: use imx wdt
authorRobert Beckett <bob.beckett@collabora.com>
Tue, 12 Nov 2019 19:15:20 +0000 (19:15 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:56 +0000 (10:26 +0100)
Enable DM imx WDT
Enable SYSRESET_WATCHDOG to maintain WDT based reset ability

Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
arch/arm/dts/imx53-ppd-uboot.dtsi [new file with mode: 0644]
arch/arm/dts/imx53-ppd.dts
board/ge/mx53ppd/mx53ppd.c
configs/mx53ppd_defconfig

diff --git a/arch/arm/dts/imx53-ppd-uboot.dtsi b/arch/arm/dts/imx53-ppd-uboot.dtsi
new file mode 100644 (file)
index 0000000..88dd7e2
--- /dev/null
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Copyright 2019 Collabora Ltd
+ * Copyright 2019 General Electric Company
+ */
+
+/ {
+       wdt-reboot {
+               compatible = "wdt-reboot";
+               wdt = <&wdog1>;
+       };
+};
index 8f3864998cea79c693a542339ea6e3b0c7e814e0..ae98361f9abefe716eeedee2f2d1cddf29878921 100644 (file)
@@ -43,6 +43,7 @@
 /dts-v1/;
 
 #include "imx53.dtsi"
+#include "imx53-ppd-uboot.dtsi"
 #include <dt-bindings/input/input.h>
 
 / {
index bfcee441c506acfaf77dd06d8de07dd7b20c7f22..105edd24cb6166b6bb1ad6f11af6fb030aa659c7 100644 (file)
@@ -297,7 +297,6 @@ int board_late_init(void)
                return res;
 
        print_cpuinfo();
-       hw_watchdog_init();
 
        check_time();
 
index 47481eaf6061e65b10c2ff2e48b26e70260a91de..7c44ea9be0d43ec8dcf1e8b18af0bb57e89ef441 100644 (file)
@@ -56,5 +56,8 @@ CONFIG_VIDEO=y
 # CONFIG_VIDEO_SW_CURSOR is not set
 CONFIG_WATCHDOG_TIMEOUT_MSECS=8000
 CONFIG_IMX_WATCHDOG=y
+CONFIG_WDT=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_USB=y