clk: Support for clock parents and rates assigned from device tree
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 18 Jun 2014 15:29:32 +0000 (17:29 +0200)
committerMike Turquette <mturquette@linaro.org>
Fri, 25 Jul 2014 22:16:27 +0000 (15:16 -0700)
commit86be408bfbd846fab3c4ac21d6f9298bd2e4b790
tree7fbcd8031f805c6faa8a55b7187bf9fd395664d7
parent09575693a2511b5ddae0105546e0d9cefc936e34
clk: Support for clock parents and rates assigned from device tree

This patch adds helper functions to configure clock parents and rates
as specified through 'assigned-clock-parents', 'assigned-clock-rates'
DT properties for a clock provider or clock consumer device.
The helpers are now being called by the bus code for the platform, I2C
and SPI busses, before the driver probing and also in the clock core
after registration of a clock provider.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Documentation/devicetree/bindings/clock/clock-bindings.txt
drivers/base/platform.c
drivers/clk/Makefile
drivers/clk/clk-conf.c [new file with mode: 0644]
drivers/clk/clk.c
drivers/i2c/i2c-core.c
drivers/spi/spi.c
include/linux/clk/clk-conf.h [new file with mode: 0644]