aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r--drivers/gpio/Kconfig32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
new file mode 100644
index 000000000000..560687c4667e
--- /dev/null
+++ b/drivers/gpio/Kconfig
@@ -0,0 +1,32 @@
1#
2# GPIO infrastructure and expanders
3#
4
5config HAVE_GPIO_LIB
6 bool
7 help
8 Platforms select gpiolib if they use this infrastructure
9 for all their GPIOs, usually starting with ones integrated
10 into SOC processors.
11
12menu "GPIO Support"
13 depends on HAVE_GPIO_LIB
14
15config DEBUG_GPIO
16 bool "Debug GPIO calls"
17 depends on DEBUG_KERNEL
18 help
19 Say Y here to add some extra checks and diagnostics to GPIO calls.
20 The checks help ensure that GPIOs have been properly initialized
21 before they are used and that sleeping calls aren not made from
22 nonsleeping contexts. They can make bitbanged serial protocols
23 slower. The diagnostics help catch the type of setup errors
24 that are most common when setting up new platforms or boards.
25
26# put expanders in the right section, in alphabetical order
27
28comment "I2C GPIO expanders:"
29
30comment "SPI GPIO expanders:"
31
32endmenu