Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313824
b: refs/heads/master
c: 6b6c37b
h: refs/heads/master
v: v3
  • Loading branch information
Steven Miao authored and Bob Liu committed Jul 24, 2012
1 parent 35cfb71 commit fe24cf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: 923680cbee19bf7be11c3ec3ad6e5c14c4aa2194
refs/heads/master: 6b6c37bf9d9295228b63a06b34fea91a02317bce
19 changes: 10 additions & 9 deletions trunk/arch/blackfin/mach-bf609/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,18 @@ void bfin_hibernate_syscontrol(void)
asmlinkage void enter_deepsleep(void);

__attribute__((l1_text))
void bfin_deepsleep(unsigned long mask)
void bfin_deepsleep(unsigned long mask, unsigned long pol_mask)
{
bfin_write32(DPM0_WAKE_EN, 0x10);
bfin_write32(DPM0_WAKE_POL, 0x10);
bfin_write32(DPM0_WAKE_EN, mask);
bfin_write32(DPM0_WAKE_POL, pol_mask);
SSYNC();
enter_deepsleep();
}

void bfin_hibernate(unsigned long mask)
void bfin_hibernate(unsigned long mask, unsigned long pol_mask)
{
bfin_write32(DPM0_WAKE_EN, 0x10);
bfin_write32(DPM0_WAKE_POL, 0x10);
bfin_write32(DPM0_WAKE_EN, mask);
bfin_write32(DPM0_WAKE_POL, pol_mask);
bfin_write32(DPM0_PGCNTR, 0x0000FFFF);
bfin_write32(DPM0_HIB_DIS, 0xFFFF);

Expand Down Expand Up @@ -270,9 +270,9 @@ void bf609_cpu_pm_enter(suspend_state_t state)
printk(KERN_DEBUG "Unable to get irq wake\n");

if (state == PM_SUSPEND_STANDBY)
bfin_deepsleep(wakeup);
bfin_deepsleep(wakeup, wakeup_pol);
else {
bfin_hibernate(wakeup);
bfin_hibernate(wakeup, wakeup_pol);
}

}
Expand All @@ -294,9 +294,10 @@ static struct bfin_cpu_pm_fns bf609_cpu_pm = {
};

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
static void smc_pm_syscore_suspend(void)
static int smc_pm_syscore_suspend(void)
{
bf609_nor_flash_exit();
return 0;
}

static void smc_pm_syscore_resume(void)
Expand Down

0 comments on commit fe24cf6

Please sign in to comment.