[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201117160306.21760-1-info@metux.net>
Date: Tue, 17 Nov 2020 17:03:06 +0100
From: "Enrico Weigelt, metux IT consult" <info@...ux.net>
To: linux-kernel@...r.kernel.org
Cc: mturquette@...libre.com, sboyd@...nel.org, matthias.bgg@...il.com,
linux-clk@...r.kernel.org, linux-riscv@...ts.infradead.org
Subject: [PATCH] (v2) drivers: clk: make gpio-gated clock support optional
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.
fixes v2: added missing dependency on gpiolib
Signed-off-by: Enrico Weigelt, metux IT consult <info@...ux.net>
---
drivers/clk/Kconfig | 8 ++++++++
drivers/clk/Makefile | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index c715d4681a0b..99e0188a15be 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -38,6 +38,14 @@ menuconfig COMMON_CLK
if COMMON_CLK
+config COMMON_CLK_GPIO
+ tristate "GPIO gated clock support"
+ default y
+ select gpiolib
+ 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
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index da8fcf147eb1..0692ab5abc6d 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -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
--
2.11.0
Powered by blists - more mailing lists