]> git.baikalelectronics.ru Git - kernel.git/commit
clk: versatile: respect parent rate in ICST clock
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jan 2014 20:46:46 +0000 (21:46 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Feb 2014 10:20:55 +0000 (11:20 +0100)
commit1f5b094487c03ab69f42884cd6ac4ff3ba9b7b0f
tree277ab1ec855b4b4db09b7088b5ed83b671664578
parent17d02943e1f9496c5281a442c68d96bab3cbdf9a
clk: versatile: respect parent rate in ICST clock

If the ICST clock has a parent, respect the rate of the parent
when calculating the clock frequency. As this involves modifying
the ICST parameter struct, make a cloned copy (the divisor
arrays should be safe) so we can update the .ref field.

Do not define the reference clock on the Integrator as we have
the reference clock from the device tree. Keep it everywhere
else.

Cc: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/clk/versatile/clk-icst.c
drivers/clk/versatile/clk-integrator.c