Skip to contentSkip to conversation

gpio: add a driver for GPIO pins found on AMD-8111 south bridge chips

PATCH In review Dmitry Eremin-Solenikov 2 participants 3 messages Jun 1, 2012 – Jul 5, 2012 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 gpio: add a driver for GPIO pins found on AMD-8111 south bridge chips

Add a driver to use GPIO pins available on several AMD south bridges (currently only AMD 8111 is supported).

---

Changes in V3:
* renamed module init/exit functions
* Added comments on ALTFN an device init code.

 drivers/gpio/Kconfig        |   12 +++
 drivers/gpio/Makefile       |    1 +
 drivers/gpio/gpio-amd8111.c |  246 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 259 insertions(+)
 create mode 100644 drivers/gpio/gpio-amd8111.c
drivers/gpio/Kconfig +12 -0
index e03653d..5db5862 100644
@@ -396,6 +396,18 @@ config GPIO_BT8XX
 
 	  If unsure, say N.
 
+config GPIO_AMD8111
+	tristate "AMD 8111 GPIO driver"
+	depends on PCI
+	help
+	  The AMD 8111 south bridge contains 32 GPIO pins which can be used.
+
+	  Note, that usually system firmware/ACPI handles GPIO pins on their
+	  own and users might easily break their systems with uncarefull usage
+	  of this driver!
+
+	  If unsure, say N
+
 config GPIO_LANGWELL
 	bool "Intel Langwell/Penwell GPIO support"
 	depends on PCI && X86
drivers/gpio/Makefile +1 -0
index 007f54b..1ae90a9 100644
@@ -11,6 +11,7 @@ obj-$(CONFIG_GPIO_74X164)	+= gpio-74x164.o
 obj-$(CONFIG_GPIO_AB8500)	+= gpio-ab8500.o
 obj-$(CONFIG_GPIO_ADP5520)	+= gpio-adp5520.o
 obj-$(CONFIG_GPIO_ADP5588)	+= gpio-adp5588.o
+obj-$(CONFIG_GPIO_AMD8111)	+= gpio-amd8111.o
 obj-$(CONFIG_GPIO_BT8XX)	+= gpio-bt8xx.o
 obj-$(CONFIG_GPIO_CS5535)	+= gpio-cs5535.o
 obj-$(CONFIG_GPIO_DA9052)	+= gpio-da9052.o
drivers/gpio/gpio-amd8111.c new file +246 -0

246 lines not on this page · raw message

Signature · 1 line
1.7.10