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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:33 +0000 (12:00 +0900)
commitfd034b76333cfde9741f8b374f65139b6d94a379
tree6e45973e1bb614a32ff167d97d809f9e99859757
parent14fee35ea8f9c5cd6f6d4c3167dce96f2aad2105
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.

Change-Id: I96d98c9c9d576fcbf0dfc90d1cc75feb9fdf97cb
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
[s.nawrocki@samsung.com: backported to v3.10]
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]