On 6/19/2011 10:37 AM, linxz02@xxxxxxx wrote:
Hi All, I was wondering whether it is possible to keep the Cortex M3 cores running while the OMAP processor is suspended. My testing environment was simple: I used Pandaboard (OMAP4430) and kernel 2.6.35. I wrote an M3 program to toggle one GPIO pin (which drives a LED). As long as the M3 program is running, the LED will blink. On the kernel side, I tried to change the suspend functions in arch/arm/mach-omap2/pm44xx.c. I set the states of core_pwrdm and l4per_pwrdm to ON, right before the system suspends. However, when the system was suspended (omap4_pm_suspend() was invoked), the LED stopped to blink. I think the M3 cores were powered off then. Did I miss anything? I'll really appreciate any input. Thanks!
Are you trying this on mainline. Mostly not. And when you say OMAP suspend, whole SOC should go down to low power state. If you keep M3 active then CORE PD can't go down and hence the OMAP won't really suspend. Mostly MPUSS and some independent PD's only will transition. Your problem is the GPIO clocks are cut in late suspend code. You can comment out the gpio_suspend code. Since you don't use GPIO kernel driver, linux side has no idea that any one else wants to use GPIO. Hope this helps. Regards Santosh -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html