diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2016-03-21 04:37:06 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-27 16:12:59 +0300 |
commit | 9ddde3e6ce8abd97d397e3915204a6981d287e42 (patch) | |
tree | b02ccd1b86fe5f09bc470f99f1a6cf8539c763d1 /arch/arm/cpu/pxa | |
parent | afed7ebe8500e6f05ac93ceb5e3f75fd193fd786 (diff) | |
download | u-boot-9ddde3e6ce8abd97d397e3915204a6981d287e42.tar.xz |
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>
Diffstat (limited to 'arch/arm/cpu/pxa')
-rw-r--r-- | arch/arm/cpu/pxa/start.S | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/cpu/pxa/start.S b/arch/arm/cpu/pxa/start.S index 24b6ad187a..ce1181a6c5 100644 --- a/arch/arm/cpu/pxa/start.S +++ b/arch/arm/cpu/pxa/start.S @@ -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 /*------------------------------------------------------------------------------*/ |