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/control.h | |
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/control.h')
-rw-r--r-- | arch/arm/mach-omap2/control.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h index ec98dd716217..6e5f7e512ff7 100644 --- a/arch/arm/mach-omap2/control.h +++ b/arch/arm/mach-omap2/control.h | |||
@@ -274,6 +274,8 @@ | |||
274 | #define OMAP343X_SCRATCHPAD_ROM (OMAP343X_CTRL_BASE + 0x860) | 274 | #define OMAP343X_SCRATCHPAD_ROM (OMAP343X_CTRL_BASE + 0x860) |
275 | #define OMAP343X_SCRATCHPAD (OMAP343X_CTRL_BASE + 0x910) | 275 | #define OMAP343X_SCRATCHPAD (OMAP343X_CTRL_BASE + 0x910) |
276 | #define OMAP343X_SCRATCHPAD_ROM_OFFSET 0x19C | 276 | #define OMAP343X_SCRATCHPAD_ROM_OFFSET 0x19C |
277 | #define OMAP343X_SCRATCHPAD_REGADDR(reg) OMAP2_L4_IO_ADDRESS(\ | ||
278 | OMAP343X_SCRATCHPAD + reg) | ||
277 | 279 | ||
278 | /* AM35XX_CONTROL_IPSS_CLK_CTRL bits */ | 280 | /* AM35XX_CONTROL_IPSS_CLK_CTRL bits */ |
279 | #define AM35XX_USBOTG_VBUSP_CLK_SHIFT 0 | 281 | #define AM35XX_USBOTG_VBUSP_CLK_SHIFT 0 |