Thread (2 messages) 2 messages, 2 authors, 2013-04-28

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

From: Zhao Chenhui <hidden>
Date: 2013-04-28 10:21:22
Also in: lkml

Possibly related (same subject, not in this thread)

On Tue, Apr 23, 2013 at 06:53:20PM -0500, Scott Wood wrote:
On 04/19/2013 05:47:35 AM, Zhao Chenhui wrote:
quoted
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
+		enable_kernel_fp();
Why does enable_kernel_spe() need an ifdef but enable_kernel_fp()
doesn't?
will enclose it with CONFIG_PPC_FPU.
quoted
+	case PM_SUSPEND_STANDBY:
+#ifdef CONFIG_FSL_SOC_BOOKE
+		flush_dcache_L1();
+#endif
+		setbits32(&pmc_regs->powmgtcsr, POWMGTCSR_SLP);
Only L1, even on e500mc?

-Scott
This patch is just for chips with pmc unit. They have no e500mc core.

-Chenhui
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help