summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-07-25 22:10:29 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-08-14 15:03:38 +0200
commit01062ad31b531f2a3bcbfd9f6267e4e0c1103010 (patch)
tree31412f8d9cdf665bb2aac8a1d79e48fed29bfc78 /drivers/gpio
parent539b7a39f5ec4cfb573af1e65aeed0edf32be8bb (diff)
downloadlinux-stable-01062ad31b531f2a3bcbfd9f6267e4e0c1103010.tar.gz
linux-stable-01062ad31b531f2a3bcbfd9f6267e4e0c1103010.tar.bz2
linux-stable-01062ad31b531f2a3bcbfd9f6267e4e0c1103010.zip
gpio: it87: add support for IT8772F Super I/O.
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: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-it87.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-it87.c b/drivers/gpio/gpio-it87.c
index 45d29e488dbb..d43d0a2cc4c5 100644
--- a/drivers/gpio/gpio-it87.c
+++ b/drivers/gpio/gpio-it87.c
@@ -2,6 +2,7 @@
* GPIO interface for IT87xx Super I/O chips
*
* Author: Diego Elio Pettenò <flameeyes@flameeyes.eu>
+ * Copyright (c) 2017 Google, Inc.
*
* Based on it87_wdt.c by Oliver Schuster
* gpio-it8761e.c by Denis Turischev
@@ -39,6 +40,7 @@
#define IT8728_ID 0x8728
#define IT8732_ID 0x8732
#define IT8761_ID 0x8761
+#define IT8772_ID 0x8772
/* IO Ports */
#define REG 0x2e
@@ -314,6 +316,7 @@ static int __init it87_gpio_init(void)
break;
case IT8728_ID:
case IT8732_ID:
+ case IT8772_ID:
gpio_ba_reg = 0x62;
it87_gpio->io_size = 8;
it87_gpio->output_base = 0xc8;