diff options
author | Stefan Agner <stefan@agner.ch> | 2015-06-01 22:33:20 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-08-04 17:51:29 +0200 |
commit | 853aca307b76ea84d7dc45ddb0b7b8e2e54fe9a1 (patch) | |
tree | d9ba7387842e16d89c9ea4eb9abc85337174ba0b /arch/arm/mach-imx | |
parent | f871d5d9dc03302ec54236dfa23b06bd65304c12 (diff) |
ARM: vf610: PM: enable SNVS access
Restore access to SNVS which seems to be done by the boot ROM
on normal boot. This is required for RTC wakeup not ending up
in a interrupt storm, since the SNVS RTC driver can not
acknowledge the wakeup alarm without write access.
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/suspend-vf610.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/suspend-vf610.S b/arch/arm/mach-imx/suspend-vf610.S index cfed0b7594ba..595dd4e2c74c 100644 --- a/arch/arm/mach-imx/suspend-vf610.S +++ b/arch/arm/mach-imx/suspend-vf610.S @@ -429,6 +429,17 @@ ddrmc_initializing: ldr r5, =0x0 str r5, [r11, #VF610_GPC_LPMR] + /* Enable SNVS */ + ldr r3, [r0, #PM_INFO_VF610_CCM_P_OFFSET] + ldr r4, [r3, #VF610_CCM_CCGR6] + orr r4, r4, #0x0000C000 + str r4, [r3, #VF610_CCM_CCGR6] + + /* Enable SNVS access (RTC) */ + ldr r11, =0x400a7000 + ldr r4, =0x80000100 + str r4, [r11, #0x4] + /* get physical resume address from pm_info. */ ldr lr, [r0, #PM_INFO_RESUME_ADDR_OFFSET] |