Skip to content

Commit

Permalink
gpio: it87: add support for IT8772F Super I/O.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Diego Elio Pettenò authored and Linus Walleij committed Aug 14, 2017
1 parent 539b7a3 commit 01062ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpio/gpio-it87.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 01062ad

Please sign in to comment.