diff options
author | Marc Zyngier <maz@misterjones.org> | 2010-03-05 16:44:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-06 14:26:48 -0500 |
commit | 89ea8bbe9c3eb2ea0cb57a4ecf283cab7326f0b0 (patch) | |
tree | f06f9594be6e64699ae3d8672d4868b81e25cfa7 /drivers/gpio/Kconfig | |
parent | 8c35c89aa3d7e0f253c3a10456a8b075288b4565 (diff) |
gpio: pca953x.c: add interrupt handling capability
Most of the GPIO expanders controlled by the pca953x driver are able to
report changes on the input pins through an *INT pin.
This patch implements the irq_chip functionality (edge detection only).
The driver has been tested on an Arcom Zeus.
[akpm@linux-foundation.org: the compiler does inlining for us nowadays]
Signed-off-by: Marc Zyngier <maz@misterjones.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Nate Case <ncase@xes-inc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r-- | drivers/gpio/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index f3549b8779d..c5cc7d9d88e 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -134,6 +134,13 @@ config GPIO_PCA953X | |||
134 | This driver can also be built as a module. If so, the module | 134 | This driver can also be built as a module. If so, the module |
135 | will be called pca953x. | 135 | will be called pca953x. |
136 | 136 | ||
137 | config GPIO_PCA953X_IRQ | ||
138 | bool "Interrupt controller support for PCA953x" | ||
139 | depends on GPIO_PCA953X=y | ||
140 | help | ||
141 | Say yes here to enable the pca953x to be used as an interrupt | ||
142 | controller. It requires the driver to be built in the kernel. | ||
143 | |||
137 | config GPIO_PCF857X | 144 | config GPIO_PCF857X |
138 | tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders" | 145 | tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders" |
139 | depends on I2C | 146 | depends on I2C |