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.
CQ-DEPEND=CL:I3552e939c5ea8a45f99a148e463982b453a4e14b
BUG=chrome-os-partner:30167
TEST=boot up with PLL rate init change in dts
Change-Id: I021347c622e039864254f620620182ad65410a4a
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>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
(cherry picked from commit 86be408bfb)
Reviewed-on: https://chromium-review.googlesource.com/217424