diff options
author | Paul Cercueil <paul@crapouillou.net> | 2019-06-11 20:07:55 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-06-25 15:43:36 -0700 |
commit | 32ebc193cda650ad089d04b8ac14324264c5420b (patch) | |
tree | 12f57cf7780c3d8c244f35a6efcd2212447d96a5 /arch/mips | |
parent | 2ee93e3c953b7263c21ce61e7c42e33d0539bef9 (diff) | |
download | linux-stable-32ebc193cda650ad089d04b8ac14324264c5420b.tar.gz linux-stable-32ebc193cda650ad089d04b8ac14324264c5420b.tar.bz2 linux-stable-32ebc193cda650ad089d04b8ac14324264c5420b.zip |
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/jz4740/pm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/mips/jz4740/pm.c b/arch/mips/jz4740/pm.c index 2d8653f2fc61..9e6c7a2b955f 100644 --- a/arch/mips/jz4740/pm.c +++ b/arch/mips/jz4740/pm.c @@ -18,21 +18,13 @@ #include <linux/delay.h> #include <linux/suspend.h> -#include <asm/mach-jz4740/clock.h> - static int jz4740_pm_enter(suspend_state_t state) { - jz4740_clock_suspend(); - - jz4740_clock_set_wait_mode(JZ4740_WAIT_MODE_SLEEP); - __asm__(".set\tmips3\n\t" "wait\n\t" ".set\tmips0"); - jz4740_clock_set_wait_mode(JZ4740_WAIT_MODE_IDLE); - jz4740_clock_resume(); return 0; } |