diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/Kconfig | 2 | ||||
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpio/Kconfig | 32 | ||||
-rw-r--r-- | drivers/gpio/Makefile | 4 |
4 files changed, 39 insertions, 0 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig index 3f8a231fe754..d74d9fbb9fd2 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig | |||
@@ -52,6 +52,8 @@ source "drivers/i2c/Kconfig" | |||
52 | 52 | ||
53 | source "drivers/spi/Kconfig" | 53 | source "drivers/spi/Kconfig" |
54 | 54 | ||
55 | source "drivers/gpio/Kconfig" | ||
56 | |||
55 | source "drivers/w1/Kconfig" | 57 | source "drivers/w1/Kconfig" |
56 | 58 | ||
57 | source "drivers/power/Kconfig" | 59 | source "drivers/power/Kconfig" |
diff --git a/drivers/Makefile b/drivers/Makefile index 0ee9a8a4095e..f1c11db52a57 100644 --- a/drivers/Makefile +++ b/drivers/Makefile | |||
@@ -5,6 +5,7 @@ | |||
5 | # Rewritten to use lists instead of if-statements. | 5 | # Rewritten to use lists instead of if-statements. |
6 | # | 6 | # |
7 | 7 | ||
8 | obj-$(CONFIG_HAVE_GPIO_LIB) += gpio/ | ||
8 | obj-$(CONFIG_PCI) += pci/ | 9 | obj-$(CONFIG_PCI) += pci/ |
9 | obj-$(CONFIG_PARISC) += parisc/ | 10 | obj-$(CONFIG_PARISC) += parisc/ |
10 | obj-$(CONFIG_RAPIDIO) += rapidio/ | 11 | obj-$(CONFIG_RAPIDIO) += rapidio/ |
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 | |||
5 | config 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 | |||
12 | menu "GPIO Support" | ||
13 | depends on HAVE_GPIO_LIB | ||
14 | |||
15 | config 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 | |||
28 | comment "I2C GPIO expanders:" | ||
29 | |||
30 | comment "SPI GPIO expanders:" | ||
31 | |||
32 | endmenu | ||
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile new file mode 100644 index 000000000000..369e4fc432e3 --- /dev/null +++ b/drivers/gpio/Makefile | |||
@@ -0,0 +1,4 @@ | |||
1 | # gpio support: dedicated expander chips, etc | ||
2 | |||
3 | ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG | ||
4 | |||