ARM: pm: omap34xx: remove get_*_restore_pointer functions, directly use entry points
authorKevin Hilman <khilman@ti.com>
Fri, 24 Jun 2011 00:16:14 +0000 (17:16 -0700)
committerJason Kridner <jdk@ti.com>
Thu, 15 Sep 2011 18:58:54 +0000 (14:58 -0400)
commita84959c09a86d4efba5f40d39c43a0cdd91be923
treed832d91be2d58d3b72203f138096199acd8c60c4
parentab13a1f83b8a8d072e2f0252aa305be5b79e8ab3
ARM: pm: omap34xx: remove get_*_restore_pointer functions, directly use entry points

Upon return from off-mode, the ROM code jumps to a restore function
saved in the scratchpad.  Based on SoC revision or errata, this
restore entry point is different.  Current code uses some helper
functions in sleep34xx.S (get_*_restore_pointer) to get the restore
function entry point.

When returning from off-mode, this code is executed from SDRAM, so
there's no reason to use these helper functions when using the SDRAM
entry points directly would work just fine.

This patch uses ENTRY/ENDPROC to create "real" entry points for these
functions, and uses those values directly when writing the scratchpad.

Tested all three entry points
- restore_es3: 3430/n900
- restore_3630: 3630/Zoom3
- restore: 3530/Overo

Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Jean Pihet <j-pihet@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/control.c
arch/arm/mach-omap2/control.h
arch/arm/mach-omap2/sleep34xx.S