MIPS: ingenic: Unconditionally enable clock of CPU #0
authorPaul Cercueil <paul@crapouillou.net>
Mon, 23 Aug 2021 17:34:05 +0000 (18:34 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sun, 29 Aug 2021 11:31:02 +0000 (13:31 +0200)
commit71f8817c28e2e1e5549138e2aef68c2fd784e162
treed0bb474603ff913a3147a6f1faf062325c6d10bb
parenteba54cbb92d28b4f6dc1ed5f73f5187b09d82c08
MIPS: ingenic: Unconditionally enable clock of CPU #0

Make sure that the PLL that feeds the CPU won't be stopped while the
kernel is running.

This fixes a problem on JZ4760 (and probably others) where under very
specific conditions, the main PLL would be turned OFF when the kernel
was shutting down, causing the shutdown process to fail.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/generic/board-ingenic.c