Skip to contentSkip to conversation

clk: Tighten some clock driver dependencies

PATCH In review Tom Rini 1 participant 2 messages Jul 18, 2025 – Oct 28, 2025

Subsystems (4)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

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

A few clock drivers cannot build without access to some platform specific header files. Express those requirements in Kconfig as well.

---
Changes in v2:
Also make CLK_CDCE9XX depend on ARCH_OMAP2PLUS rather than make the driver build for 64bit platforms.

Cc Lukasz Majewski <[email protected]>
Cc Sean Anderson <[email protected]>
---
 drivers/clk/Kconfig        | 4 ++--
 drivers/clk/at91/Kconfig   | 2 +-
 drivers/clk/sifive/Kconfig | 2 +-
 drivers/clk/ti/Kconfig     | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
drivers/clk/Kconfig +2 -2
index ef1e5355be87..87534bc08ec0 100644
@@ -131,7 +131,7 @@ config CLK_BOSTON
 
 config CLK_CDCE9XX
 	bool "Enable CDCD9XX clock driver"
-	depends on CLK
+	depends on CLK && ARCH_OMAP2PLUS
 	help
 	   Enable the clock synthesizer driver for CDCE913/925/937/949
 	   series of chips.
@@ -169,7 +169,7 @@ config CLK_K210_SET_RATE
 
 config CLK_MPC83XX
 	bool "Enable MPC83xx clock driver"
-	depends on CLK
+	depends on CLK && MPC83xx
 	help
 	  Support for the clock driver of the MPC83xx series of SoCs.
 
drivers/clk/at91/Kconfig +1 -1
index 4563892647be..faeaa2808b03 100644
@@ -1,6 +1,6 @@
 config CLK_AT91
 	bool "AT91 clock drivers"
-	depends on CLK
+	depends on CLK && ARCH_AT91
 	select MISC
 	help
 	  This option is used to enable the AT91 clock driver.
drivers/clk/sifive/Kconfig +1 -1
index 20fc004b59e9..01e4f33415e1 100644
@@ -2,7 +2,7 @@
 
 config CLK_SIFIVE
 	bool "SiFive SoC driver support"
-	depends on CLK
+	depends on CLK && RISCV
 	help
 	  SoC drivers for SiFive Linux-capable SoCs.
 
drivers/clk/ti/Kconfig +2 -2
index fbcdefd889ae..e0f15f57f826 100644
@@ -5,14 +5,14 @@
 
 config CLK_TI_AM3_DPLL
 	bool "TI AM33XX Digital Phase-Locked Loop (DPLL) clock drivers"
-	depends on CLK && OF_CONTROL
+	depends on CLK && OF_CONTROL && ARCH_OMAP2PLUS
 	help
 	  This enables the DPLL clock drivers support on AM33XX SoCs. The DPLL
 	  provides all interface clocks and functional clocks to the processor.
 
 config CLK_TI_CTRL
 	bool "TI OMAP4 clock controller"
-	depends on CLK && OF_CONTROL
+	depends on CLK && OF_CONTROL && ARCH_OMAP2PLUS
 	help
 	  This enables the clock controller driver support on TI's SoCs.
 
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 4 lines · Tom Rini

A few clock drivers cannot build without access to some platform specific header files. Express those requirements in Kconfig as well.

Applied to u-boot/master, thanks!

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

      commit: f30b6d12da1db7df7fec7c5927354514f3dc16b7
Signature · 1 line
Tom