gpio: add GPIO support for SMSC SCH311x
Subsystems (2)
PATCH v5 1/1 gpio: add GPIO support for SMSC SCH311x
This patch adds support for the GPIOs found on the SMSC "Super I/O" chips SCH3112, SCH3114 and SCH3116.
The chip detection and I/O functions are copied from sch311x_wdt.
---
Notes (v5):
- #include <linux/io.h> to avoid error "implicit declaration of function 'outb' [-Werror=implicit-function-declaration]"
--- drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-sch311x.c | 432 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 442 insertions(+) create mode 100644 drivers/gpio/gpio-sch311x.c
drivers/gpio/Kconfig +9 -0
@@ -237,6 +237,15 @@ config GPIO_SAMSUNG Legacy GPIO support. Use only for platforms without support for pinctrl. +config GPIO_SCH311X + tristate "SMSC SCH311x SuperI/O GPIO" + help + Driver to enable the GPIOs found on SMSC SMSC SCH3112, SCH3114 and + SCH3116 "Super I/O" chipsets. + + To compile this driver as a module, choose M here: the module will + be called gpio-sch311x. + config GPIO_SPEAR_SPICS bool "ST SPEAr13xx SPI Chip Select as GPIO support" depends on PLAT_SPEAR
drivers/gpio/Makefile +1 -0
@@ -67,6 +67,7 @@ obj-$(CONFIG_GPIO_RCAR) += gpio-rcar.o obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o obj-$(CONFIG_GPIO_SCH) += gpio-sch.o +obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o obj-$(CONFIG_GPIO_SODAVILLE) += gpio-sodaville.o obj-$(CONFIG_GPIO_SPEAR_SPICS) += gpio-spear-spics.o obj-$(CONFIG_GPIO_STA2X11) += gpio-sta2x11.o
drivers/gpio/gpio-sch311x.c new file +432 -0
432 lines not on this page · raw message
Signature · 1 line
1.8.3.2
Quoted 11 lines · Bruno Randolf
This patch adds support for the GPIOs found on the SMSC "Super I/O" chips SCH3112, SCH3114 and SCH3116.
The chip detection and I/O functions are copied from
sch311x_wdt.Signed-off-by Bruno Randolf <[email protected]>---
Notes (v5):
- #include <linux/io.h> to avoid error "implicit declaration of function 'outb' [-Werror=implicit-function-declaration]"
Please send incremental patches after I have applied the patches to my tree. Applying this would force me to revert or rebase the tree, both bad alternatives.
I will go and fix this myself now.
Yours,
Linus Walleij