Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173466
b: refs/heads/master
c: 03625e7
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Oct 30, 2009
1 parent c9d53bb commit 57467de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99675a7a45ed3cec54d6e1d11f13bcaacaf0909b
refs/heads/master: 03625e7107cde46e2851557ec06426799e6ae7f2
12 changes: 8 additions & 4 deletions trunk/arch/sh/kernel/cpu/shmobile/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ ATOMIC_NOTIFIER_HEAD(sh_mobile_post_sleep_notifier_list);
* U-standby mode is low priority since it needs bootloader hacks
*/

#define ILRAM_BASE 0xe5200000
#ifdef CONFIG_CPU_SUBTYPE_SH7724
#define RAM_BASE 0xfd800000 /* RSMEM */
#else
#define RAM_BASE 0xe5200000 /* ILRAM */
#endif

void sh_mobile_call_standby(unsigned long mode)
{
void *onchip_mem = (void *)ILRAM_BASE;
void *onchip_mem = (void *)RAM_BASE;
struct sh_sleep_data *sdp = onchip_mem;
void (*standby_onchip_mem)(unsigned long, unsigned long);

Expand All @@ -60,7 +64,7 @@ void sh_mobile_call_standby(unsigned long mode)
flush_cache_all();

/* Let assembly snippet in on-chip memory handle the rest */
standby_onchip_mem(mode, ILRAM_BASE);
standby_onchip_mem(mode, RAM_BASE);

atomic_notifier_call_chain(&sh_mobile_post_sleep_notifier_list,
mode, NULL);
Expand All @@ -78,7 +82,7 @@ void sh_mobile_register_self_refresh(unsigned long flags,
void *pre_start, void *pre_end,
void *post_start, void *post_end)
{
void *onchip_mem = (void *)ILRAM_BASE;
void *onchip_mem = (void *)RAM_BASE;
void *vp;
struct sh_sleep_data *sdp;
int n;
Expand Down

0 comments on commit 57467de

Please sign in to comment.