diff options
author | Jean Pihet <j-pihet@ti.com> | 2010-12-18 10:44:45 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-21 17:45:58 -0500 |
commit | f7dfe3d8a98b7c4869c09826e3a65663cb9c71be (patch) | |
tree | a308e3f5416dc4a690814e08442805555f52d762 /arch/arm/mach-omap2/control.c | |
parent | 1e81bc015a444e0f908451642b0197199d0c6fa4 (diff) |
OMAP3: rework of the ASM sleep code execution paths
- Reworked and simplified the execution paths for better
readability and to avoid duplication of code,
- Added comments on the entry and exit points and the interaction
with the ROM code for OFF mode restore,
- Reworked the existing comments for better readability.
Tested on N900 and Beagleboard with full RET and OFF modes,
using cpuidle and suspend.
Signed-off-by: Jean Pihet <j-pihet@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.c')
-rw-r--r-- | arch/arm/mach-omap2/control.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 27ed558fdf54..0269bb055b69 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c | |||
@@ -239,7 +239,14 @@ void omap3_save_scratchpad_contents(void) | |||
239 | struct omap3_scratchpad_prcm_block prcm_block_contents; | 239 | struct omap3_scratchpad_prcm_block prcm_block_contents; |
240 | struct omap3_scratchpad_sdrc_block sdrc_block_contents; | 240 | struct omap3_scratchpad_sdrc_block sdrc_block_contents; |
241 | 241 | ||
242 | /* Populate the Scratchpad contents */ | 242 | /* |
243 | * Populate the Scratchpad contents | ||
244 | * | ||
245 | * The "get_*restore_pointer" functions are used to provide a | ||
246 | * physical restore address where the ROM code jumps while waking | ||
247 | * up from MPU OFF/OSWR state. | ||
248 | * The restore pointer is stored into the scratchpad. | ||
249 | */ | ||
243 | scratchpad_contents.boot_config_ptr = 0x0; | 250 | scratchpad_contents.boot_config_ptr = 0x0; |
244 | if (cpu_is_omap3630()) | 251 | if (cpu_is_omap3630()) |
245 | scratchpad_contents.public_restore_ptr = | 252 | scratchpad_contents.public_restore_ptr = |