[U-Boot] [PATCH 4/4] ARM: imx6: DHCOM i.MX6 PDK: Use HW_WATCHDOG in SPL

Claudius Heine ch at denx.de
Thu Nov 28 12:06:36 UTC 2019


The SPL does not have DM enabled and therefor needs to use the hardware
watchdog interface provided by the imx-watchdog driver.

Signed-off-by: Claudius Heine <ch at denx.de>
---
 include/configs/dh_imx6.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h
index d4bd88f511..77074aaa06 100644
--- a/include/configs/dh_imx6.h
+++ b/include/configs/dh_imx6.h
@@ -87,6 +87,11 @@
 #endif
 
 /* Watchdog */
+#if defined(CONFIG_SPL_BUILD)
+#undef CONFIG_WDT
+#undef CONFIG_WATCHDOG
+#define CONFIG_HW_WATCHDOG
+#endif
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
-- 
2.21.0



More information about the U-Boot mailing list