From 4dbe566948fc506a6e308838ed3b1effc0c2ddea Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 4 Feb 2008 22:28:17 -0800 Subject: [PATCH] --- yaml --- r: 83029 b: refs/heads/master c: a9c5fff542544c8595bb12efeb278a96d99386fc h: refs/heads/master i: 83027: e34aeef049951add643559366dc74d616da7200a v: v3 --- [refs] | 2 +- trunk/arch/arm/Kconfig | 2 ++ trunk/drivers/Kconfig | 2 ++ trunk/drivers/Makefile | 1 + trunk/drivers/gpio/Kconfig | 32 ++++++++++++++++++++++++++++++++ trunk/drivers/gpio/Makefile | 4 ++++ 6 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 trunk/drivers/gpio/Kconfig create mode 100644 trunk/drivers/gpio/Makefile diff --git a/[refs] b/[refs] index 4732e8285232..ac4550cf9953 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 99c84dbdc73d158a1ab955a4a5f74c18074796a3 +refs/heads/master: a9c5fff542544c8595bb12efeb278a96d99386fc diff --git a/trunk/arch/arm/Kconfig b/trunk/arch/arm/Kconfig index 64d19eff3faa..a322f58cdc90 100644 --- a/trunk/arch/arm/Kconfig +++ b/trunk/arch/arm/Kconfig @@ -1122,6 +1122,8 @@ source "drivers/i2c/Kconfig" source "drivers/spi/Kconfig" +source "drivers/gpio/Kconfig" + source "drivers/w1/Kconfig" source "drivers/power/Kconfig" diff --git a/trunk/drivers/Kconfig b/trunk/drivers/Kconfig index 3f8a231fe754..d74d9fbb9fd2 100644 --- a/trunk/drivers/Kconfig +++ b/trunk/drivers/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" diff --git a/trunk/drivers/Makefile b/trunk/drivers/Makefile index 0ee9a8a4095e..f1c11db52a57 100644 --- a/trunk/drivers/Makefile +++ b/trunk/drivers/Makefile @@ -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/ diff --git a/trunk/drivers/gpio/Kconfig b/trunk/drivers/gpio/Kconfig new file mode 100644 index 000000000000..560687c4667e --- /dev/null +++ b/trunk/drivers/gpio/Kconfig @@ -0,0 +1,32 @@ +# +# GPIO infrastructure and expanders +# + +config HAVE_GPIO_LIB + bool + help + 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 + +config DEBUG_GPIO + bool "Debug GPIO calls" + depends on DEBUG_KERNEL + help + 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:" + +endmenu diff --git a/trunk/drivers/gpio/Makefile b/trunk/drivers/gpio/Makefile new file mode 100644 index 000000000000..369e4fc432e3 --- /dev/null +++ b/trunk/drivers/gpio/Makefile @@ -0,0 +1,4 @@ +# gpio support: dedicated expander chips, etc + +ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG +