clk: bcm: Make BCM2835 clock drivers selectable
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 9 May 2019 20:29:55 +0000 (13:29 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 6 Jun 2019 20:34:08 +0000 (13:34 -0700)
Make the BCM2835 clock driver selectable by other
architectures/platforms. ARCH_BRCMSTB will be selecting that driver in
the next commit since new chips like 7211 use the same CPRMAN clock
controller that this driver supports.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/Kconfig
drivers/clk/bcm/Makefile

index 4c4bd85..0b873e2 100644 (file)
@@ -1,3 +1,12 @@
+config CLK_BCM2835
+       bool "Broadcom BCM2835 clock support"
+       depends on ARCH_BCM2835 || COMPILE_TEST
+       depends on COMMON_CLK
+       default ARCH_BCM2835
+       help
+         Enable common clock framework support for Broadcom BCM2835
+         SoCs.
+
 config CLK_BCM_63XX
        bool "Broadcom BCM63xx clock support"
        depends on ARCH_BCM_63XX || COMPILE_TEST
index 002661d..e924f25 100644 (file)
@@ -5,8 +5,8 @@ obj-$(CONFIG_CLK_BCM_KONA)      += clk-kona-setup.o
 obj-$(CONFIG_CLK_BCM_KONA)     += clk-bcm281xx.o
 obj-$(CONFIG_CLK_BCM_KONA)     += clk-bcm21664.o
 obj-$(CONFIG_COMMON_CLK_IPROC) += clk-iproc-armpll.o clk-iproc-pll.o clk-iproc-asiu.o
-obj-$(CONFIG_ARCH_BCM2835)     += clk-bcm2835.o
-obj-$(CONFIG_ARCH_BCM2835)     += clk-bcm2835-aux.o
+obj-$(CONFIG_CLK_BCM2835)      += clk-bcm2835.o
+obj-$(CONFIG_CLK_BCM2835)      += clk-bcm2835-aux.o
 obj-$(CONFIG_ARCH_BCM_53573)   += clk-bcm53573-ilp.o
 obj-$(CONFIG_CLK_BCM_CYGNUS)   += clk-cygnus.o
 obj-$(CONFIG_CLK_BCM_HR2)      += clk-hr2.o