aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-samsung.c
diff options
context:
space:
mode:
authorSangsu Park <sangsu4u.park@samsung.com>2012-04-24 17:44:58 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-05-15 18:03:01 -0400
commitf10590c9836c9fc595d1dafff965b280029d4f16 (patch)
treed227e00bf2c8428040d6d21e43dfc6bb81650eee /drivers/gpio/gpio-samsung.c
parenteeed66e3a50f4d23d542498b17861ffadcdaf8ec (diff)
ARM: EXYNOS: add GPC4 bank instance
Add GPC4 bank instance which is included in rev1 of EXYNOS5. Signed-off-by: Sangsu Park <sangsu4u.park@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/gpio/gpio-samsung.c')
-rw-r--r--drivers/gpio/gpio-samsung.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index e991d9171961..f88bb9f919a8 100644
--- a/drivers/gpio/gpio-samsung.c
+++ b/drivers/gpio/gpio-samsung.c
@@ -2454,6 +2454,12 @@ static struct samsung_gpio_chip exynos5_gpios_1[] = {
2454 }, 2454 },
2455 }, { 2455 }, {
2456 .chip = { 2456 .chip = {
2457 .base = EXYNOS5_GPC4(0),
2458 .ngpio = EXYNOS5_GPIO_C4_NR,
2459 .label = "GPC4",
2460 },
2461 }, {
2462 .chip = {
2457 .base = EXYNOS5_GPD0(0), 2463 .base = EXYNOS5_GPD0(0),
2458 .ngpio = EXYNOS5_GPIO_D0_NR, 2464 .ngpio = EXYNOS5_GPIO_D0_NR,
2459 .label = "GPD0", 2465 .label = "GPD0",
@@ -2878,8 +2884,11 @@ static __init int samsung_gpiolib_init(void)
2878 goto err_ioremap1; 2884 goto err_ioremap1;
2879 } 2885 }
2880 2886
2887 /* need to set base address for gpc4 */
2888 exynos5_gpios_1[11].base = gpio_base1 + 0x2E0;
2889
2881 /* need to set base address for gpx */ 2890 /* need to set base address for gpx */
2882 chip = &exynos5_gpios_1[20]; 2891 chip = &exynos5_gpios_1[21];
2883 gpx_base = gpio_base1 + 0xC00; 2892 gpx_base = gpio_base1 + 0xC00;
2884 for (i = 0; i < 4; i++, chip++, gpx_base += 0x20) 2893 for (i = 0; i < 4; i++, chip++, gpx_base += 0x20)
2885 chip->base = gpx_base; 2894 chip->base = gpx_base;