diff options
author | Pinkava J <Jiri.Pinkava@vscht.cz> | 2010-05-06 09:23:24 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-06 20:41:33 -0400 |
commit | 271d323237a1ab96b74c69fa48a8612963245266 (patch) | |
tree | 28e8af4967eedcb51a4dcd2e8f19172ae2a78b3f /arch/arm/mach-s3c2410 | |
parent | 50cdba782c3de35bf6d454096213c986146f46a5 (diff) |
ARM: n30: Add support for power on/off on Acer n30 / Acer n35 MMC card reader
Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-n30.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c index 81973aa8194b..f25275ef8bc8 100644 --- a/arch/arm/mach-s3c2410/mach-n30.c +++ b/arch/arm/mach-s3c2410/mach-n30.c | |||
@@ -352,10 +352,25 @@ static struct s3c2410fb_mach_info n30_fb_info __initdata = { | |||
352 | .lpcsel = 0x06, | 352 | .lpcsel = 0x06, |
353 | }; | 353 | }; |
354 | 354 | ||
355 | static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd) | ||
356 | { | ||
357 | switch (power_mode) { | ||
358 | case MMC_POWER_ON: | ||
359 | case MMC_POWER_UP: | ||
360 | s3c2410_gpio_setpin(S3C2410_GPG(4), 1); | ||
361 | break; | ||
362 | case MMC_POWER_OFF: | ||
363 | default: | ||
364 | s3c2410_gpio_setpin(S3C2410_GPG(4), 0); | ||
365 | break; | ||
366 | } | ||
367 | } | ||
368 | |||
355 | static struct s3c24xx_mci_pdata n30_mci_cfg __initdata = { | 369 | static struct s3c24xx_mci_pdata n30_mci_cfg __initdata = { |
356 | .gpio_detect = S3C2410_GPF(1), | 370 | .gpio_detect = S3C2410_GPF(1), |
357 | .gpio_wprotect = S3C2410_GPG(10), | 371 | .gpio_wprotect = S3C2410_GPG(10), |
358 | .ocr_avail = MMC_VDD_32_33, | 372 | .ocr_avail = MMC_VDD_32_33, |
373 | .set_power = n30_sdi_set_power, | ||
359 | }; | 374 | }; |
360 | 375 | ||
361 | static struct platform_device *n30_devices[] __initdata = { | 376 | static struct platform_device *n30_devices[] __initdata = { |