mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
pxa: start.S: enable SRAM clock
SRAM is used for early stack, but kernel disables its clock on suspend. Re-enable SRAM clock on startup, otherwise u-boot crashes on resume from suspend. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
This commit is contained in:
parent
afed7ebe85
commit
9ddde3e6ce
1 changed files with 9 additions and 1 deletions
|
|
@ -53,7 +53,15 @@ reset:
|
|||
#ifdef CONFIG_CPU_PXA25X
|
||||
bl lock_cache_for_stack
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CPU_PXA27X
|
||||
/*
|
||||
* enable clock for SRAM
|
||||
*/
|
||||
ldr r0,=CKEN
|
||||
ldr r1,[r0]
|
||||
orr r1,r1,#(1 << 20)
|
||||
str r1,[r0]
|
||||
#endif
|
||||
bl _main
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue