Re: [PATCH v2 2/2] arm: pm: add deep sleep support for LS1

2014-10-23 Thread Arnd Bergmann
On Thursday 23 October 2014 12:16:13 Chenhui Zhao wrote: > +extern void ls1_do_deepsleep(unsigned long addr); > +extern void ls1_start_fsm(void); > +extern void ls1_deepsleep_resume(void); > +extern void ls1021a_set_secondary_entry(void); > +extern int ls1_sram_code_size; > +extern void fsl_epu_set

[PATCH v2 2/2] arm: pm: add deep sleep support for LS1

2014-10-22 Thread Chenhui Zhao
LS1 supports deep sleep feature that can switch off most parts of the SoC when it is in deep sleep state. The DDR controller will also be powered off in deep sleep. Therefore, copy the last stage code to enter deep sleep to SRAM and run it with disabling MMU and caches. Signed-off-by: Chenhui Zha