From: <bob...@us...> - 2006-10-01 09:42:05
|
Revision: 612 http://svn.sourceforge.net/hackndev/?rev=612&view=rev Author: bobofdoom Date: 2006-10-01 02:41:54 -0700 (Sun, 01 Oct 2006) Log Message: ----------- all: reapplying standby hack for LD and TX. Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c 2006-10-01 09:22:58 UTC (rev 611) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c 2006-10-01 09:41:54 UTC (rev 612) @@ -139,7 +139,12 @@ { extern void pxa_cpu_standby(void); extern void pxa_cpu_suspend(unsigned int); - +#if defined(MACH_XSCALE_PALMLD) || defined(MACH_XSCALE_PALMTX) + /* For safety. suspend_mem puts the device in an unresetable state. + * On TX one needs to desolder the battery to get out of it. + */ + if (state == PM_SUSPEND_MEM) state = PM_SUSPEND_STANDBY; +#endif if (state == PM_SUSPEND_STANDBY) CKEN = CKEN22_MEMC | CKEN9_OSTIMER | CKEN16_LCD |CKEN0_PWM0; else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |