Skip to contentSkip to conversation

clk: ti: Tighten some TI clock driver dependencies

PATCH In review Tom Rini 1 participant 2 messages Oct 6, 2025 – Dec 6, 2025

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/1 clk: ti: Tighten some TI clock driver dependencies

Attempting to build with "allyesconfig" means that we try and build all available options for the sandbox platforms. Doing so exposes that the drivers under drivers/clk/ti/ can only be compiled or linked on ARCH_OMAP2PLUS platforms as some drivers require platform specific headers while other drivers depend on these first drivers to link. Express those requirements in Kconfig as well.

---
Changes in v2:
- Make it clearer how I hit this problem, and that it's ARCH_OMAP2PLUS specific drivers here.
- Add Manorit's tag.

Cc Lukasz Majewski <[email protected]>
Cc Sean Anderson <[email protected]>
Cc Manorit Chawdhry <[email protected]>
Cc Andrew Davis <[email protected]>
Cc Udit Kumar <[email protected]>
---
 drivers/clk/ti/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clk/ti/Kconfig +3 -3
index fbcdefd889ae..ae39e94cc867 100644
@@ -18,19 +18,19 @@ config CLK_TI_CTRL
 
 config CLK_TI_DIVIDER
 	bool "TI divider clock driver"
-	depends on CLK && OF_CONTROL && CLK_CCF
+	depends on CLK && OF_CONTROL && CLK_CCF && ARCH_OMAP2PLUS
 	help
 	  This enables the divider clock driver support on TI's SoCs.
 
 config CLK_TI_GATE
 	bool "TI gate clock driver"
-	depends on CLK && OF_CONTROL
+	depends on CLK && OF_CONTROL && ARCH_OMAP2PLUS
 	help
 	  This enables the gate clock driver support on TI's SoCs.
 
 config CLK_TI_MUX
 	bool "TI mux clock driver"
-	depends on CLK && OF_CONTROL && CLK_CCF
+	depends on CLK && OF_CONTROL && CLK_CCF && ARCH_OMAP2PLUS
 	help
 	  This enables the mux clock driver support on TI's SoCs.
 
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 8 lines · Tom Rini

Attempting to build with "allyesconfig" means that we try and build all available options for the sandbox platforms. Doing so exposes that the drivers under drivers/clk/ti/ can only be compiled or linked on ARCH_OMAP2PLUS platforms as some drivers require platform specific headers while other drivers depend on these first drivers to link. Express those requirements in Kconfig as well.

[...]

Applied to u-boot/next, thanks!

[1/1] clk: ti: Tighten some TI clock driver dependencies

      commit: 9d69a2d8a092abab761f57795e906a7a579b3a00
Signature · 1 line
Tom