aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/sleep34xx.S
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2008-09-26 08:19:56 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-11 17:42:25 -0500
commit61255ab9e853ddbbe092328c30921d2ba9434134 (patch)
treefb98af6ee37546e36ebce77da40d4a6fd99aee78 /arch/arm/mach-omap2/sleep34xx.S
parent57f277b0122722ffa1de1b53aceb70646ce9a8e1 (diff)
OMAP3: PM: MPU off-mode support
Adds a 'save_state' option when calling into SRAM idle function and adds some minor cleanups of SRAM asm code. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/sleep34xx.S')
-rw-r--r--arch/arm/mach-omap2/sleep34xx.S11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S
index 6a749f2fea63..f8d3834bf681 100644
--- a/arch/arm/mach-omap2/sleep34xx.S
+++ b/arch/arm/mach-omap2/sleep34xx.S
@@ -36,12 +36,11 @@
36 OMAP3430_PM_PREPWSTST) 36 OMAP3430_PM_PREPWSTST)
37#define PM_PREPWSTST_MPU_V OMAP34XX_PRM_REGADDR(MPU_MOD, \ 37#define PM_PREPWSTST_MPU_V OMAP34XX_PRM_REGADDR(MPU_MOD, \
38 OMAP3430_PM_PREPWSTST) 38 OMAP3430_PM_PREPWSTST)
39#define PM_PWSTCTRL_MPU_P OMAP34XX_PRM_REGADDR(MPU_MOD, PM_PWSTCTRL) 39#define PM_PWSTCTRL_MPU_P OMAP3430_PRM_BASE + MPU_MOD + PM_PWSTCTRL
40#define SCRATCHPAD_MEM_OFFS 0x310 /* Move this as correct place is 40#define SCRATCHPAD_MEM_OFFS 0x310 /* Move this as correct place is
41 * available */ 41 * available */
42#define SCRATCHPAD_BASE_P OMAP343X_CTRL_REGADDR(\ 42#define SCRATCHPAD_BASE_P (OMAP343X_CTRL_BASE + OMAP343X_CONTROL_MEM_WKUP\
43 OMAP343X_CONTROL_MEM_WKUP +\ 43 + SCRATCHPAD_MEM_OFFS)
44 SCRATCHPAD_MEM_OFFS)
45#define SDRC_POWER_V OMAP34XX_SDRC_REGADDR(SDRC_POWER) 44#define SDRC_POWER_V OMAP34XX_SDRC_REGADDR(SDRC_POWER)
46 45
47 .text 46 .text
@@ -96,7 +95,7 @@ loop:
96 95
97 ldmfd sp!, {r0-r12, pc} @ restore regs and return 96 ldmfd sp!, {r0-r12, pc} @ restore regs and return
98restore: 97restore:
99 /* b restore*/ @ Enable to debug restore code 98 /* b restore*/ @ Enable to debug restore code
100 /* Check what was the reason for mpu reset and store the reason in r9*/ 99 /* Check what was the reason for mpu reset and store the reason in r9*/
101 /* 1 - Only L1 and logic lost */ 100 /* 1 - Only L1 and logic lost */
102 /* 2 - Only L2 lost - In this case, we wont be here */ 101 /* 2 - Only L2 lost - In this case, we wont be here */
@@ -416,8 +415,6 @@ scratchpad_base:
416 .word SCRATCHPAD_BASE_P 415 .word SCRATCHPAD_BASE_P
417sdrc_power: 416sdrc_power:
418 .word SDRC_POWER_V 417 .word SDRC_POWER_V
419context_mem:
420 .word 0x803E3E14
421clk_stabilize_delay: 418clk_stabilize_delay:
422 .word 0x000001FF 419 .word 0x000001FF
423assoc_mask: 420assoc_mask: