gpio-it87: add support for IT8786E Super I/O
authorVincent Prince <vincent.prince.fr@gmail.com>
Mon, 30 Jul 2018 09:30:25 +0000 (11:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Jul 2018 15:39:15 +0000 (17:39 +0200)
From the datasheet, the GPIO interface is identical to IT8728 (same
description), so just add it to the same case as the other chip.

Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-it87.c

index 7cad14d3f1270593c811af78240dd0a6db97c611..7b017f43dc6bb25b68c80422d4999aa58cdf9b2f 100644 (file)
@@ -41,6 +41,7 @@
 #define IT8732_ID      0x8732
 #define IT8761_ID      0x8761
 #define IT8772_ID      0x8772
+#define IT8786_ID      0x8786
 
 /* IO Ports */
 #define REG            0x2e
@@ -317,6 +318,7 @@ static int __init it87_gpio_init(void)
        case IT8728_ID:
        case IT8732_ID:
        case IT8772_ID:
+       case IT8786_ID:
                gpio_ba_reg = 0x62;
                it87_gpio->io_size = 8;
                it87_gpio->output_base = 0xc8;