Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260627
b: refs/heads/master
c: 12974e9
h: refs/heads/master
i:
  260625: ec88cf0
  260623: eeb5049
v: v3
  • Loading branch information
Jaecheol Lee authored and Kukjin Kim committed Jul 20, 2011
1 parent fb8f663 commit 58e6035
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 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: e240ab1cfbf8e341c38847fe9aee8579a01ed303
refs/heads/master: 12974e9f707888044a3af3a12ebdebf0a509a1fa
22 changes: 14 additions & 8 deletions trunk/arch/arm/mach-exynos4/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,6 @@ static struct sleep_save exynos4_l2cc_save[] = {

void exynos4_cpu_suspend(void)
{
unsigned long tmp;

/* Setting Central Sequence Register for power down mode */

tmp = __raw_readl(S5P_CENTRAL_SEQ_CONFIGURATION);
tmp &= ~(S5P_CENTRAL_LOWPWR_CFG);
__raw_writel(tmp, S5P_CENTRAL_SEQ_CONFIGURATION);

outer_flush_all();

/* issue the standby signal into the pm unit. */
Expand Down Expand Up @@ -299,6 +291,19 @@ static __init int exynos4_pm_drvinit(void)
}
arch_initcall(exynos4_pm_drvinit);

static int exynos4_pm_suspend(void)
{
unsigned long tmp;

/* Setting Central Sequence Register for power down mode */

tmp = __raw_readl(S5P_CENTRAL_SEQ_CONFIGURATION);
tmp &= ~S5P_CENTRAL_LOWPWR_CFG;
__raw_writel(tmp, S5P_CENTRAL_SEQ_CONFIGURATION);

return 0;
}

static void exynos4_pm_resume(void)
{
unsigned long tmp;
Expand Down Expand Up @@ -343,6 +348,7 @@ static void exynos4_pm_resume(void)
}

static struct syscore_ops exynos4_pm_syscore_ops = {
.suspend = exynos4_pm_suspend,
.resume = exynos4_pm_resume,
};

Expand Down

0 comments on commit 58e6035

Please sign in to comment.