diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2015-02-13 20:18:52 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2015-04-10 23:44:43 +0200 |
commit | 9a74ccdbbb8fa6302ae1ba606f2ef0c03d3242ab (patch) | |
tree | 702f78486fa8d940dedd10695cfb60b1cda024b7 /drivers/clk/Kconfig | |
parent | clk: Add clock driver for mb86s7x (diff) | |
download | linux-9a74ccdbbb8fa6302ae1ba606f2ef0c03d3242ab.tar.xz linux-9a74ccdbbb8fa6302ae1ba606f2ef0c03d3242ab.zip |
clk: Add PWM clock driver
Some board designers, when running out of clock output pads, decide to
(mis)use PWM output pads to provide a clock to external components.
This driver supports this practice by providing an adapter between the
PWM and clock bindings in the device tree. As the PWM bindings specify
the period in the device tree, this is a fixed clock.
Tested-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/Kconfig')
-rw-r--r-- | drivers/clk/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 0b474a04730f..9897f353bf1a 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -130,6 +130,13 @@ config COMMON_CLK_PALMAS This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO using common clock framework. +config COMMON_CLK_PWM + tristate "Clock driver for PWMs used as clock outputs" + depends on PWM + ---help--- + Adapter driver so that any PWM output can be (mis)used as clock signal + at 50% duty cycle. + config COMMON_CLK_PXA def_bool COMMON_CLK && ARCH_PXA ---help--- |