]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: Tighten some clock driver dependencies
authorTom Rini <trini@konsulko.com>
Fri, 18 Jul 2025 01:14:18 +0000 (19:14 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 18:25:23 +0000 (12:25 -0600)
A few clock drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/clk/Kconfig
drivers/clk/at91/Kconfig
drivers/clk/sifive/Kconfig
drivers/clk/ti/Kconfig

index e6483ddc88b531146d6774362034cc017923eae6..b884a02bdebac74404e3422195deb491cc4a8267 100644 (file)
@@ -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.
 
index 4563892647bec49cf6e7107dd7758743ed810737..faeaa2808b03522603de4ed47e21589453c71584 100644 (file)
@@ -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.
index 20fc004b59e96ed7bc02c7e6e971f99abf93f448..01e4f33415e17498d4bccf5e3536a00993afab51 100644 (file)
@@ -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.
 
index bcf3976a09fcc54d5575aab327140e33b686dcd1..fdda283d6d374b28230c68a8b29720184680c67b 100644 (file)
@@ -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.