diff options
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 = { |