clk: versatile: Rework kconfig structure
authorRob Herring <robh@kernel.org>
Wed, 29 Apr 2020 20:58:13 +0000 (15:58 -0500)
committerRob Herring <robh@kernel.org>
Tue, 5 May 2020 16:43:14 +0000 (11:43 -0500)
CONFIG_COMMON_CLK_VERSATILE doesn't really do anything other than hiding
Arm Ltd reference platform clock drivers. It is both selected by the
platforms that need it and has a 'depends on' for those platforms. Let's
drop the selects and convert CONFIG_COMMON_CLK_VERSATILE into a
menuconfig entry. With this make CONFIG_ICST visible.

Move the 'select REGMAP_MMIO' to the drivers that require it (SP810 did
not).

This also has the side effect of enabling CONFIG_ICST for COMPILE_TEST
as it was not visible before.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/arm/mach-integrator/Kconfig
arch/arm/mach-realview/Kconfig
arch/arm/mach-versatile/Kconfig
arch/arm/mach-vexpress/Kconfig
arch/arm64/Kconfig.platforms
drivers/clk/Makefile
drivers/clk/versatile/Kconfig

index 982eabc..d59ba15 100644 (file)
@@ -3,7 +3,6 @@ menuconfig ARCH_INTEGRATOR
        bool "ARM Ltd. Integrator family"
        depends on ARCH_MULTI_V4T || ARCH_MULTI_V5 || ARCH_MULTI_V6
        select ARM_AMBA
-       select COMMON_CLK_VERSATILE
        select HAVE_TCM
        select ICST
        select MFD_SYSCON
index 44ebbf9..002404f 100644 (file)
@@ -6,7 +6,6 @@ menuconfig ARCH_REALVIEW
        select ARM_GIC
        select ARM_TIMER_SP804
        select CLK_SP810
-       select COMMON_CLK_VERSATILE
        select GPIO_PL061 if GPIOLIB
        select HAVE_ARM_SCU if SMP
        select HAVE_ARM_TWD if SMP
index f5c2754..d88e772 100644 (file)
@@ -6,7 +6,6 @@ config ARCH_VERSATILE
        select ARM_TIMER_SP804
        select ARM_VIC
        select CLKSRC_VERSATILE
-       select COMMON_CLK_VERSATILE
        select CPU_ARM926T
        select ICST
        select MFD_SYSCON
index 18951cd..2d1fdec 100644 (file)
@@ -7,7 +7,6 @@ menuconfig ARCH_VEXPRESS
        select ARM_GIC
        select ARM_GLOBAL_TIMER
        select ARM_TIMER_SP804
-       select COMMON_CLK_VERSATILE
        select GPIOLIB
        select HAVE_ARM_SCU if SMP
        select HAVE_ARM_TWD if SMP
index 5c38dc5..25cbb55 100644 (file)
@@ -274,7 +274,6 @@ config ARCH_UNIPHIER
 
 config ARCH_VEXPRESS
        bool "ARMv8 software model (Versatile Express)"
-       select COMMON_CLK_VERSATILE
        select GPIOLIB
        select PM
        select PM_GENERIC_DOMAINS
index f4169cc..fb30c16 100644 (file)
@@ -114,7 +114,7 @@ obj-$(CONFIG_ARCH_TEGRA)            += tegra/
 obj-y                                  += ti/
 obj-$(CONFIG_CLK_UNIPHIER)             += uniphier/
 obj-$(CONFIG_ARCH_U8500)               += ux500/
-obj-$(CONFIG_COMMON_CLK_VERSATILE)     += versatile/
+obj-y                                  += versatile/
 ifeq ($(CONFIG_COMMON_CLK), y)
 obj-$(CONFIG_X86)                      += x86/
 endif
index c2618f1..df0d50b 100644 (file)
@@ -1,22 +1,22 @@
 # SPDX-License-Identifier: GPL-2.0-only
-config ICST
-       bool
 
-config COMMON_CLK_VERSATILE
-       bool "Clock driver for ARM Reference designs"
-       depends on ARCH_INTEGRATOR || ARCH_REALVIEW || \
-               ARCH_VERSATILE || ARCH_VEXPRESS || ARM64 || \
-               COMPILE_TEST
+menuconfig COMMON_CLK_VERSATILE
+       bool "Clock driver for ARM Reference designs" if COMPILE_TEST
+       default y if ARCH_INTEGRATOR || ARCH_REALVIEW || \
+               ARCH_VERSATILE || ARCH_VEXPRESS
+
+if COMMON_CLK_VERSATILE
+
+config ICST
+       bool "Clock driver for ARM Reference designs ICST"
        select REGMAP_MMIO
        ---help---
          Supports clocking on ARM Reference designs:
          - Integrator/AP and Integrator/CP
          - RealView PB1176, EB, PB11MP and PBX
-         - Versatile Express
 
 config CLK_SP810
        bool "Clock driver for ARM SP810 System Controller"
-       depends on COMMON_CLK_VERSATILE
        default y if ARCH_VEXPRESS
        ---help---
          Supports clock muxing (REFCLK/TIMCLK to TIMERCLKEN0-3) capabilities
@@ -24,10 +24,12 @@ config CLK_SP810
 
 config CLK_VEXPRESS_OSC
        bool "Clock driver for Versatile Express OSC clock generators"
-       depends on COMMON_CLK_VERSATILE
        depends on VEXPRESS_CONFIG
+       select REGMAP_MMIO
        default y if ARCH_VEXPRESS
        ---help---
          Simple regmap-based driver driving clock generators on Versatile
          Express platforms hidden behind its configuration infrastructure,
          commonly known as OSCs.
+
+endif