]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: ti: Tighten some TI clock driver dependencies
authorTom Rini <trini@konsulko.com>
Mon, 6 Oct 2025 15:38:59 +0000 (09:38 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 5 Dec 2025 21:04:52 +0000 (15:04 -0600)
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.

Reviewed-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/clk/ti/Kconfig

index fdda283d6d374b28230c68a8b29720184680c67b..34fba0899921891360d26b91e994818bbea5b197 100644 (file)
@@ -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.