clk: rockchip: add new clock-type for the cpuclk
authorHeiko Stuebner <heiko@sntech.de>
Thu, 4 Sep 2014 20:10:43 +0000 (22:10 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 27 Sep 2014 15:57:41 +0000 (17:57 +0200)
When changing the armclk on Rockchip SoCs it is supposed to be reparented
to an alternate parent before changing the underlying pll and back after
the change. Additionally there exist clocks that are very tightly bound to
the armclk whose divider values are set according to the armclk rate.

Add a special clock-type to handle all that. The rate table and divider
values will be supplied from the soc-specific clock controllers.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Doug Anderson <dianders@chromium.org>
On a rk3288-board:
Tested-by: Doug Anderson <dianders@chromium.org>
drivers/clk/rockchip/Makefile
drivers/clk/rockchip/clk-cpu.c [new file with mode: 0644]
drivers/clk/rockchip/clk.c
drivers/clk/rockchip/clk.h

Simple merge
Simple merge
Simple merge
Simple merge