diff options
author | Rajendra Nayak <rnayak@ti.com> | 2008-09-26 08:18:46 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-11 17:42:24 -0500 |
commit | 8014078684377257e3a83ac45db95711929850c5 (patch) | |
tree | 91f6210079b82bcc5dd22511fb29a5ebbbb8f7d1 /arch/arm/plat-omap | |
parent | c171a2586161c623253186c394ca456947ec6a66 (diff) |
OMAP3: PM: Populate scratchpad contents
This patch populates the scratchpad contents as expected by the
bootROM code.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/control.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/control.h b/arch/arm/plat-omap/include/plat/control.h index 835f5b7aa4b6..1076dd967390 100644 --- a/arch/arm/plat-omap/include/plat/control.h +++ b/arch/arm/plat-omap/include/plat/control.h | |||
@@ -207,6 +207,10 @@ | |||
207 | #define OMAP3_PADCONF_WAKEUPEVENT0 (1 << 15) | 207 | #define OMAP3_PADCONF_WAKEUPEVENT0 (1 << 15) |
208 | #define OMAP3_PADCONF_WAKEUPENABLE0 (1 << 14) | 208 | #define OMAP3_PADCONF_WAKEUPENABLE0 (1 << 14) |
209 | 209 | ||
210 | #define OMAP343X_SCRATCHPAD_ROM (OMAP343X_CTRL_BASE + 0x860) | ||
211 | #define OMAP343X_SCRATCHPAD (OMAP343X_CTRL_BASE + 0x910) | ||
212 | #define OMAP343X_SCRATCHPAD_ROM_OFFSET 0x19C | ||
213 | |||
210 | #ifndef __ASSEMBLY__ | 214 | #ifndef __ASSEMBLY__ |
211 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | 215 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
212 | defined(CONFIG_ARCH_OMAP4) | 216 | defined(CONFIG_ARCH_OMAP4) |
@@ -217,6 +221,12 @@ extern u32 omap_ctrl_readl(u16 offset); | |||
217 | extern void omap_ctrl_writeb(u8 val, u16 offset); | 221 | extern void omap_ctrl_writeb(u8 val, u16 offset); |
218 | extern void omap_ctrl_writew(u16 val, u16 offset); | 222 | extern void omap_ctrl_writew(u16 val, u16 offset); |
219 | extern void omap_ctrl_writel(u32 val, u16 offset); | 223 | extern void omap_ctrl_writel(u32 val, u16 offset); |
224 | |||
225 | extern void omap3_save_scratchpad_contents(void); | ||
226 | extern void omap3_clear_scratchpad_contents(void); | ||
227 | extern u32 *get_restore_pointer(void); | ||
228 | extern u32 omap3_arm_context[128]; | ||
229 | |||
220 | #else | 230 | #else |
221 | #define omap_ctrl_base_get() 0 | 231 | #define omap_ctrl_base_get() 0 |
222 | #define omap_ctrl_readb(x) 0 | 232 | #define omap_ctrl_readb(x) 0 |