All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog: Fix watchdog enablement in SPL and TPL
@ 2021-08-30 22:03 Marek Vasut
  2021-08-31  6:49 ` Marcel Ziswiler
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2021-08-30 22:03 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Pali Rohar, Stefan Roese

Commit 830d29ac372 ("watchdog: Allow to use CONFIG_WDT without starting watchdog")
completely broke WDT operation in both SPL and TPL, in either case those
WDTs are never enabled. Fix it by filling in the missing Kconfig options
for SPL and TPL.

Fixes: 830d29ac372 ("watchdog: Allow to use CONFIG_WDT without starting watchdog")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Pali Rohar <pali@kernel.org>
Cc: Stefan Roese <sr@denx.de>
---
 drivers/watchdog/Kconfig | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index f0ff2612a6b..65d974c4dd5 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -273,4 +273,24 @@ config SPL_WDT
 	  Enable driver model for watchdog timer in SPL.
 	  This is similar to CONFIG_WDT in U-Boot.
 
+config SPL_WATCHDOG_AUTOSTART
+	bool "Automatically start watchdog timer in SPL"
+	depends on SPL && WDT
+	default y
+	help
+	  Automatically start watchdog timer and start servicing it during
+	  SPL phase. Enabled by default. Disable this option if you want
+	  to compile U-Boot with CONFIG_WDT support but do not want to
+	  activate watchdog, like when CONFIG_WDT option is disabled.
+
+config TPL_WATCHDOG_AUTOSTART
+	bool "Automatically start watchdog timer in TPL"
+	depends on TPL && WDT
+	default y
+	help
+	  Automatically start watchdog timer and start servicing it during
+	  TPL phase. Enabled by default. Disable this option if you want
+	  to compile U-Boot with CONFIG_WDT support but do not want to
+	  activate watchdog, like when CONFIG_WDT option is disabled.
+
 endmenu
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-02  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 22:03 [PATCH] watchdog: Fix watchdog enablement in SPL and TPL Marek Vasut
2021-08-31  6:49 ` Marcel Ziswiler
2021-08-31  9:17   ` Marek Vasut
2021-09-02  7:30     ` Marcel Ziswiler
2021-09-02  7:49       ` Stefan Roese
2021-09-02  9:29         ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.