]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx6: DHCOM i.MX6 PDK: Enable sysreset driver and wdt command
authorClaudius Heine <ch@denx.de>
Fri, 29 Nov 2019 07:59:03 +0000 (08:59 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:56 +0000 (10:26 +0100)
The SPL does not have DM enabled and therefor still needs to use the
hardware watchdog interface provided by the imx-watchdog driver.

Fixes: broken reset command after f2929d11a639 ("watchdog: imx: Use
       immediate reset bits for expire_now")

Signed-off-by: Claudius Heine <ch@denx.de>
configs/dh_imx6_defconfig
include/configs/dh_imx6.h

index 0a38da619a8976cedb23d9ba452447818ae5bb74..db5152dd164dfe845c4400d0dc9480db03114568 100644 (file)
@@ -40,6 +40,7 @@ CONFIG_CMD_MMC=y
 CONFIG_CMD_SATA=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_WDT=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_EXT4_WRITE=y
@@ -83,6 +84,8 @@ CONFIG_DM_SCSI=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_MXC_SPI=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
index d762d2cb19b5b7a4f44d2f9f67808e3914b544a8..087d020cdd378fba032612b0ad02faadd4c85e5a 100644 (file)
 #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