aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/shmobile/pm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu/shmobile/pm.c')
-rw-r--r--arch/sh/kernel/cpu/shmobile/pm.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/pm.c b/arch/sh/kernel/cpu/shmobile/pm.c
index ca642f39e2e3..4bd5e5302bfb 100644
--- a/arch/sh/kernel/cpu/shmobile/pm.c
+++ b/arch/sh/kernel/cpu/shmobile/pm.c
@@ -41,11 +41,15 @@ ATOMIC_NOTIFIER_HEAD(sh_mobile_post_sleep_notifier_list);
41 * U-standby mode is low priority since it needs bootloader hacks 41 * U-standby mode is low priority since it needs bootloader hacks
42 */ 42 */
43 43
44#define ILRAM_BASE 0xe5200000 44#ifdef CONFIG_CPU_SUBTYPE_SH7724
45#define RAM_BASE 0xfd800000 /* RSMEM */
46#else
47#define RAM_BASE 0xe5200000 /* ILRAM */
48#endif
45 49
46void sh_mobile_call_standby(unsigned long mode) 50void sh_mobile_call_standby(unsigned long mode)
47{ 51{
48 void *onchip_mem = (void *)ILRAM_BASE; 52 void *onchip_mem = (void *)RAM_BASE;
49 struct sh_sleep_data *sdp = onchip_mem; 53 struct sh_sleep_data *sdp = onchip_mem;
50 void (*standby_onchip_mem)(unsigned long, unsigned long); 54 void (*standby_onchip_mem)(unsigned long, unsigned long);
51 55
@@ -60,7 +64,7 @@ void sh_mobile_call_standby(unsigned long mode)
60 flush_cache_all(); 64 flush_cache_all();
61 65
62 /* Let assembly snippet in on-chip memory handle the rest */ 66 /* Let assembly snippet in on-chip memory handle the rest */
63 standby_onchip_mem(mode, ILRAM_BASE); 67 standby_onchip_mem(mode, RAM_BASE);
64 68
65 atomic_notifier_call_chain(&sh_mobile_post_sleep_notifier_list, 69 atomic_notifier_call_chain(&sh_mobile_post_sleep_notifier_list,
66 mode, NULL); 70 mode, NULL);
@@ -78,7 +82,7 @@ void sh_mobile_register_self_refresh(unsigned long flags,
78 void *pre_start, void *pre_end, 82 void *pre_start, void *pre_end,
79 void *post_start, void *post_end) 83 void *post_start, void *post_end)
80{ 84{
81 void *onchip_mem = (void *)ILRAM_BASE; 85 void *onchip_mem = (void *)RAM_BASE;
82 void *vp; 86 void *vp;
83 struct sh_sleep_data *sdp; 87 struct sh_sleep_data *sdp;
84 int n; 88 int n;