gpio: add a driver for GPIO pins found on AMD-8111 south bridge chips
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).
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>
---
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
@@ -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
@@ -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
Quoted 4 lines · Dmitry Eremin-Solenikov
Add a driver to use GPIO pins available on several AMD south bridges (currently only AMD 8111 is supported).
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>
This v3 version looks good to me.
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Quoted 4 lines · Dmitry Eremin-Solenikov
Add a driver to use GPIO pins available on several AMD south bridges (currently only AMD 8111 is supported).
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>
Patch applied.
Yours,
Linus Walleij