]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: rockchip: fix rk3368 cpuclk divider offsets
authorHeiko Stuebner <heiko@sntech.de>
Tue, 1 Dec 2015 21:23:45 +0000 (22:23 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 3 Dec 2015 15:20:02 +0000 (16:20 +0100)
Due to a copy-paste error the the rk3368 cpuclk settings were acessing
rk3288-specific register offsets. This never caused problems till now,
as cpu frequency scaling in't used currently at all.

Reported-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-rk3368.c

index 4d2e7e56ee68abd537f8d7543cb63fe7f60ed70a..1faf1602a3fca0db2aae452618087a5cb143b33d 100644 (file)
@@ -184,13 +184,13 @@ static const struct rockchip_cpuclk_reg_data rk3368_cpuclkl_data = {
 
 #define RK3368_CLKSEL0(_offs, _aclkm)                                  \
        {                                                               \
-               .reg = RK3288_CLKSEL_CON(0 + _offs),                    \
+               .reg = RK3368_CLKSEL_CON(0 + _offs),                    \
                .val = HIWORD_UPDATE(_aclkm, RK3368_DIV_ACLKM_MASK,     \
                                RK3368_DIV_ACLKM_SHIFT),                \
        }
 #define RK3368_CLKSEL1(_offs, _atclk, _pdbg)                           \
        {                                                               \
-               .reg = RK3288_CLKSEL_CON(1 + _offs),                    \
+               .reg = RK3368_CLKSEL_CON(1 + _offs),                    \
                .val = HIWORD_UPDATE(_atclk, RK3368_DIV_ATCLK_MASK,     \
                                RK3368_DIV_ATCLK_SHIFT) |               \
                       HIWORD_UPDATE(_pdbg, RK3368_DIV_PCLK_DBG_MASK,   \