Skip to contentSkip to conversation

timer: Correct Kconfig entry for XILINX_TIMER

PATCH Applied Tom Rini 2 participants 2 messages Mar 17

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 timer: Correct Kconfig entry for XILINX_TIMER

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).

---
Cc: Michal Simek <[email protected]>

---
 drivers/timer/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/timer/Kconfig +1 -1
index 24c141c60ae9..500a25638a96 100644
@@ -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).
Signature · 1 line
2.43.0
Applied
#1 lore raw
Quoted 18 lines · Tom Rini

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).

---
Cc: Michal Simek <[email protected]>

---
  drivers/timer/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/timer/Kconfig +0 -0
index 24c141c60ae9..500a25638a96 100644

drivers/timer/Kconfig config XILINX_TIMER · line 334

Quoted 8 lines
drivers/timer/Kconfig +1 -1
@@ -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).

Applied.
M