diff mbox series

[1/1] reboot-mode: must depend on CONFIG_DM_RTC

Message ID 20240409184422.45023-1-heinrich.schuchardt@canonical.com
State Accepted
Commit a1802b3ce160026e7214cf7c56c529bc6500a898
Delegated to: Tom Rini
Headers show
Series [1/1] reboot-mode: must depend on CONFIG_DM_RTC | expand

Commit Message

Heinrich Schuchardt April 9, 2024, 6:44 p.m. UTC
Reading the boot mode from RTC memory requires a real time clock.
Add the missing Kconfig dependency.

Fixes: c74675bd904b ("reboot-mode: read the boot mode from RTC memory")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 drivers/reboot-mode/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini April 19, 2024, 1:57 a.m. UTC | #1
On Tue, 09 Apr 2024 20:44:22 +0200, Heinrich Schuchardt wrote:

> Reading the boot mode from RTC memory requires a real time clock.
> Add the missing Kconfig dependency.
> 
> 

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/drivers/reboot-mode/Kconfig b/drivers/reboot-mode/Kconfig
index d57baacc93d..bb518935188 100644
--- a/drivers/reboot-mode/Kconfig
+++ b/drivers/reboot-mode/Kconfig
@@ -24,6 +24,7 @@  config DM_REBOOT_MODE_GPIO
 
 config DM_REBOOT_MODE_RTC
 	bool "Use RTC as reboot mode backend"
+	depends on DM_RTC
 	depends on DM_REBOOT_MODE
 	help
 		Use RTC non volatile memory to control the reboot mode. This will allow users to boot