Skip to content

Commit 5a2a300

Browse files
daviddaneylinusw
authored andcommitted
gpio: Add gpio driver support for ThunderX and OCTEON-TX
Cavium ThunderX and OCTEON-TX are arm64 based SoCs. Add driver for the on-chip GPIO pins. Signed-off-by: David Daney <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent b4c495f commit 5a2a300

File tree

3 files changed

+649
-0
lines changed

3 files changed

+649
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,15 @@ config GPIO_TS4800
450450
help
451451
This driver support TS-4800 FPGA GPIO controllers.
452452

453+
config GPIO_THUNDERX
454+
tristate "Cavium ThunderX/OCTEON-TX GPIO"
455+
depends on ARCH_THUNDER || (64BIT && COMPILE_TEST)
456+
depends on PCI_MSI && IRQ_DOMAIN_HIERARCHY
457+
select IRQ_FASTEOI_HIERARCHY_HANDLERS
458+
help
459+
Say yes here to support the on-chip GPIO lines on the ThunderX
460+
and OCTEON-TX families of SoCs.
461+
453462
config GPIO_TZ1090
454463
bool "Toumaz Xenif TZ1090 GPIO support"
455464
depends on SOC_TZ1090

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ obj-$(CONFIG_GPIO_SYSCON) += gpio-syscon.o
113113
obj-$(CONFIG_GPIO_TB10X) += gpio-tb10x.o
114114
obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o
115115
obj-$(CONFIG_GPIO_TEGRA) += gpio-tegra.o
116+
obj-$(CONFIG_GPIO_THUNDERX) += gpio-thunderx.o
116117
obj-$(CONFIG_GPIO_TIMBERDALE) += gpio-timberdale.o
117118
obj-$(CONFIG_GPIO_PALMAS) += gpio-palmas.o
118119
obj-$(CONFIG_GPIO_TPIC2810) += gpio-tpic2810.o

0 commit comments

Comments
 (0)