[RFC PATCH v2 32/56] imx: watchdog: Correct watchdog error condition

Simon Glass sjg at chromium.org
Sat Feb 4 01:25:55 CET 2023

This is intended to make sure that one of the conditions is met, but
causes a build error with imx6qdl_icore_mmc.

Fix it by using the PPL condition instead, so that nothing changes when
building for SPL with split config.

In fact we should drop the old watchdog code and just use the new
watchdog uclass.

Signed-off-by: Simon Glass <sjg at chromium.org>

(no changes since v1)

 include/watchdog.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/watchdog.h b/include/watchdog.h
index ddc81cd6c76..37123f6f6b0 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -28,7 +28,7 @@ int init_func_watchdog_reset(void);
-#if defined(CONFIG_HW_WATCHDOG) && defined(CONFIG_WATCHDOG)
 #  error "Configuration error: CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG can't be used together."

More information about the U-Boot mailing list