aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ag5evm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/board-ag5evm.c')
-rw-r--r--arch/arm/mach-shmobile/board-ag5evm.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c
index 8ff53a19c48c..a4ac46a89b27 100644
--- a/arch/arm/mach-shmobile/board-ag5evm.c
+++ b/arch/arm/mach-shmobile/board-ag5evm.c
@@ -304,9 +304,9 @@ static int lcd_backlight_set_brightness(int brightness)
304 304
305 if (brightness == 0) { 305 if (brightness == 0) {
306 /* Reset the chip */ 306 /* Reset the chip */
307 gpio_set_value(GPIO_PORT235, 0); 307 gpio_set_value(235, 0);
308 mdelay(24); 308 mdelay(24);
309 gpio_set_value(GPIO_PORT235, 1); 309 gpio_set_value(235, 1);
310 return 0; 310 return 0;
311 } 311 }
312 312
@@ -406,7 +406,7 @@ static struct sh_mobile_sdhi_info sdhi0_info = {
406 .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_USE_GPIO_CD, 406 .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_USE_GPIO_CD,
407 .tmio_caps = MMC_CAP_SD_HIGHSPEED, 407 .tmio_caps = MMC_CAP_SD_HIGHSPEED,
408 .tmio_ocr_mask = MMC_VDD_27_28 | MMC_VDD_28_29, 408 .tmio_ocr_mask = MMC_VDD_27_28 | MMC_VDD_28_29,
409 .cd_gpio = GPIO_PORT251, 409 .cd_gpio = 251,
410}; 410};
411 411
412static struct resource sdhi0_resources[] = { 412static struct resource sdhi0_resources[] = {
@@ -461,7 +461,7 @@ static struct regulator_init_data cn4_power_init_data = {
461static struct fixed_voltage_config cn4_power_info = { 461static struct fixed_voltage_config cn4_power_info = {
462 .supply_name = "CN4 SD/MMC Vdd", 462 .supply_name = "CN4 SD/MMC Vdd",
463 .microvolts = 3300000, 463 .microvolts = 3300000,
464 .gpio = GPIO_PORT114, 464 .gpio = 114,
465 .enable_high = 1, 465 .enable_high = 1,
466 .init_data = &cn4_power_init_data, 466 .init_data = &cn4_power_init_data,
467}; 467};
@@ -479,10 +479,10 @@ static void ag5evm_sdhi1_set_pwr(struct platform_device *pdev, int state)
479 static int power_gpio = -EINVAL; 479 static int power_gpio = -EINVAL;
480 480
481 if (power_gpio < 0) { 481 if (power_gpio < 0) {
482 int ret = gpio_request_one(GPIO_PORT114, GPIOF_OUT_INIT_LOW, 482 int ret = gpio_request_one(114, GPIOF_OUT_INIT_LOW,
483 "sdhi1_power"); 483 "sdhi1_power");
484 if (!ret) 484 if (!ret)
485 power_gpio = GPIO_PORT114; 485 power_gpio = 114;
486 } 486 }
487 487
488 /* 488 /*
@@ -493,7 +493,7 @@ static void ag5evm_sdhi1_set_pwr(struct platform_device *pdev, int state)
493 * regulator driver. We have to live with the race in case the driver 493 * regulator driver. We have to live with the race in case the driver
494 * gets unloaded and the GPIO freed between these two steps. 494 * gets unloaded and the GPIO freed between these two steps.
495 */ 495 */
496 gpio_set_value(GPIO_PORT114, state); 496 gpio_set_value(114, state);
497} 497}
498 498
499static struct sh_mobile_sdhi_info sh_sdhi1_info = { 499static struct sh_mobile_sdhi_info sh_sdhi1_info = {
@@ -603,11 +603,11 @@ static void __init ag5evm_init(void)
603 gpio_request(GPIO_FN_MMCD0_5_PU, NULL); 603 gpio_request(GPIO_FN_MMCD0_5_PU, NULL);
604 gpio_request(GPIO_FN_MMCD0_6_PU, NULL); 604 gpio_request(GPIO_FN_MMCD0_6_PU, NULL);
605 gpio_request(GPIO_FN_MMCD0_7_PU, NULL); 605 gpio_request(GPIO_FN_MMCD0_7_PU, NULL);
606 gpio_request_one(GPIO_PORT208, GPIOF_OUT_INIT_HIGH, NULL); /* Reset */ 606 gpio_request_one(208, GPIOF_OUT_INIT_HIGH, NULL); /* Reset */
607 607
608 /* enable SMSC911X */ 608 /* enable SMSC911X */
609 gpio_request_one(GPIO_PORT144, GPIOF_IN, NULL); /* PINTA2 */ 609 gpio_request_one(144, GPIOF_IN, NULL); /* PINTA2 */
610 gpio_request_one(GPIO_PORT145, GPIOF_OUT_INIT_HIGH, NULL); /* RESET */ 610 gpio_request_one(145, GPIOF_OUT_INIT_HIGH, NULL); /* RESET */
611 611
612 /* FSI A */ 612 /* FSI A */
613 gpio_request(GPIO_FN_FSIACK, NULL); 613 gpio_request(GPIO_FN_FSIACK, NULL);
@@ -622,13 +622,13 @@ static void __init ag5evm_init(void)
622 gpio_request(GPIO_FN_PORT243_IRDA_FIRSEL, NULL); 622 gpio_request(GPIO_FN_PORT243_IRDA_FIRSEL, NULL);
623 623
624 /* LCD panel */ 624 /* LCD panel */
625 gpio_request_one(GPIO_PORT217, GPIOF_OUT_INIT_LOW, NULL); /* RESET */ 625 gpio_request_one(217, GPIOF_OUT_INIT_LOW, NULL); /* RESET */
626 mdelay(1); 626 mdelay(1);
627 gpio_set_value(GPIO_PORT217, 1); 627 gpio_set_value(217, 1);
628 mdelay(100); 628 mdelay(100);
629 629
630 /* LCD backlight controller */ 630 /* LCD backlight controller */
631 gpio_request_one(GPIO_PORT235, GPIOF_OUT_INIT_LOW, NULL); /* RESET */ 631 gpio_request_one(235, GPIOF_OUT_INIT_LOW, NULL); /* RESET */
632 lcd_backlight_set_brightness(0); 632 lcd_backlight_set_brightness(0);
633 633
634 /* enable SDHI0 on CN15 [SD I/F] */ 634 /* enable SDHI0 on CN15 [SD I/F] */