summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-09-05 11:55:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-12 12:01:49 +0200
commitecf5fe6c76584ee69536857d127f9a1a086d88d6 (patch)
treefe8d3e40f182c7620b7fe79a238ee5540b0efe96 /drivers/clk
parentabb1bf1ee5c61d5418bf6a033e2047b495b679f8 (diff)
downloadbarebox-ecf5fe6c76584ee69536857d127f9a1a086d88d6.tar.gz
barebox-ecf5fe6c76584ee69536857d127f9a1a086d88d6.tar.xz
clk: have SCMI and SiFive clock controllers depend on COMMON_CLK
Both drivers require CCF support, so move these into a new if COMMON_CLK. As we already have COMMON_CLK_STM32 with the same requirement, move it in there as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220905095557.596891-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/Kconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 5b5acf4e06..0faea6488e 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -20,10 +20,11 @@ config CLK_SOCFPGA
select COMMON_CLK_OF_PROVIDER
default y if ARCH_SOCFPGA && OFDEVICE
+if COMMON_CLK
config COMMON_CLK_STM32F
bool "STM32F4 and STM32F7 clock driver" if COMPILE_TEST
- depends on COMMON_CLK && ARCH_STM32
+ depends on ARCH_STM32
help
Support for stm32f4 and stm32f7 SoC families clocks
@@ -38,3 +39,5 @@ config COMMON_CLK_SCMI
firmware providing all the clock controls.
source "drivers/clk/sifive/Kconfig"
+
+endif