clk: sifive: select by default if SOC_SIFIVE
authorConor Dooley <conor.dooley@microchip.com>
Wed, 5 Oct 2022 17:13:44 +0000 (18:13 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 17 Oct 2022 21:07:11 +0000 (14:07 -0700)
With the aim of dropping direct selects of drivers from Kconfig.socs,
default the SiFive clock drivers to the value of SOC_SIFIVE.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221005171348.167476-2-conor@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sifive/Kconfig

index 9132c3c..b7fde0a 100644 (file)
@@ -2,7 +2,8 @@
 
 menuconfig CLK_SIFIVE
        bool "SiFive SoC driver support"
-       depends on RISCV || COMPILE_TEST
+       depends on SOC_SIFIVE || COMPILE_TEST
+       default SOC_SIFIVE
        help
          SoC drivers for SiFive Linux-capable SoCs.
 
@@ -10,6 +11,7 @@ if CLK_SIFIVE
 
 config CLK_SIFIVE_PRCI
        bool "PRCI driver for SiFive SoCs"
+       default SOC_SIFIVE
        select RESET_CONTROLLER
        select RESET_SIMPLE
        select CLK_ANALOGBITS_WRPLL_CLN28HPC