Skip to content

Commit 936ee26

Browse files
jayxurockchiplinusw
authored andcommitted
gpio/rockchip: add driver for rockchip gpio
This patch add support for rockchip gpio controller, which is supported in pinctrl driver in the past. With this patch, the pinctrl-rockchip driver will drop gpio related codes and populate platform driver to gpio-rockchip. Signed-off-by: Jianqun Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 75d1415 commit 936ee26

File tree

3 files changed

+635
-0
lines changed

3 files changed

+635
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,14 @@ config GPIO_REG
520520
A 32-bit single register GPIO fixed in/out implementation. This
521521
can be used to represent any register as a set of GPIO signals.
522522

523+
config GPIO_ROCKCHIP
524+
tristate "Rockchip GPIO support"
525+
depends on ARCH_ROCKCHIP || COMPILE_TEST
526+
select GPIOLIB_IRQCHIP
527+
default ARCH_ROCKCHIP
528+
help
529+
Say yes here to support GPIO on Rockchip SoCs.
530+
523531
config GPIO_SAMA5D2_PIOBU
524532
tristate "SAMA5D2 PIOBU GPIO support"
525533
depends on MFD_SYSCON

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ obj-$(CONFIG_GPIO_RDA) += gpio-rda.o
128128
obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o
129129
obj-$(CONFIG_GPIO_REALTEK_OTTO) += gpio-realtek-otto.o
130130
obj-$(CONFIG_GPIO_REG) += gpio-reg.o
131+
obj-$(CONFIG_GPIO_ROCKCHIP) += gpio-rockchip.o
131132
obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o
132133
obj-$(CONFIG_GPIO_SAMA5D2_PIOBU) += gpio-sama5d2-piobu.o
133134
obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o

0 commit comments

Comments
 (0)