]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
pinctrl: meson: g12a: add DS bank value
authorGuillaume La Roque <glaroque@baylibre.com>
Tue, 14 May 2019 08:26:52 +0000 (10:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2019 07:24:46 +0000 (09:24 +0200)
add drive-strength bank regiter and bit value for G12A SoC

Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/meson/pinctrl-meson-g12a.c

index d494492e98e9cd933fe0d01874082fdb2503b7b4..3475cd7bd2af35f63a386bf1ad03792b6b823ba0 100644 (file)
@@ -1304,28 +1304,28 @@ static struct meson_pmx_func meson_g12a_aobus_functions[] = {
 };
 
 static struct meson_bank meson_g12a_periphs_banks[] = {
-       /* name  first  last  irq  pullen  pull  dir  out  in */
-       BANK("Z",    GPIOZ_0,    GPIOZ_15, 12, 27,
-            4,  0,  4,  0,  12,  0,  13, 0,  14, 0),
-       BANK("H",    GPIOH_0,    GPIOH_8, 28, 36,
-            3,  0,  3,  0,  9,  0,  10,  0,  11,  0),
-       BANK("BOOT", BOOT_0,     BOOT_15,  37, 52,
-            0,  0,  0,  0,  0, 0,  1, 0,  2, 0),
-       BANK("C",    GPIOC_0,    GPIOC_7,  53, 60,
-            1,  0,  1,  0,  3, 0,  4, 0,  5, 0),
-       BANK("A",    GPIOA_0,    GPIOA_15,  61, 76,
-            5,  0,  5,  0,  16,  0,  17,  0,  18,  0),
-       BANK("X",    GPIOX_0,    GPIOX_19,   77, 96,
-            2,  0,  2,  0,  6,  0,  7,  0,  8,  0),
+       /* name  first  last  irq  pullen  pull  dir  out  in  ds */
+       BANK_DS("Z",    GPIOZ_0,    GPIOZ_15, 12, 27,
+               4,  0,  4,  0,  12,  0,  13, 0,  14, 0, 5, 0),
+       BANK_DS("H",    GPIOH_0,    GPIOH_8, 28, 36,
+               3,  0,  3,  0,  9,  0,  10,  0,  11,  0, 4, 0),
+       BANK_DS("BOOT", BOOT_0,     BOOT_15,  37, 52,
+               0,  0,  0,  0,  0, 0,  1, 0,  2, 0, 0, 0),
+       BANK_DS("C",    GPIOC_0,    GPIOC_7,  53, 60,
+               1,  0,  1,  0,  3, 0,  4, 0,  5, 0, 1, 0),
+       BANK_DS("A",    GPIOA_0,    GPIOA_15,  61, 76,
+               5,  0,  5,  0,  16,  0,  17,  0,  18,  0, 6, 0),
+       BANK_DS("X",    GPIOX_0,    GPIOX_19,   77, 96,
+               2,  0,  2,  0,  6,  0,  7,  0,  8,  0, 2, 0),
 };
 
 static struct meson_bank meson_g12a_aobus_banks[] = {
-       /* name  first  last  irq  pullen  pull  dir  out  in  */
-       BANK("AO",   GPIOAO_0,  GPIOAO_11,  0, 11,
-            3,  0,  2, 0,  0,  0,  4, 0,  1,  0),
+       /* name  first  last  irq  pullen  pull  dir  out  in  ds */
+       BANK_DS("AO", GPIOAO_0, GPIOAO_11, 0, 11, 3, 0, 2, 0, 0, 0, 4, 0, 1, 0,
+               0, 0),
        /* GPIOE actually located in the AO bank */
-       BANK("E",   GPIOE_0,  GPIOE_2,   97, 99,
-            3,  16,  2, 16,  0,  16,  4, 16,  1,  16),
+       BANK_DS("E", GPIOE_0, GPIOE_2, 97, 99, 3, 16, 2, 16, 0, 16, 4, 16, 1,
+               16, 1, 0),
 };
 
 static struct meson_pmx_bank meson_g12a_periphs_pmx_banks[] = {