Commit a9c5fff5 authored by David Brownell's avatar David Brownell Committed by Linus Torvalds
Browse files

gpiolib: add drivers/gpio directory

Add an empty drivers/gpio directory for gpiolib infrastructure and GPIO
expanders.  It will be populated by later patches.

This won't be the only place to hold such gpio_chip code.  Many external chips
add a few GPIOs as secondary functionality (such as MFD drivers) and platform
code frequently needs to closely integrate GPIO and IRQ support.

This is placed *early* in the build/link sequence since it's common for other
drivers to depend on GPIOs to do their work, so they must be initialized early
in the device_initcall() sequence.

Signed-off-by: default avatarDavid Brownell <>
Acked-by: default avatarJean Delvare <>
Cc: Eric Miao <>
Cc: Sam Ravnborg <>
Cc: Haavard Skinnemoen <>
Cc: Philipp Zabel <>
Cc: Russell King <>
Cc: Ben Gardner <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 99c84dbd
......@@ -1122,6 +1122,8 @@ source "drivers/i2c/Kconfig"
source "drivers/spi/Kconfig"
source "drivers/gpio/Kconfig"
source "drivers/w1/Kconfig"
source "drivers/power/Kconfig"
......@@ -52,6 +52,8 @@ source "drivers/i2c/Kconfig"
source "drivers/spi/Kconfig"
source "drivers/gpio/Kconfig"
source "drivers/w1/Kconfig"
source "drivers/power/Kconfig"
......@@ -5,6 +5,7 @@
# Rewritten to use lists instead of if-statements.
obj-$(CONFIG_HAVE_GPIO_LIB) += gpio/
obj-$(CONFIG_PCI) += pci/
obj-$(CONFIG_PARISC) += parisc/
obj-$(CONFIG_RAPIDIO) += rapidio/
# GPIO infrastructure and expanders
Platforms select gpiolib if they use this infrastructure
for all their GPIOs, usually starting with ones integrated
into SOC processors.
menu "GPIO Support"
depends on HAVE_GPIO_LIB
bool "Debug GPIO calls"
depends on DEBUG_KERNEL
Say Y here to add some extra checks and diagnostics to GPIO calls.
The checks help ensure that GPIOs have been properly initialized
before they are used and that sleeping calls aren not made from
nonsleeping contexts. They can make bitbanged serial protocols
slower. The diagnostics help catch the type of setup errors
that are most common when setting up new platforms or boards.
# put expanders in the right section, in alphabetical order
comment "I2C GPIO expanders:"
comment "SPI GPIO expanders:"
# gpio support: dedicated expander chips, etc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment