diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-02-12 10:50:02 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:33:39 -0400 |
commit | b58e5fac96e4f24fc9d5bce8692506ada3e244ca (patch) | |
tree | c009ed8714e01d015796e4377e7efdbbd6d83597 /arch/arm/mach-shmobile/board-kzm9g.c | |
parent | 63d573835f835aab4c44d0e0342cf5976fb14b35 (diff) |
ARM: shmobile: sh73a0: Support sparse GPIO numbers
The SH73A0 SoC has sparse GPIO numbers. Declare the pin numbers ranges
in the PFC SoC data and use the pin numbers in the GPIO API.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-kzm9g.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9g.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index 7f3a6b7e7b7c..65a5e0b80f06 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c | |||
@@ -433,7 +433,7 @@ static struct sh_mobile_sdhi_info sdhi2_info = { | |||
433 | TMIO_MMC_WRPROTECT_DISABLE, | 433 | TMIO_MMC_WRPROTECT_DISABLE, |
434 | .tmio_caps = MMC_CAP_SD_HIGHSPEED, | 434 | .tmio_caps = MMC_CAP_SD_HIGHSPEED, |
435 | .tmio_ocr_mask = MMC_VDD_27_28 | MMC_VDD_28_29, | 435 | .tmio_ocr_mask = MMC_VDD_27_28 | MMC_VDD_28_29, |
436 | .cd_gpio = GPIO_PORT13, | 436 | .cd_gpio = 13, |
437 | }; | 437 | }; |
438 | 438 | ||
439 | static struct resource sdhi2_resources[] = { | 439 | static struct resource sdhi2_resources[] = { |
@@ -672,7 +672,7 @@ static void __init kzm_init(void) | |||
672 | gpio_request(GPIO_FN_CS4_, NULL); /* CS4 */ | 672 | gpio_request(GPIO_FN_CS4_, NULL); /* CS4 */ |
673 | 673 | ||
674 | /* SMSC */ | 674 | /* SMSC */ |
675 | gpio_request_one(GPIO_PORT224, GPIOF_IN, NULL); /* IRQ3 */ | 675 | gpio_request_one(224, GPIOF_IN, NULL); /* IRQ3 */ |
676 | 676 | ||
677 | /* LCDC */ | 677 | /* LCDC */ |
678 | gpio_request(GPIO_FN_LCDD23, NULL); | 678 | gpio_request(GPIO_FN_LCDD23, NULL); |
@@ -702,11 +702,11 @@ static void __init kzm_init(void) | |||
702 | gpio_request(GPIO_FN_LCDDISP, NULL); | 702 | gpio_request(GPIO_FN_LCDDISP, NULL); |
703 | gpio_request(GPIO_FN_LCDDCK, NULL); | 703 | gpio_request(GPIO_FN_LCDDCK, NULL); |
704 | 704 | ||
705 | gpio_request_one(GPIO_PORT222, GPIOF_OUT_INIT_HIGH, NULL); /* LCDCDON */ | 705 | gpio_request_one(222, GPIOF_OUT_INIT_HIGH, NULL); /* LCDCDON */ |
706 | gpio_request_one(GPIO_PORT226, GPIOF_OUT_INIT_HIGH, NULL); /* SC */ | 706 | gpio_request_one(226, GPIOF_OUT_INIT_HIGH, NULL); /* SC */ |
707 | 707 | ||
708 | /* Touchscreen */ | 708 | /* Touchscreen */ |
709 | gpio_request_one(GPIO_PORT223, GPIOF_IN, NULL); /* IRQ8 */ | 709 | gpio_request_one(223, GPIOF_IN, NULL); /* IRQ8 */ |
710 | 710 | ||
711 | /* enable MMCIF */ | 711 | /* enable MMCIF */ |
712 | gpio_request(GPIO_FN_MMCCLK0, NULL); | 712 | gpio_request(GPIO_FN_MMCCLK0, NULL); |
@@ -730,7 +730,7 @@ static void __init kzm_init(void) | |||
730 | gpio_request(GPIO_FN_SDHID0_1, NULL); | 730 | gpio_request(GPIO_FN_SDHID0_1, NULL); |
731 | gpio_request(GPIO_FN_SDHID0_0, NULL); | 731 | gpio_request(GPIO_FN_SDHID0_0, NULL); |
732 | gpio_request(GPIO_FN_SDHI0_VCCQ_MC0_ON, NULL); | 732 | gpio_request(GPIO_FN_SDHI0_VCCQ_MC0_ON, NULL); |
733 | gpio_request_one(GPIO_PORT15, GPIOF_OUT_INIT_HIGH, NULL); /* power */ | 733 | gpio_request_one(15, GPIOF_OUT_INIT_HIGH, NULL); /* power */ |
734 | 734 | ||
735 | /* enable Micro SD */ | 735 | /* enable Micro SD */ |
736 | gpio_request(GPIO_FN_SDHID2_0, NULL); | 736 | gpio_request(GPIO_FN_SDHID2_0, NULL); |
@@ -739,7 +739,7 @@ static void __init kzm_init(void) | |||
739 | gpio_request(GPIO_FN_SDHID2_3, NULL); | 739 | gpio_request(GPIO_FN_SDHID2_3, NULL); |
740 | gpio_request(GPIO_FN_SDHICMD2, NULL); | 740 | gpio_request(GPIO_FN_SDHICMD2, NULL); |
741 | gpio_request(GPIO_FN_SDHICLK2, NULL); | 741 | gpio_request(GPIO_FN_SDHICLK2, NULL); |
742 | gpio_request_one(GPIO_PORT14, GPIOF_OUT_INIT_HIGH, NULL); /* power */ | 742 | gpio_request_one(14, GPIOF_OUT_INIT_HIGH, NULL); /* power */ |
743 | 743 | ||
744 | /* I2C 3 */ | 744 | /* I2C 3 */ |
745 | gpio_request(GPIO_FN_PORT27_I2C_SCL3, NULL); | 745 | gpio_request(GPIO_FN_PORT27_I2C_SCL3, NULL); |