Re: [PATCH v2 02/15] powerpc/85xx: add sleep and deep sleep support

2013-04-28 Thread Zhao Chenhui
On Tue, Apr 23, 2013 at 06:53:20PM -0500, Scott Wood wrote: On 04/19/2013 05:47:35 AM, Zhao Chenhui wrote: static int pmc_suspend_enter(suspend_state_t state) { -int ret; +int ret = 0; + +switch (state) { +#ifdef CONFIG_PPC_85xx +case PM_SUSPEND_MEM: +#ifdef CONFIG_SPE

Re: [PATCH v2 02/15] powerpc/85xx: add sleep and deep sleep support

2013-04-23 Thread Scott Wood
On 04/19/2013 05:47:35 AM, Zhao Chenhui wrote: static int pmc_suspend_enter(suspend_state_t state) { - int ret; + int ret = 0; + + switch (state) { +#ifdef CONFIG_PPC_85xx + case PM_SUSPEND_MEM: +#ifdef CONFIG_SPE + enable_kernel_spe(); +#endif +

[PATCH v2 02/15] powerpc/85xx: add sleep and deep sleep support

2013-04-19 Thread Zhao Chenhui
Some Freescale SoCs like MPC8536 and P1022 has the deep sleep mode in addtion to the sleep mode. In sleep PM mode, the clocks of e500 core and unused IP blocks is turned off. IP blocks which are allowed to wake up the processor are still running. While in deep sleep PM mode, additionally, the