]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pxa: start.S: enable SRAM clock
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 21 Mar 2016 01:37:06 +0000 (18:37 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:59 +0000 (09:12 -0400)
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>
arch/arm/cpu/pxa/start.S

index 24b6ad187ae75aa377a5a7c1b75472dd51113579..ce1181a6c55707eed8f648098019b92b45e89402 100644 (file)
@@ -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
 
 /*------------------------------------------------------------------------------*/