Skip to content

Commit eee636b

Browse files
Tzuyi ChangBartosz Golaszewski
authored andcommitted
gpio: rtd: Add support for Realtek DHC(Digital Home Center) RTD SoCs
This driver enables configuration of GPIO direction, GPIO values, GPIO debounce settings and handles GPIO interrupts. Signed-off-by: Tzuyi Chang <tychang@realtek.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent ed06204 commit eee636b

3 files changed

Lines changed: 618 additions & 0 deletions

File tree

drivers/gpio/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,19 @@ config GPIO_ROCKCHIP
553553
help
554554
Say yes here to support GPIO on Rockchip SoCs.
555555

556+
config GPIO_RTD
557+
tristate "Realtek DHC GPIO support"
558+
depends on ARCH_REALTEK
559+
default y
560+
select GPIOLIB_IRQCHIP
561+
help
562+
This option enables support for GPIOs found on Realtek DHC(Digital
563+
Home Center) SoCs family, including RTD1295, RTD1315E, RTD1319,
564+
RTD1319D, RTD1395, RTD1619 and RTD1619B.
565+
566+
Say yes here to support GPIO functionality and GPIO interrupt on
567+
Realtek DHC SoCs.
568+
556569
config GPIO_SAMA5D2_PIOBU
557570
tristate "SAMA5D2 PIOBU GPIO support"
558571
depends on MFD_SYSCON

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o
137137
obj-$(CONFIG_GPIO_REALTEK_OTTO) += gpio-realtek-otto.o
138138
obj-$(CONFIG_GPIO_REG) += gpio-reg.o
139139
obj-$(CONFIG_GPIO_ROCKCHIP) += gpio-rockchip.o
140+
obj-$(CONFIG_GPIO_RTD) += gpio-rtd.o
140141
obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o
141142
obj-$(CONFIG_GPIO_SAMA5D2_PIOBU) += gpio-sama5d2-piobu.o
142143
obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o

0 commit comments

Comments
 (0)