MIPS: jz4740: PM: Let CGU driver suspend clocks and set sleep mode
authorPaul Cercueil <paul@crapouillou.net>
Tue, 11 Jun 2019 18:07:55 +0000 (20:07 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 25 Jun 2019 22:43:36 +0000 (15:43 -0700)
commit32ebc193cda650ad089d04b8ac14324264c5420b
tree12f57cf7780c3d8c244f35a6efcd2212447d96a5
parent2ee93e3c953b7263c21ce61e7c42e33d0539bef9
MIPS: jz4740: PM: Let CGU driver suspend clocks and set sleep mode

Instead of forcing the jz4740 clocks to suspend here, we let the CGU
driver handle it.
We also let the CGU driver set the "sleep mode" bit.

This has the added benefit that now it is possible to build a kernel on
SoCs newer than the JZ4740 with CONFIG_PM.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
arch/mips/jz4740/pm.c