diff options
author | Jean Pihet <j-pihet@ti.com> | 2010-12-18 10:44:43 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-21 17:45:57 -0500 |
commit | fe360e1c8693bca175338da4c53078b0be807c52 (patch) | |
tree | d0b45593751c3ec25fa0220e68d52deeeb842e00 /arch/arm/mach-omap2/sleep34xx.S | |
parent | b4b36fd94e4ca99b3258ff24c2c58cdde67085e0 (diff) |
OMAP3: remove hardcoded values from the ASM sleep code
Using macros from existing include files for registers addresses.
Tested on N900 and Beagleboard with full RET and OFF modes,
using cpuidle and suspend.
Based on original patch from Vishwa.
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Cc: Vishwanath BS <vishwanath.bs@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Nishanth Menon <nm@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.S | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S index fb9811120744..39b93225f9d7 100644 --- a/arch/arm/mach-omap2/sleep34xx.S +++ b/arch/arm/mach-omap2/sleep34xx.S | |||
@@ -34,20 +34,27 @@ | |||
34 | #include "sdrc.h" | 34 | #include "sdrc.h" |
35 | #include "control.h" | 35 | #include "control.h" |
36 | 36 | ||
37 | #define SDRC_SCRATCHPAD_SEM_V 0xfa00291c | 37 | /* |
38 | 38 | * Registers access definitions | |
39 | #define PM_PREPWSTST_CORE_P 0x48306AE8 | 39 | */ |
40 | #define SDRC_SCRATCHPAD_SEM_OFFS 0xc | ||
41 | #define SDRC_SCRATCHPAD_SEM_V OMAP343X_SCRATCHPAD_REGADDR\ | ||
42 | (SDRC_SCRATCHPAD_SEM_OFFS) | ||
43 | #define PM_PREPWSTST_CORE_P OMAP3430_PRM_BASE + CORE_MOD +\ | ||
44 | OMAP3430_PM_PREPWSTST | ||
40 | #define PM_PWSTCTRL_MPU_P OMAP3430_PRM_BASE + MPU_MOD + OMAP2_PM_PWSTCTRL | 45 | #define PM_PWSTCTRL_MPU_P OMAP3430_PRM_BASE + MPU_MOD + OMAP2_PM_PWSTCTRL |
41 | #define CM_IDLEST1_CORE_V OMAP34XX_CM_REGADDR(CORE_MOD, CM_IDLEST1) | 46 | #define CM_IDLEST1_CORE_V OMAP34XX_CM_REGADDR(CORE_MOD, CM_IDLEST1) |
42 | #define CM_IDLEST_CKGEN_V OMAP34XX_CM_REGADDR(PLL_MOD, CM_IDLEST) | 47 | #define CM_IDLEST_CKGEN_V OMAP34XX_CM_REGADDR(PLL_MOD, CM_IDLEST) |
43 | #define SRAM_BASE_P 0x40200000 | 48 | #define SRAM_BASE_P OMAP3_SRAM_PA |
44 | #define CONTROL_STAT 0x480022F0 | 49 | #define CONTROL_STAT OMAP343X_CTRL_BASE + OMAP343X_CONTROL_STATUS |
45 | #define CONTROL_MEM_RTA_CTRL (OMAP343X_CTRL_BASE\ | 50 | #define CONTROL_MEM_RTA_CTRL (OMAP343X_CTRL_BASE +\ |
46 | + OMAP36XX_CONTROL_MEM_RTA_CTRL) | 51 | OMAP36XX_CONTROL_MEM_RTA_CTRL) |
47 | #define SCRATCHPAD_MEM_OFFS 0x310 /* Move this as correct place is | 52 | |
48 | * available */ | 53 | /* Move this as correct place is available */ |
49 | #define SCRATCHPAD_BASE_P (OMAP343X_CTRL_BASE + OMAP343X_CONTROL_MEM_WKUP\ | 54 | #define SCRATCHPAD_MEM_OFFS 0x310 |
50 | + SCRATCHPAD_MEM_OFFS) | 55 | #define SCRATCHPAD_BASE_P (OMAP343X_CTRL_BASE +\ |
56 | OMAP343X_CONTROL_MEM_WKUP +\ | ||
57 | SCRATCHPAD_MEM_OFFS) | ||
51 | #define SDRC_POWER_V OMAP34XX_SDRC_REGADDR(SDRC_POWER) | 58 | #define SDRC_POWER_V OMAP34XX_SDRC_REGADDR(SDRC_POWER) |
52 | #define SDRC_SYSCONFIG_P (OMAP343X_SDRC_BASE + SDRC_SYSCONFIG) | 59 | #define SDRC_SYSCONFIG_P (OMAP343X_SDRC_BASE + SDRC_SYSCONFIG) |
53 | #define SDRC_MR_0_P (OMAP343X_SDRC_BASE + SDRC_MR_0) | 60 | #define SDRC_MR_0_P (OMAP343X_SDRC_BASE + SDRC_MR_0) |