Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 361b791

Browse files
shenkilinusw
authored andcommitted
gpio: Add Aspeed driver
The Aspeed SoCs contain GPIOs banked by letter, where each bank contains 8 pins. The GPIO banks are then grouped in sets of four in the register layout. The implementation exposes multiple banks through the one driver and requests and releases pins via the pinctrl subsystem. The hardware supports generation of interrupts from all GPIO-capable pins. A number of hardware features are not yet supported: Configuration of interrupt direction (ARM or LPC), debouncing, and WDT reset tolerance for output ports. Signed-off-by: Joel Stanley <[email protected]> Signed-off-by: Alistair Popple <[email protected]> Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: Andrew Jeffery <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 19de851 commit 361b791

File tree

3 files changed

+465
-0
lines changed

3 files changed

+465
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ config GPIO_AMDPT
106106
driver for GPIO functionality on Promontory IOHub
107107
Require ACPI ASL code to enumerate as a platform device.
108108

109+
config GPIO_ASPEED
110+
tristate "Aspeed GPIO support"
111+
depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
112+
select GPIOLIB_IRQCHIP
113+
help
114+
Say Y here to support Aspeed AST2400 and AST2500 GPIO controllers.
115+
109116
config GPIO_ATH79
110117
tristate "Atheros AR71XX/AR724X/AR913X GPIO support"
111118
default y if ATH79

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ obj-$(CONFIG_GPIO_AMD8111) += gpio-amd8111.o
2828
obj-$(CONFIG_GPIO_AMDPT) += gpio-amdpt.o
2929
obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o
3030
obj-$(CONFIG_GPIO_ATH79) += gpio-ath79.o
31+
obj-$(CONFIG_GPIO_ASPEED) += gpio-aspeed.o
3132
obj-$(CONFIG_GPIO_AXP209) += gpio-axp209.o
3233
obj-$(CONFIG_GPIO_BCM_KONA) += gpio-bcm-kona.o
3334
obj-$(CONFIG_GPIO_BRCMSTB) += gpio-brcmstb.o

0 commit comments

Comments
 (0)