Skip to content

Commit 25518e0

Browse files
wangbaolin719linusw
authored andcommitted
gpio: Add Spreadtrum EIC driver support
The Spreadtrum digital-chip EIC controller has 4 sub-modules: debounce EIC, latch EIC, async EIC and sync EIC, and each sub-module can has multiple banks and each bank contains 8 EICs. Each EIC can only be used as input mode, and has the capability to trigger interrupts when detecting input signals. Signed-off-by: Baolin Wang <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent be520cb commit 25518e0

File tree

3 files changed

+615
-0
lines changed

3 files changed

+615
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ config GPIO_DWAPB
170170
Say Y or M here to build support for the Synopsys DesignWare APB
171171
GPIO block.
172172

173+
config GPIO_EIC_SPRD
174+
tristate "Spreadtrum EIC support"
175+
depends on ARCH_SPRD || COMPILE_TEST
176+
depends on OF_GPIO
177+
select GPIOLIB_IRQCHIP
178+
help
179+
Say yes here to support Spreadtrum EIC device.
180+
173181
config GPIO_EM
174182
tristate "Emma Mobile GPIO"
175183
depends on (ARCH_EMEV2 || COMPILE_TEST) && OF_GPIO

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o
4545
obj-$(CONFIG_GPIO_DAVINCI) += gpio-davinci.o
4646
obj-$(CONFIG_GPIO_DLN2) += gpio-dln2.o
4747
obj-$(CONFIG_GPIO_DWAPB) += gpio-dwapb.o
48+
obj-$(CONFIG_GPIO_EIC_SPRD) += gpio-eic-sprd.o
4849
obj-$(CONFIG_GPIO_EM) += gpio-em.o
4950
obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o
5051
obj-$(CONFIG_GPIO_ETRAXFS) += gpio-etraxfs.o

0 commit comments

Comments
 (0)