UPSTREAM: clk: rockchip: switch PLLs to slow mode before reboot for rk3288
authorChris Zhong <zyw@rock-chips.com>
Fri, 27 Nov 2015 02:09:30 +0000 (10:09 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 15 Mar 2016 09:20:14 +0000 (17:20 +0800)
commitf0df56476f46733542fb4d476a249d2d9cf15015
tree97d36d07d73f2d38100024797e762b8e6595ec57
parenteaef8b16af7a05c7b7920a54fc0503bbfbbeb054
UPSTREAM: clk: rockchip: switch PLLs to slow mode before reboot for rk3288

We've been seeing some crashes at reboot test on rk3288-based systems,
which boards have not reset pin connected to NPOR, they reboot by
setting 0xfdb9 to RK3288_GLB_SRST_FST register. If the APLL works in
a high frequency mode, some IPs might hang during soft reset.
It appears that we can fix the problem by switching to slow mode before
reboot, just like what we did before suspend.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 1d33929e2a2b69ae6d40e09ccfc8c7d705a543ba)

Change-Id: Ic01f80e6f33ae84cc87e954aae35f26b6f1a5434
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
drivers/clk/rockchip/clk-rk3288.c