Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313116
b: refs/heads/master
c: 9491173
h: refs/heads/master
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Kukjin Kim committed Jul 13, 2012
1 parent c5df402 commit b2201f0
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: 5c9fb56b456eb4ebb82adfcad2edeb3c4821925a
refs/heads/master: 949117356e84ef0922a99e56343894ca2ddaea83
12 changes: 8 additions & 4 deletions trunk/arch/arm/mach-s3c24xx/pm-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ static void s3c2410_pm_prepare(void)
__raw_writel(calc, phys_to_virt(H1940_SUSPEND_CHECKSUM));
}

if ( machine_is_aml_m5900() )
s3c2410_gpio_setpin(S3C2410_GPF(2), 1);
if (machine_is_aml_m5900()) {
gpio_request_one(S3C2410_GPF(2), GPIOF_OUT_INIT_HIGH, NULL);
gpio_free(S3C2410_GPF(2));
}

if (machine_is_rx1950()) {
/* According to S3C2442 user's manual, page 7-17,
Expand All @@ -103,8 +105,10 @@ static void s3c2410_pm_resume(void)
tmp &= S3C2410_GSTATUS2_OFFRESET;
__raw_writel(tmp, S3C2410_GSTATUS2);

if ( machine_is_aml_m5900() )
s3c2410_gpio_setpin(S3C2410_GPF(2), 0);
if (machine_is_aml_m5900()) {
gpio_request_one(S3C2410_GPF(2), GPIOF_OUT_INIT_LOW, NULL);
gpio_free(S3C2410_GPF(2));
}
}

struct syscore_ops s3c2410_pm_syscore_ops = {
Expand Down

0 comments on commit b2201f0

Please sign in to comment.