]> git.baikalelectronics.ru Git - kernel.git/commit
clk: rockchip: fix rk3066 pll lock bit location
authorHeiko Stuebner <heiko@sntech.de>
Wed, 24 Dec 2014 13:31:06 +0000 (14:31 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 28 Dec 2014 22:30:08 +0000 (23:30 +0100)
commit3079c5df58a4c125e6a5ebc49d0772c14be7c243
treed625ebbb9186d54d9d823d104be51c283dd95175
parentafd10f9ac79e8af87d471ccc0457771cf308372c
clk: rockchip: fix rk3066 pll lock bit location

The bit locations indicating the locking status of the plls on rk3066 are
shifted by one to the right when compared to the rk3188, bits [7:4] instead
of [8:5] on the rk3188, thus indicating the locking state of the wrong pll
or a completely different information in case of the gpll.

The recently introduced pll init code exposed that problem on some rk3066
boards when it tried to bring the boot-pll value in line with the value
from the rate table.

Fix this by defining separate pll definitions for rk3066 with the correct
locking indices.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Fixes: 7d9e719fbde7 ("clk: rockchip: add clock driver for rk3188 and rk3066 clocks")
Tested-by: FUKAUMI Naoki <naobsd@gmail.com>
Cc: stable@vger.kernel.org
drivers/clk/rockchip/clk-rk3188.c