[PATCH 05/14] ARM: LPC32XX: System suspend support

Pavel Machek pavel at ucw.cz
Sun Feb 14 11:51:22 EST 2010


Hi!

> Support for system suspend and resume
> 
> Signed-off-by: Kevin Wells <wellsk40 at gmail.com>
> ---


> +	/* Backup a small area of IRAM used for the suspend code */
> +	memcpy(iram_swap_area, (void *) TEMP_IRAM_AREA,
> +		lpc32xx_sys_suspend_sz);
> +	flush_cache_all();
> +
> +	/*
> +	 * Copy code to suspend system into IRAM. The suspend code
> +	 * needs to run from IRAM as DRAM may no longer be available
> +	 * when the PLL is stopped.
> +	 */
> +	memcpy((void *) TEMP_IRAM_AREA, &lpc32xx_sys_suspend,
> +		lpc32xx_sys_suspend_sz);

icache flush needed here? or does the above flush suffice? ... I
believe you do need the flush.

> +	/* Transfer to suspend code in IRAM */
> +	lpc32xx_suspend_ptr = (void *) TEMP_IRAM_AREA;
> +	(void) lpc32xx_suspend_ptr();
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html



More information about the linux-arm-kernel mailing list