arm: exynos: fix gpio map of exynos3
authorChanho Park <chanho61.park@samsung.com>
Wed, 2 Dec 2015 04:33:27 +0000 (13:33 +0900)
committerChanho Park <chanho61.park@samsung.com>
Wed, 2 Dec 2015 04:33:27 +0000 (13:33 +0900)
The gpio part2 map of exynos3 was incorrect. The gpio part2 is
started from 0x11000000 and the register map of gpk0 is
0x11000040. Thus, two gpio pads should be before gpk0.
The gpx0 is started from 0x11000c00 so we should fix the count
of res5 pad from 0x4a to 0x48.

Change-Id: I8ceae5009227daf0e4cff4d3d73aeb2318c640de
Reported-by: Jaeyoung Lee <jaeyoung2.lee@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
arch/arm/include/asm/arch-exynos/gpio.h

index 868b9270a1c53f0b3cec468e79903d2a02df95f5..a0096ddc2d87ea5b3b1989deedd1adef8a59ab05 100644 (file)
@@ -143,7 +143,9 @@ struct exynos3_gpio_part1 {
        struct s5p_gpio_bank d0;
        struct s5p_gpio_bank d1;
 };
+
 struct exynos3_gpio_part2 {
+       struct s5p_gpio_bank res0[2];
        struct s5p_gpio_bank k0;
        struct s5p_gpio_bank k1;
        struct s5p_gpio_bank k2;
@@ -160,7 +162,7 @@ struct exynos3_gpio_part2 {
        struct s5p_gpio_bank M2;
        struct s5p_gpio_bank M3;
        struct s5p_gpio_bank M4;
-       struct s5p_gpio_bank res5[0x4a];
+       struct s5p_gpio_bank res5[0x48];
        struct s5p_gpio_bank x0;
        struct s5p_gpio_bank x1;
        struct s5p_gpio_bank x2;