ARM: mach-shmobile: sh7372 A3SM support
Magnus Damm
maintainerPATCH 1/3 ARM: mach-shmobile: sh7372 A3SM support
From: Magnus Damm <[email protected]>
This patch adds sh7372 A3SM power domain support.
The sh7372 A3SM hardware power domain contains the ARM Cortex-A8 CPU Core including L2 cache. This sleep mode can be seen as a one step deeper sleep mode from the already existing Core Standby mode.
To wake up from A3SM sleep only a few wakeup sources are supported - so the regular INTC controller will not be able to help us unfortunately.
The code in this patch will enter A3SM sleep via the regular Suspend-to-RAM interface in the case of only wakeups supported by A3SM are enabled. If unsupported wakeups are enabled then Core Standby will be used instead.
---
To be able to enter A3SM you need to apply MSTP patches for MSIOF, CMT and USB-DMAC. You may also have to disable the serial console on the kernel command line.
arch/arm/mach-shmobile/include/mach/common.h | 3 arch/arm/mach-shmobile/pm-sh7372.c | 209 +++++++++++++++++++++++++- arch/arm/mach-shmobile/sleep-sh7372.S | 55 ++++++ 3 files changed, 256 insertions(+), 11 deletions(-)
arch/arm/mach-shmobile/include/mach/common.h +2 -1
@@ -35,7 +35,8 @@ extern void sh7372_add_standard_devices(extern void sh7372_clock_init (void );extern void sh7372_pinmux_init (void );extern void sh7372_pm_init (void ); -extern void sh7372_resume_core_standby (void ); +extern void sh7372_resume_core_standby_a3sm (void ); +extern int sh7372_do_idle_a3sm (unsigned long unused);extern struct clk sh7372_extal1_clk;extern struct clk sh7372_extal2_clk;
arch/arm/mach-shmobile/pm-sh7372.c +201 -8
253 lines not on this page · raw message
arch/arm/mach-shmobile/sleep-sh7372.S +53 -2
60 lines not on this page · raw message