Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83029
b: refs/heads/master
c: a9c5fff
h: refs/heads/master
i:
  83027: e34aeef
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed Feb 5, 2008
1 parent 9d3c0fe commit 4dbe566
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99c84dbdc73d158a1ab955a4a5f74c18074796a3
refs/heads/master: a9c5fff542544c8595bb12efeb278a96d99386fc
2 changes: 2 additions & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,8 @@ source "drivers/i2c/Kconfig"

source "drivers/spi/Kconfig"

source "drivers/gpio/Kconfig"

source "drivers/w1/Kconfig"

source "drivers/power/Kconfig"
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ source "drivers/i2c/Kconfig"

source "drivers/spi/Kconfig"

source "drivers/gpio/Kconfig"

source "drivers/w1/Kconfig"

source "drivers/power/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
32 changes: 32 additions & 0 deletions trunk/drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions trunk/drivers/gpio/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# gpio support: dedicated expander chips, etc

ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG

0 comments on commit 4dbe566

Please sign in to comment.