[PATCH] timer: Correct Kconfig entry for XILINX_TIMER

Tom Rini trini at konsulko.com
Tue Mar 17 02:24:46 CET 2026


As exposed by "make randconfig", we have an issue with the dependencies
for XILINX_TIMER. This symbol is a case where we have one that covers
both main U-Boot and SPL. In this case, we need to select SPL_REGMAP not
when SPL is enabled but rather when SPL_TIMER is enabled (and in turn,
SPL_DM).

Signed-off-by: Tom Rini <trini at konsulko.com>
---
Cc: Michal Simek <michal.simek at amd.com>
---
 drivers/timer/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig
index 24c141c60ae9..500a25638a96 100644
--- a/drivers/timer/Kconfig
+++ b/drivers/timer/Kconfig
@@ -328,7 +328,7 @@ config XILINX_TIMER
 	bool "Xilinx timer support"
 	depends on TIMER
 	select REGMAP
-	select SPL_REGMAP if SPL
+	select SPL_REGMAP if SPL_TIMER
 	help
 	  Select this to enable support for the timer found on
 	  any Xilinx boards (axi timer).
-- 
2.43.0



More information about the U-Boot mailing list