Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191989
b: refs/heads/master
c: 271d323
h: refs/heads/master
i:
  191987: fa04633
v: v3
  • Loading branch information
Pinkava J authored and Ben Dooks committed May 7, 2010
1 parent d5f6b97 commit 7d45686
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50cdba782c3de35bf6d454096213c986146f46a5
refs/heads/master: 271d323237a1ab96b74c69fa48a8612963245266
15 changes: 15 additions & 0 deletions trunk/arch/arm/mach-s3c2410/mach-n30.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,25 @@ static struct s3c2410fb_mach_info n30_fb_info __initdata = {
.lpcsel = 0x06,
};

static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd)
{
switch (power_mode) {
case MMC_POWER_ON:
case MMC_POWER_UP:
s3c2410_gpio_setpin(S3C2410_GPG(4), 1);
break;
case MMC_POWER_OFF:
default:
s3c2410_gpio_setpin(S3C2410_GPG(4), 0);
break;
}
}

static struct s3c24xx_mci_pdata n30_mci_cfg __initdata = {
.gpio_detect = S3C2410_GPF(1),
.gpio_wprotect = S3C2410_GPG(10),
.ocr_avail = MMC_VDD_32_33,
.set_power = n30_sdi_set_power,
};

static struct platform_device *n30_devices[] __initdata = {
Expand Down

0 comments on commit 7d45686

Please sign in to comment.