mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
ARM: n30: Fixup gpiolib calls for mmc power
Move to using gpio_request() and gpio_set_value() for the MMC power control calls. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
parent
271d323237
commit
8a19ebb093
@ -88,10 +88,10 @@ static void n30_udc_pullup(enum s3c2410_udc_cmd_e cmd)
|
|||||||
{
|
{
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case S3C2410_UDC_P_ENABLE :
|
case S3C2410_UDC_P_ENABLE :
|
||||||
s3c2410_gpio_setpin(S3C2410_GPB(3), 1);
|
gpio_set_value(S3C2410_GPB(3), 1);
|
||||||
break;
|
break;
|
||||||
case S3C2410_UDC_P_DISABLE :
|
case S3C2410_UDC_P_DISABLE :
|
||||||
s3c2410_gpio_setpin(S3C2410_GPB(3), 0);
|
gpio_set_value(S3C2410_GPB(3), 0);
|
||||||
break;
|
break;
|
||||||
case S3C2410_UDC_P_RESET :
|
case S3C2410_UDC_P_RESET :
|
||||||
break;
|
break;
|
||||||
@ -357,11 +357,11 @@ static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd)
|
|||||||
switch (power_mode) {
|
switch (power_mode) {
|
||||||
case MMC_POWER_ON:
|
case MMC_POWER_ON:
|
||||||
case MMC_POWER_UP:
|
case MMC_POWER_UP:
|
||||||
s3c2410_gpio_setpin(S3C2410_GPG(4), 1);
|
gpio_set_value(S3C2410_GPG(4), 1);
|
||||||
break;
|
break;
|
||||||
case MMC_POWER_OFF:
|
case MMC_POWER_OFF:
|
||||||
default:
|
default:
|
||||||
s3c2410_gpio_setpin(S3C2410_GPG(4), 0);
|
gpio_set_value(S3C2410_GPG(4), 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -561,6 +561,8 @@ static void __init n30_init_irq(void)
|
|||||||
|
|
||||||
static void __init n30_init(void)
|
static void __init n30_init(void)
|
||||||
{
|
{
|
||||||
|
WARN_ON(gpio_request(S3C2410_GPG(4), "mmc power"));
|
||||||
|
|
||||||
s3c24xx_fb_set_platdata(&n30_fb_info);
|
s3c24xx_fb_set_platdata(&n30_fb_info);
|
||||||
s3c24xx_udc_set_platdata(&n30_udc_cfg);
|
s3c24xx_udc_set_platdata(&n30_udc_cfg);
|
||||||
s3c24xx_mci_set_platdata(&n30_mci_cfg);
|
s3c24xx_mci_set_platdata(&n30_mci_cfg);
|
||||||
|
Loading…
Reference in New Issue
Block a user