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)
commitf6fba5f6967dbc062a7c138d67e2314220f5dd04
treeb38dc7a0b7bd4d04df982645a61065d7e7661156
parent2b9bceeab70800546050f59cee4efb69c261a683
clk: rockchip: add new clock-type for the cpuclk

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