diff mbox series

gpio-it87: add support for IT8786E Super I/O

Message ID 1532943025-28805-1-git-send-email-vincent.prince.fr@gmail.com
State New
Headers show
Series gpio-it87: add support for IT8786E Super I/O | expand

Commit Message

Vincent Prince July 30, 2018, 9:30 a.m. UTC
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>
---
 drivers/gpio/gpio-it87.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Linus Walleij July 30, 2018, 3:39 p.m. UTC | #1
On Mon, Jul 30, 2018 at 11:31 AM Vincent Prince
<vincent.prince.fr@gmail.com> wrote:

> 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>

Patch applied, thanks!

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-it87.c b/drivers/gpio/gpio-it87.c
index 7cad14d..7b017f4 100644
--- a/drivers/gpio/gpio-it87.c
+++ b/drivers/gpio/gpio-it87.c
@@ -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;