Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: S3C24XX: Fix configuration of gpio port sizes on S3C24XX.

Some GPIO line limits are incorrectly set which, for instance,
does not allow nRTS1 (GPH11) configuration on a S3C2416 chip.

Signed-off-by: José Miguel Gonçalves <jose.goncalves@inov.pt>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

José Miguel Gonçalves and committed by
Linus Walleij
035b2f7c 523639e6

+8 -8
+3 -3
drivers/gpio/gpio-samsung.c
··· 1059 1059 .base = S3C2410_GPA(0), 1060 1060 .owner = THIS_MODULE, 1061 1061 .label = "GPIOA", 1062 - .ngpio = 24, 1062 + .ngpio = 27, 1063 1063 .direction_input = s3c24xx_gpiolib_banka_input, 1064 1064 .direction_output = s3c24xx_gpiolib_banka_output, 1065 1065 }, ··· 1068 1068 .base = S3C2410_GPB(0), 1069 1069 .owner = THIS_MODULE, 1070 1070 .label = "GPIOB", 1071 - .ngpio = 16, 1071 + .ngpio = 11, 1072 1072 }, 1073 1073 }, { 1074 1074 .chip = { ··· 1113 1113 .base = S3C2410_GPH(0), 1114 1114 .owner = THIS_MODULE, 1115 1115 .label = "GPIOH", 1116 - .ngpio = 11, 1116 + .ngpio = 15, 1117 1117 }, 1118 1118 }, 1119 1119 /* GPIOS for the S3C2443 and later devices. */
+5 -5
include/linux/platform_data/gpio-samsung-s3c24xx.h
··· 23 23 * 2410 2412 2440 2443 2416 24 24 * 2442 25 25 * ---- ---- ---- ---- ---- 26 - * A 23 22 25 16 25 27 - * B 11 11 11 11 9 28 - * C 16 15 16 16 16 26 + * A 23 22 25 16 27 27 + * B 11 11 11 11 11 28 + * C 16 16 16 16 16 29 29 * D 16 16 16 16 16 30 30 * E 16 16 16 16 16 31 31 * F 8 8 8 8 8 32 32 * G 16 16 16 16 8 33 - * H 11 11 9 15 15 33 + * H 11 11 11 15 15 34 34 * J -- -- 13 16 -- 35 35 * K -- -- -- -- 16 36 - * L -- -- -- 15 7 36 + * L -- -- -- 15 14 37 37 * M -- -- -- 2 2 38 38 */ 39 39