OSDN Git Service

clk: sunxi-ng: fix PLL_CPUX adjusting on A33
authorIcenowy Zheng <icenowy@aosc.xyz>
Tue, 13 Dec 2016 15:22:47 +0000 (23:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:11 +0000 (08:39 +0000)
commit5732d69debd416c078a9570db62428995111e8d9
treee2568fe0cd857e74d821d759bd25772aceca632d
parent7084a27375fa31ec66b620815949134cc35121db
clk: sunxi-ng: fix PLL_CPUX adjusting on A33

[ Upstream commit 790d929b540661945d1c70652ffb602c5c06ad85 ]

When adjusting PLL_CPUX on A33, the PLL is temporarily driven too high,
and the system hangs.

Add a notifier to avoid this situation by temporarily switching to a
known stable 24 MHz oscillator.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sunxi-ng/ccu-sun8i-a33.c