ARM: imx: m53menlo: Convert WDT support to DM
authorMarek Vasut <marex@denx.de>
Sun, 9 Jun 2019 16:46:45 +0000 (18:46 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 18:14:50 +0000 (20:14 +0200)
Enable DM Watchdog support on iMX53 M53Menlo.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/dts/imx53-m53menlo-u-boot.dtsi
configs/m53menlo_defconfig
include/configs/m53menlo.h

index 329fa3b..bc4b348 100644 (file)
                        u-boot,dm-pre-reloc;
                };
        };
+
+       wdt-reboot {
+               compatible = "wdt-reboot";
+               wdt = <&wdog1>;
+       };
 };
 
 &gpio1 {
index 3a5fa26..c551ea2 100644 (file)
@@ -72,6 +72,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_RTC_M41T62=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_EHCI_MX5=y
index 7b68c1c..e98dbfb 100644 (file)
                "fi ; "                                                 \
                "fi\0"
 
+#if defined(CONFIG_SPL_BUILD)
+#undef CONFIG_WATCHDOG
+#define CONFIG_HW_WATCHDOG
+#endif
+
 #endif /* __M53MENLO_CONFIG_H__ */