clk: Add PWM clock driver
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 13 Feb 2015 19:18:52 +0000 (20:18 +0100)
committerMichael Turquette <mturquette@linaro.org>
Fri, 10 Apr 2015 21:44:43 +0000 (14:44 -0700)
commit9a74ccdbbb8fa6302ae1ba606f2ef0c03d3242ab
tree702f78486fa8d940dedd10695cfb60b1cda024b7
parent1ccdd04f536510b7bd9b09efe31b7002ebfedf9c
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>
Documentation/devicetree/bindings/clock/pwm-clock.txt [new file with mode: 0644]
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk-pwm.c [new file with mode: 0644]