ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
PATCH v3 1/2 ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
We add 2 Suspend to RAM modes:
- A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
and the 2nd level cache with either PLL0 on or off
As the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on is included here too, so CPUIdle can use both power down modes (not included in this patch).
The setup of the SYSC regarding the external IRQs is taken from pm-sh7372.c from Magnus Damm.
---
v3:
We now stubbornly loop until the SoC really shuts down when we issue the WFI command.
arch/arm/mach-shmobile/Makefile | 2 +- arch/arm/mach-shmobile/include/mach/r8a7740.h | 3 + arch/arm/mach-shmobile/pm-r8a7740.c | 164 ++++++++++++++++++++++++- arch/arm/mach-shmobile/sleep-r8a7740.S | 57 +++++++++ 4 files changed, 222 insertions(+), 4 deletions(-) create mode 100644 arch/arm/mach-shmobile/sleep-r8a7740.S
arch/arm/mach-shmobile/Makefile +1 -1
@@ -30,7 +30,7 @@ obj-$(CONFIG_SUSPEND) += suspend.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o obj-$(CONFIG_ARCH_SHMOBILE) += pm-rmobile.o obj-$(CONFIG_ARCH_SH7372) += pm-sh7372.o sleep-sh7372.o -obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o +obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o sleep-r8a7740.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o
arch/arm/mach-shmobile/include/mach/r8a7740.h +3 -0
@@ -540,6 +540,9 @@ extern void r8a7740_add_standard_devices(void);extern void r8a7740_clock_init (u8 md_ck);extern void r8a7740_pinmux_init (void );extern void r8a7740_pm_init (void ); +extern void r8a7740_resume (void ); +extern void r8a7740_shutdown (void ); +extern void r8a7740_enter_a3sm_common (int );#ifdef CONFIG_PM extern void __init r8a7740_init_pm_domains (void );
arch/arm/mach-shmobile/pm-r8a7740.c +161 -3
191 lines not on this page · raw message
arch/arm/mach-shmobile/sleep-r8a7740.S new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v3 2/2 ARM: shmobile: r8a7740: Add CPUIdle
We make use of the r8a7740 Suspend To Ram code to plug together a CPUIdle driver.
---
v3: same
arch/arm/mach-shmobile/Makefile | 2 +- arch/arm/mach-shmobile/cpuidle-r8a7740.c | 62 +++++++++++++++++++++++++ arch/arm/mach-shmobile/include/mach/r8a7740.h | 1 + arch/arm/mach-shmobile/pm-r8a7740.c | 1 + 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-shmobile/cpuidle-r8a7740.c
arch/arm/mach-shmobile/Makefile +1 -1
@@ -30,7 +30,7 @@ obj-$(CONFIG_SUSPEND) += suspend.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o obj-$(CONFIG_ARCH_SHMOBILE) += pm-rmobile.o obj-$(CONFIG_ARCH_SH7372) += pm-sh7372.o sleep-sh7372.o -obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o sleep-r8a7740.o +obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o sleep-r8a7740.o cpuidle-r8a7740.o obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o obj-$(CONFIG_ARCH_SH73A0) += pm-sh73a0.o
arch/arm/mach-shmobile/cpuidle-r8a7740.c new file +62 -0
62 lines not on this page · raw message
arch/arm/mach-shmobile/include/mach/r8a7740.h +1 -0
@@ -542,6 +542,7 @@ extern void r8a7740_pinmux_init(void);extern void r8a7740_pm_init (void );extern void r8a7740_resume (void );extern void r8a7740_shutdown (void ); +extern void r8a7740_cpuidle_init (void );extern void r8a7740_enter_a3sm_common (int );#ifdef CONFIG_PM
arch/arm/mach-shmobile/pm-r8a7740.c +1 -0
@@ -237,4 +237,5 @@ static void r8a7740_suspend_init(void) {}void __init r8a7740_pm_init (void ) {r8a7740_suspend_init (); +r8a7740_cpuidle_init (); }
Signature · 1 line
1.7.9.5
PATCH v3 1/2 ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
In reply to Bastian HechtQuoted 12 lines · Bastian Hecht
We add 2 Suspend to RAM modes:
- A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
and the 2nd level cache with either PLL0 on or offAs the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on is included here too, so CPUIdle can use both power down modes (not included in this patch).
The setup of the SYSC regarding the external IRQs is taken from
pm-sh7372.cfrom Magnus Damm.
Quoted 6 lines
Signed-off-by Bastian Hecht <[email protected]>---
v3:We now stubbornly loop until the SoC really shuts down when we issue the WFI command.
Hi Bastian,
could you let me know what the status of this series is. Is it ready to be queued-up for v3.11?
PATCH v3 1/2 ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
2013/4/24 Simon Horman <[email protected]>:
Quoted 17 lines · Bastian Hecht
Quoted 16 lines
We add 2 Suspend to RAM modes:
- A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
and the 2nd level cache with either PLL0 on or offAs the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on is included here too, so CPUIdle can use both power down modes (not included in this patch).
The setup of the SYSC regarding the external IRQs is taken from
pm-sh7372.cfrom Magnus Damm.Signed-off-by Bastian Hecht <[email protected]>---
v3:
Quoted 7 lines
Quoted 2 lines
We now stubbornly loop until the SoC really shuts down when we issue the WFI command.
Hi Bastian,
could you let me know what the status of this series is. Is it ready to be queued-up for v3.11?
Hello Simon!
I consider it stable and as there are no more comments, I would be happy if you queued it up.
Thanks,
Bastian
PATCH v3 1/2 ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
Quoted 23 lines · Bastian Hecht
2013/4/24 Simon Horman <[email protected]>:
Quoted 22 lines · Bastian Hecht
Quoted 12 lines
We add 2 Suspend to RAM modes:
- A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
and the 2nd level cache with either PLL0 on or offAs the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on is included here too, so CPUIdle can use both power down modes (not included in this patch).
The setup of the SYSC regarding the external IRQs is taken from
pm-sh7372.cfrom Magnus Damm.Quoted 6 lines
Signed-off-by Bastian Hecht <[email protected]>---
v3:We now stubbornly loop until the SoC really shuts down when we issue the WFI command.
Hi Bastian,
Quoted 7 lines
Quoted 2 lines
could you let me know what the status of this series is. Is it ready to be queued-up for v3.11?
Hello Simon!
I consider it stable and as there are no more comments, I would be happy if you queued it up.
Thanks, I will see about doing so tomorrow.
PATCH v3 1/2 ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
Quoted 27 lines · Simon Horman
Quoted 26 lines · Bastian Hecht
2013/4/24 Simon Horman <[email protected]>:
Quoted 24 lines · Bastian Hecht
Quoted 12 lines
We add 2 Suspend to RAM modes:
- A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
and the 2nd level cache with either PLL0 on or offAs the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on is included here too, so CPUIdle can use both power down modes (not included in this patch).
The setup of the SYSC regarding the external IRQs is taken from
pm-sh7372.cfrom Magnus Damm.Quoted 6 lines
Signed-off-by Bastian Hecht <[email protected]>---
v3:We now stubbornly loop until the SoC really shuts down when we issue the WFI command.
Hi Bastian,
could you let me know what the status of this series is. Is it ready to be queued-up for v3.11?
Quoted 6 lines
Quoted 4 lines
Hello Simon!
I consider it stable and as there are no more comments, I would be happy if you queued it up.
Thanks, I will see about doing so tomorrow.
Done, they are queued-up in the soc-r8a7740 branch.