forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clk: versatile: Rework kconfig structure
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 <[email protected]> Cc: Will Deacon <[email protected]> Cc: Liviu Dudau <[email protected]> Cc: Lorenzo Pieralisi <[email protected]> Cc: Linus Walleij <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Rob Herring <[email protected]>
- Loading branch information
1 parent
039599c
commit 81134fb
Showing
7 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
# 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 | ||
of the ARM SP810 System Controller cell. | ||
|
||
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 |