clk: rockchip: rk3368: fix cpuclk mux bit of big cpu-cluster
authorHeiko Stuebner <heiko@sntech.de>
Tue, 19 Jan 2016 09:01:08 +0000 (10:01 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 24 Jan 2016 22:29:16 +0000 (23:29 +0100)
Both clusters have their mux bit in bit 7 of their respective register.
For whatever reason the big cluster currently lists bit 15 which is
definitly wrong.

Fixes: 3536c97a52db ("clk: rockchip: add rk3368 clock controller")
Reported-by: Zhang Qing <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: zhangqing <zhangqing@rock-chips.com>
Cc: stable@vger.kernel.org
drivers/clk/rockchip/clk-rk3368.c

index be0ede52226994a0ae7248c8098285e0ebfd4a86..473b36f0830a33acc96f339e551c345e2ba2cf72 100644 (file)
@@ -165,7 +165,7 @@ static const struct rockchip_cpuclk_reg_data rk3368_cpuclkb_data = {
        .core_reg = RK3368_CLKSEL_CON(0),
        .div_core_shift = 0,
        .div_core_mask = 0x1f,
-       .mux_core_shift = 15,
+       .mux_core_shift = 7,
 };
 
 static const struct rockchip_cpuclk_reg_data rk3368_cpuclkl_data = {