diff options
author | Pawel Moll <pawel.moll@arm.com> | 2013-09-17 12:16:15 -0400 |
---|---|---|
committer | Pawel Moll <pawel.moll@arm.com> | 2014-05-15 12:02:20 -0400 |
commit | 5ee2b877793d89f1d73338d08af12f73fbbfed4a (patch) | |
tree | 4aeed9c1c532dfe03e3619331511c0bc425d513c | |
parent | 974cc7b93441a0e78f030495436d1be7eb7c208d (diff) |
clk: versatile: Split config options for sp810 and vexpress_osc
Move the Kconfig entry for Versatile (& Express) clock drivers
into a separate file and add individual options for sp810
and vexpress_osc drivers, as they are optional in some
configurations and may have separate dependencies.
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
-rw-r--r-- | drivers/clk/Kconfig | 9 | ||||
-rw-r--r-- | drivers/clk/versatile/Kconfig | 26 | ||||
-rw-r--r-- | drivers/clk/versatile/Makefile | 5 |
3 files changed, 30 insertions, 10 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 6f56d3a4f010..4fdfd6c70bd3 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig | |||
@@ -30,14 +30,7 @@ config COMMON_CLK_WM831X | |||
30 | Supports the clocking subsystem of the WM831x/2x series of | 30 | Supports the clocking subsystem of the WM831x/2x series of |
31 | PMICs from Wolfson Microlectronics. | 31 | PMICs from Wolfson Microlectronics. |
32 | 32 | ||
33 | config COMMON_CLK_VERSATILE | 33 | source "drivers/clk/versatile/Kconfig" |
34 | bool "Clock driver for ARM Reference designs" | ||
35 | depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 | ||
36 | ---help--- | ||
37 | Supports clocking on ARM Reference designs: | ||
38 | - Integrator/AP and Integrator/CP | ||
39 | - RealView PB1176, EB, PB11MP and PBX | ||
40 | - Versatile Express | ||
41 | 34 | ||
42 | config COMMON_CLK_MAX77686 | 35 | config COMMON_CLK_MAX77686 |
43 | tristate "Clock driver for Maxim 77686 MFD" | 36 | tristate "Clock driver for Maxim 77686 MFD" |
diff --git a/drivers/clk/versatile/Kconfig b/drivers/clk/versatile/Kconfig new file mode 100644 index 000000000000..1530c9352a76 --- /dev/null +++ b/drivers/clk/versatile/Kconfig | |||
@@ -0,0 +1,26 @@ | |||
1 | config COMMON_CLK_VERSATILE | ||
2 | bool "Clock driver for ARM Reference designs" | ||
3 | depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 | ||
4 | ---help--- | ||
5 | Supports clocking on ARM Reference designs: | ||
6 | - Integrator/AP and Integrator/CP | ||
7 | - RealView PB1176, EB, PB11MP and PBX | ||
8 | - Versatile Express | ||
9 | |||
10 | config CLK_SP810 | ||
11 | bool "Clock driver for ARM SP810 System Controller" | ||
12 | depends on COMMON_CLK_VERSATILE | ||
13 | default y if ARCH_VEXPRESS | ||
14 | ---help--- | ||
15 | Supports clock muxing (REFCLK/TIMCLK to TIMERCLKEN0-3) capabilities | ||
16 | of the ARM SP810 System Controller cell. | ||
17 | |||
18 | config CLK_VEXPRESS_OSC | ||
19 | bool "Clock driver for Versatile Express OSC clock generators" | ||
20 | depends on COMMON_CLK_VERSATILE | ||
21 | depends on VEXPRESS_CONFIG | ||
22 | default y if ARCH_VEXPRESS | ||
23 | ---help--- | ||
24 | Simple regmap-based driver driving clock generators on Versatile | ||
25 | Express platforms hidden behind its configuration infrastructure, | ||
26 | commonly known as OSCs. | ||
diff --git a/drivers/clk/versatile/Makefile b/drivers/clk/versatile/Makefile index c16ca787170a..fd449f9b006d 100644 --- a/drivers/clk/versatile/Makefile +++ b/drivers/clk/versatile/Makefile | |||
@@ -3,5 +3,6 @@ obj-$(CONFIG_ICST) += clk-icst.o | |||
3 | obj-$(CONFIG_ARCH_INTEGRATOR) += clk-integrator.o | 3 | obj-$(CONFIG_ARCH_INTEGRATOR) += clk-integrator.o |
4 | obj-$(CONFIG_INTEGRATOR_IMPD1) += clk-impd1.o | 4 | obj-$(CONFIG_INTEGRATOR_IMPD1) += clk-impd1.o |
5 | obj-$(CONFIG_ARCH_REALVIEW) += clk-realview.o | 5 | obj-$(CONFIG_ARCH_REALVIEW) += clk-realview.o |
6 | obj-$(CONFIG_ARCH_VEXPRESS) += clk-vexpress.o clk-sp810.o | 6 | obj-$(CONFIG_ARCH_VEXPRESS) += clk-vexpress.o |
7 | obj-$(CONFIG_VEXPRESS_CONFIG) += clk-vexpress-osc.o | 7 | obj-$(CONFIG_CLK_SP810) += clk-sp810.o |
8 | obj-$(CONFIG_CLK_VEXPRESS_OSC) += clk-vexpress-osc.o | ||