Skip to content

Commit

Permalink
gpio: add GPIO support for IT87xx, replacing gpio-it8761e
Browse files Browse the repository at this point in the history
This patch adds support for the GPIOs found on the ITE super-I/O chips
IT87xx.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Diego Elio Pettenò authored and Linus Walleij committed Oct 2, 2015
1 parent 48b5953 commit b866492
Show file tree
Hide file tree
Showing 4 changed files with 422 additions and 235 deletions.
14 changes: 10 additions & 4 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,17 @@ config GPIO_IOP

If unsure, say N.

config GPIO_IT8761E
tristate "IT8761E GPIO support"
depends on X86 # unconditional access to IO space.
config GPIO_IT87
tristate "IT87xx GPIO support"
depends on X86 # unconditional access to IO space.
help
Say yes here to support GPIO functionality of IT8761E super I/O chip.
Say yes here to support GPIO functionality of IT87xx Super I/O chips.

This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
supports the IT8761E Super I/O chip as well.

To compile this driver as a module, choose M here: the module will
be called gpio_it87

config GPIO_LOONGSON
bool "Loongson-2/3 GPIO support"
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ obj-$(CONFIG_GPIO_GE_FPGA) += gpio-ge.o
obj-$(CONFIG_GPIO_GRGPIO) += gpio-grgpio.o
obj-$(CONFIG_GPIO_ICH) += gpio-ich.o
obj-$(CONFIG_GPIO_IOP) += gpio-iop.o
obj-$(CONFIG_GPIO_IT8761E) += gpio-it8761e.o
obj-$(CONFIG_GPIO_IT87) += gpio-it87.o
obj-$(CONFIG_GPIO_JANZ_TTL) += gpio-janz-ttl.o
obj-$(CONFIG_GPIO_KEMPLD) += gpio-kempld.o
obj-$(CONFIG_ARCH_KS8695) += gpio-ks8695.o
Expand Down
Loading

0 comments on commit b866492

Please sign in to comment.