diff options
author | eric miao <eric.miao@marvell.com> | 2008-02-05 01:28:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:13 -0500 |
commit | 9e60fdcf0c2905d7a8fc4cb2b3711ea5c5acaae1 (patch) | |
tree | c90417ab0e2079d0355ffb553985d9a0f2348bab /drivers/gpio/Kconfig | |
parent | e58b9e2762a6ef99e20dba47aba21b911658541d (diff) |
gpiolib: pca9539 i2c gpio expander support
This adds a new-style I2C driver with basic support for the sixteen bit
PCA9539 GPIO expanders. These chips have multiple registers, push-pull output
drivers, and (not supported in this patch) pin change interrupts.
Board-specific code must provide "pca9539_platform_data" with each chip's
"i2c_board_info". That provides the GPIO numbers to be used by that chip, and
callbacks for board-specific setup/teardown logic.
Derived from drivers/i2c/chips/pca9539.c (which has no current known users).
This is faster and simpler; it uses 16-bit register access, and cache the
OUTPUT and DIRECTION registers for fast access
Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ben Gardner <bgardner@wabtec.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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index d924a32c089a..74fac0f5c348 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -27,6 +27,16 @@ config DEBUG_GPIO | |||
27 | 27 | ||
28 | comment "I2C GPIO expanders:" | 28 | comment "I2C GPIO expanders:" |
29 | 29 | ||
30 | config GPIO_PCA9539 | ||
31 | tristate "PCA9539 16-bit I/O port" | ||
32 | depends on I2C | ||
33 | help | ||
34 | Say yes here to support the PCA9539 16-bit I/O port. These | ||
35 | parts are made by NXP and TI. | ||
36 | |||
37 | This driver can also be built as a module. If so, the module | ||
38 | will be called pca9539. | ||
39 | |||
30 | config GPIO_PCF857X | 40 | config GPIO_PCF857X |
31 | tristate "PCF857x, PCA857x, and PCA967x I2C GPIO expanders" | 41 | tristate "PCF857x, PCA857x, and PCA967x I2C GPIO expanders" |
32 | depends on I2C | 42 | depends on I2C |