Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137515
b: refs/heads/master
c: ef30e14
h: refs/heads/master
i:
  137513: 02933ef
  137511: ba4a522
v: v3
  • Loading branch information
Ben Dooks committed Mar 8, 2009
1 parent 1934009 commit dd68fec
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 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: 4e59c25dcbc1f033d043f1009a7f6aaa1f2aef26
refs/heads/master: ef30e14420df546bc6576b00f9caf3379b6699d1
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c2410/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void s3c2410_pm_prepare(void)
{
/* ensure at least GSTATUS3 has the resume address */

__raw_writel(virt_to_phys(s3c2410_cpu_resume), S3C2410_GSTATUS3);
__raw_writel(virt_to_phys(s3c_cpu_resume), S3C2410_GSTATUS3);

S3C_PMDBG("GSTATUS3 0x%08x\n", __raw_readl(S3C2410_GSTATUS3));
S3C_PMDBG("GSTATUS4 0x%08x\n", __raw_readl(S3C2410_GSTATUS4));
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c2412/mach-jive.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ static int jive_pm_suspend(struct sys_device *sd, pm_message_t state)
* correct address to resume from. */

__raw_writel(0x2BED, S3C2412_INFORM0);
__raw_writel(virt_to_phys(s3c2410_cpu_resume), S3C2412_INFORM1);
__raw_writel(virt_to_phys(s3c_cpu_resume), S3C2412_INFORM1);

return 0;
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/arm/plat-s3c/include/plat/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ extern unsigned long s3c_pm_flags;

/* from sleep.S */

extern int s3c2410_cpu_save(unsigned long *saveblk);
extern int s3c_cpu_save(unsigned long *saveblk);
extern void s3c_cpu_resume(void);

extern void s3c2410_cpu_suspend(void);
extern void s3c2410_cpu_resume(void);

extern unsigned long s3c_sleep_save_phys;

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/plat-s3c/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ static int s3c_pm_enter(suspend_state_t state)
* we resume as it saves its own register state, so use the return
* code to differentiate return from save and return from sleep */

if (s3c2410_cpu_save(regs_save) == 0) {
if (s3c_cpu_save(regs_save) == 0) {
flush_cache_all();
S3C_PMDBG("preparing to sleep\n");
pm_cpu_sleep();
}

Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/arm/plat-s3c24xx/sleep.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

.text

/* s3c2410_cpu_save
/* s3c_cpu_save
*
* save enough of the CPU state to allow us to re-start
* pm.c code. as we store items like the sp/lr, we will
Expand All @@ -59,7 +59,7 @@
* 1 => resumed from sleep
*/

ENTRY(s3c2410_cpu_save)
ENTRY(s3c_cpu_save)
stmfd sp!, { r4 - r12, lr }

@@ store co-processor registers
Expand Down Expand Up @@ -99,12 +99,12 @@ s3c_sleep_save_phys:

/* sleep magic, to allow the bootloader to check for an valid
* image to resume to. Must be the first word before the
* s3c2410_cpu_resume entry.
* s3c_cpu_resume entry.
*/

.word 0x2bedf00d

/* s3c2410_cpu_resume
/* s3c_cpu_resume
*
* resume code entry for bootloader to call
*
Expand All @@ -113,7 +113,7 @@ s3c_sleep_save_phys:
* must not write to the code segment (code is read-only)
*/

ENTRY(s3c2410_cpu_resume)
ENTRY(s3c_cpu_resume)
mov r0, #PSR_I_BIT | PSR_F_BIT | SVC_MODE
msr cpsr_c, r0

Expand Down

0 comments on commit dd68fec

Please sign in to comment.