Skip to content

Commit c4f8457

Browse files
jimliu2Bartosz Golaszewski
authored andcommitted
gpio: nuvoton: Add Nuvoton NPCM sgpio driver
Add Nuvoton BMC NPCM7xx/NPCM8xx sgpio driver support. Nuvoton NPCM SGPIO module is combine serial to parallel IC (HC595) and parallel to serial IC (HC165), and use APB3 clock to control it. This interface has 4 pins (D_out , D_in, S_CLK, LDSH). BMC can use this driver to increase 64 GPI pins and 64 GPO pins to use. Signed-off-by: Jim Liu <JJLIU0@nuvoton.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent a0e4375 commit c4f8457

3 files changed

Lines changed: 627 additions & 0 deletions

File tree

drivers/gpio/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,13 @@ config GPIO_MXS
478478
select GPIO_GENERIC
479479
select GENERIC_IRQ_CHIP
480480

481+
config GPIO_NPCM_SGPIO
482+
bool "Nuvoton SGPIO support"
483+
depends on ARCH_NPCM || COMPILE_TEST
484+
select GPIOLIB_IRQCHIP
485+
help
486+
Say Y here to support Nuvoton NPCM7XX/NPCM8XX SGPIO functionality.
487+
481488
config GPIO_OCTEON
482489
tristate "Cavium OCTEON GPIO"
483490
depends on CAVIUM_OCTEON_SOC

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ obj-$(CONFIG_GPIO_MT7621) += gpio-mt7621.o
116116
obj-$(CONFIG_GPIO_MVEBU) += gpio-mvebu.o
117117
obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o
118118
obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o
119+
obj-$(CONFIG_GPIO_NPCM_SGPIO) += gpio-npcm-sgpio.o
119120
obj-$(CONFIG_GPIO_OCTEON) += gpio-octeon.o
120121
obj-$(CONFIG_GPIO_OMAP) += gpio-omap.o
121122
obj-$(CONFIG_GPIO_PALMAS) += gpio-palmas.o

0 commit comments

Comments
 (0)