clk: rockchip: make tightly bound armclk child-clocks read-only
authorHeiko Stuebner <heiko@sntech.de>
Thu, 4 Sep 2014 19:43:17 +0000 (21:43 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 27 Sep 2014 15:57:17 +0000 (17:57 +0200)
commit2b9bceeab70800546050f59cee4efb69c261a683
treebd57731277a9dc1d0b5f80d03a2bd345df5bc7fb
parentf5f7004fdec7eb1d2372278f1acad5f70f2da1e4
clk: rockchip: make tightly bound armclk child-clocks read-only

Rockchip SoCs contain clocks tightly bound to the armclk, where the best
rate / divider is supplied by the vendor after careful measuring.
Often this ideal rate may be greater than the current rate.

Therefore prevent the ccf from trying to set these dividers itself by
setting them to read-only.

In the case of the rk3066, this also includes the aclk_cpu, which makes it
necessary to also split its direct child-clocks (pclk_cpu, hclk_cpu, ...)
into individual definitions for rk3066 and rk3188.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
drivers/clk/rockchip/clk-rk3188.c
drivers/clk/rockchip/clk-rk3288.c