]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: S3C24XX: Fix configuration of gpio port sizes on S3C24XX.
authorJosé Miguel Gonçalves <jose.goncalves@inov.pt>
Wed, 11 Sep 2013 08:46:13 +0000 (09:46 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 2 Jan 2014 12:52:03 +0000 (13:52 +0100)
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>
drivers/gpio/gpio-samsung.c
include/linux/platform_data/gpio-samsung-s3c24xx.h

index be7b0bd4eed467b00cf73b2f4584f28967f84679..7138bb270c2609f264222709d5087843f9c2d3ab 100644 (file)
@@ -1059,7 +1059,7 @@ struct samsung_gpio_chip s3c24xx_gpios[] = {
                        .base                   = S3C2410_GPA(0),
                        .owner                  = THIS_MODULE,
                        .label                  = "GPIOA",
-                       .ngpio                  = 24,
+                       .ngpio                  = 27,
                        .direction_input        = s3c24xx_gpiolib_banka_input,
                        .direction_output       = s3c24xx_gpiolib_banka_output,
                },
@@ -1068,7 +1068,7 @@ struct samsung_gpio_chip s3c24xx_gpios[] = {
                        .base   = S3C2410_GPB(0),
                        .owner  = THIS_MODULE,
                        .label  = "GPIOB",
-                       .ngpio  = 16,
+                       .ngpio  = 11,
                },
        }, {
                .chip   = {
@@ -1113,7 +1113,7 @@ struct samsung_gpio_chip s3c24xx_gpios[] = {
                        .base   = S3C2410_GPH(0),
                        .owner  = THIS_MODULE,
                        .label  = "GPIOH",
-                       .ngpio  = 11,
+                       .ngpio  = 15,
                },
        },
                /* GPIOS for the S3C2443 and later devices. */
index 5ce750c84a148c99f2d9aef92e073bdc6f78207b..79b3a0e44955a2148d6ad6abd5073b4093316d6d 100644 (file)
  *   2410 2412 2440 2443 2416
  *             2442
  *   ---- ---- ---- ---- ----
- * A  23   22   25   16   25
- * B  11   11   11   11   9
- * C  16   15   16   16   16
+ * A  23   22   25   16   27
+ * B  11   11   11   11   11
+ * C  16   16   16   16   16
  * D  16   16   16   16   16
  * E  16   16   16   16   16
  * F  8    8    8    8    8
  * G  16   16   16   16   8
- * H  11   11      15   15
+ * H  11   11   11   15   15
  * J  --   --   13   16   --
  * K  --   --   --   --   16
- * L  --   --   --   15   7
+ * L  --   --   --   15   14
  * M  --   --   --   2    2
  */