]> git.karo-electronics.de Git - linux-beck.git/commit
clk: rockchip: fix rk3288 cpuclk core dividers
authorHeiko Stuebner <heiko@sntech.de>
Thu, 18 Dec 2014 19:06:57 +0000 (20:06 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 28 Dec 2014 22:31:44 +0000 (23:31 +0100)
commit9880d4277f6aab6b21404c824f9d9c652ba518ac
tree92e89a273fa90bc42e59750673e88285e84d8d47
parent12551f0239b50c88352e3292dd7703382addbf5e
clk: rockchip: fix rk3288 cpuclk core dividers

Commit 0e5bdb3f9fa5 (clk: rockchip: switch to using the new cpuclk type
for armclk) didn't take into account that the divider used on rk3288
are of the (n+1) type.

The rk3066 and rk3188 socs use more complex divider types making it
necessary for the list-elements to be the real register-values to write.

Therefore reduce divider values in the table accordingly so that they
really are the values that should be written to the registers and match
the dividers actually specified for the rk3288.

Reported-by: Sonny Rao <sonnyrao@chromium.org>
Fixes: 0e5bdb3f9fa5 ("clk: rockchip: switch to using the new cpuclk type for armclk")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Cc: stable@vger.kernel.org
drivers/clk/rockchip/clk-rk3288.c