aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/control.c')
-rw-r--r--arch/arm/mach-omap2/control.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c
index 3ea417d7a1b5..b84cff7087b0 100644
--- a/arch/arm/mach-omap2/control.c
+++ b/arch/arm/mach-omap2/control.c
@@ -85,6 +85,8 @@ struct omap3_scratchpad_sdrc_block {
85 u32 block_size; 85 u32 block_size;
86}; 86};
87 87
88void *omap3_secure_ram_storage;
89
88/* 90/*
89 * This is used to store ARM registers in SDRAM before attempting 91 * This is used to store ARM registers in SDRAM before attempting
90 * an MPU OFF. The save and restore happens from the SRAM sleep code. 92 * an MPU OFF. The save and restore happens from the SRAM sleep code.
@@ -209,7 +211,11 @@ void omap3_save_scratchpad_contents(void)
209 scratchpad_contents.boot_config_ptr = 0x0; 211 scratchpad_contents.boot_config_ptr = 0x0;
210 scratchpad_contents.public_restore_ptr = 212 scratchpad_contents.public_restore_ptr =
211 virt_to_phys(get_restore_pointer()); 213 virt_to_phys(get_restore_pointer());
212 scratchpad_contents.secure_ram_restore_ptr = 0x0; 214 if (omap_type() == OMAP2_DEVICE_TYPE_GP)
215 scratchpad_contents.secure_ram_restore_ptr = 0x0;
216 else
217 scratchpad_contents.secure_ram_restore_ptr =
218 (u32) __pa(omap3_secure_ram_storage);
213 scratchpad_contents.sdrc_module_semaphore = 0x0; 219 scratchpad_contents.sdrc_module_semaphore = 0x0;
214 scratchpad_contents.prcm_block_offset = 0x2C; 220 scratchpad_contents.prcm_block_offset = 0x2C;
215 scratchpad_contents.sdrc_block_offset = 0x64; 221 scratchpad_contents.sdrc_block_offset = 0x64;