aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-10-13 10:18:18 -0400
committerStephen Boyd <sboyd@codeaurora.org>2015-10-16 14:58:53 -0400
commit4a7748c3d6419bb81787480526d62bbaf083ef84 (patch)
tree75bdc2058f6402ebbd8fc62255db9b05fb4dd278
parentb76281cb97761002277730432812b1687de96062 (diff)
clk: Allow drivers to build if COMPILE_TEST is enabled
These drivers only have runtime but no build time dependencies so can be built for testing purposes if the Kconfig COMPILE_TEST option is enabled. This is useful to have more build coverage and make sure that drivers are not affected by changes that could cause build regressions. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Scott Branden <sbranden@broadcom.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/Kconfig8
-rw-r--r--drivers/clk/bcm/Kconfig4
-rw-r--r--drivers/clk/versatile/Kconfig2
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 573517151976..57316528e924 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -124,7 +124,7 @@ config CLK_TWL6040
124 124
125config COMMON_CLK_AXI_CLKGEN 125config COMMON_CLK_AXI_CLKGEN
126 tristate "AXI clkgen driver" 126 tristate "AXI clkgen driver"
127 depends on ARCH_ZYNQ || MICROBLAZE 127 depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
128 help 128 help
129 ---help--- 129 ---help---
130 Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx 130 Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
@@ -132,7 +132,7 @@ config COMMON_CLK_AXI_CLKGEN
132 132
133config CLK_QORIQ 133config CLK_QORIQ
134 bool "Clock driver for Freescale QorIQ platforms" 134 bool "Clock driver for Freescale QorIQ platforms"
135 depends on (PPC_E500MC || ARM) && OF 135 depends on (PPC_E500MC || ARM || COMPILE_TEST) && OF
136 ---help--- 136 ---help---
137 This adds the clock driver support for Freescale QorIQ platforms 137 This adds the clock driver support for Freescale QorIQ platforms
138 using common clock framework. 138 using common clock framework.
@@ -140,13 +140,13 @@ config CLK_QORIQ
140config COMMON_CLK_XGENE 140config COMMON_CLK_XGENE
141 bool "Clock driver for APM XGene SoC" 141 bool "Clock driver for APM XGene SoC"
142 default y 142 default y
143 depends on ARM64 143 depends on ARM64 || COMPILE_TEST
144 ---help--- 144 ---help---
145 Sypport for the APM X-Gene SoC reference, PLL, and device clocks. 145 Sypport for the APM X-Gene SoC reference, PLL, and device clocks.
146 146
147config COMMON_CLK_KEYSTONE 147config COMMON_CLK_KEYSTONE
148 tristate "Clock drivers for Keystone based SOCs" 148 tristate "Clock drivers for Keystone based SOCs"
149 depends on ARCH_KEYSTONE && OF 149 depends on (ARCH_KEYSTONE || COMPILE_TEST) && OF
150 ---help--- 150 ---help---
151 Supports clock drivers for Keystone based SOCs. These SOCs have local 151 Supports clock drivers for Keystone based SOCs. These SOCs have local
152 a power sleep control module that gate the clock to the IPs and PLLs. 152 a power sleep control module that gate the clock to the IPs and PLLs.
diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig
index 88febf53b276..561e9dc6d40d 100644
--- a/drivers/clk/bcm/Kconfig
+++ b/drivers/clk/bcm/Kconfig
@@ -1,6 +1,6 @@
1config CLK_BCM_KONA 1config CLK_BCM_KONA
2 bool "Broadcom Kona CCU clock support" 2 bool "Broadcom Kona CCU clock support"
3 depends on ARCH_BCM_MOBILE 3 depends on ARCH_BCM_MOBILE || COMPILE_TEST
4 depends on COMMON_CLK 4 depends on COMMON_CLK
5 default y 5 default y
6 help 6 help
@@ -10,7 +10,7 @@ config CLK_BCM_KONA
10 10
11config COMMON_CLK_IPROC 11config COMMON_CLK_IPROC
12 bool "Broadcom iProc clock support" 12 bool "Broadcom iProc clock support"
13 depends on ARCH_BCM_IPROC 13 depends on ARCH_BCM_IPROC || COMPILE_TEST
14 depends on COMMON_CLK 14 depends on COMMON_CLK
15 default ARCH_BCM_IPROC 15 default ARCH_BCM_IPROC
16 help 16 help
diff --git a/drivers/clk/versatile/Kconfig b/drivers/clk/versatile/Kconfig
index 1530c9352a76..fc50b6264bed 100644
--- a/drivers/clk/versatile/Kconfig
+++ b/drivers/clk/versatile/Kconfig
@@ -1,6 +1,6 @@
1config COMMON_CLK_VERSATILE 1config COMMON_CLK_VERSATILE
2 bool "Clock driver for ARM Reference designs" 2 bool "Clock driver for ARM Reference designs"
3 depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 3 depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 || COMPILE_TEST
4 ---help--- 4 ---help---
5 Supports clocking on ARM Reference designs: 5 Supports clocking on ARM Reference designs:
6 - Integrator/AP and Integrator/CP 6 - Integrator/AP and Integrator/CP