@@ -38,6 +38,13 @@ menuconfig COMMON_CLK
if COMMON_CLK
+config COMMON_CLK_GPIO
+ tristate "GPIO gated clock support"
+ default y
+ help
+ Supports gpio gated clocks, which can be enabled/disabled via
+ gpio output.
+
config COMMON_CLK_WM831X
tristate "Clock driver for WM831x/2x PMICs"
depends on MFD_WM831X
@@ -11,7 +11,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
obj-$(CONFIG_COMMON_CLK) += clk-mux.o
obj-$(CONFIG_COMMON_CLK) += clk-composite.o
obj-$(CONFIG_COMMON_CLK) += clk-fractional-divider.o
-obj-$(CONFIG_COMMON_CLK) += clk-gpio.o
+obj-$(CONFIG_COMMON_CLK_GPIO) += clk-gpio.o
ifeq ($(CONFIG_OF), y)
obj-$(CONFIG_COMMON_CLK) += clk-conf.o
endif
The gpio-gate-clock / gpio-mux-clock driver isn't used much, just by a few ARM SoCs, so there's no need to always include it unconditionally. Thus make it optional, but keep it enabled by default. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> --- drivers/clk/Kconfig | 7 +++++++ drivers/clk/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-)