eric miao 9e60fdcf0c 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>
2008-02-05 09:44:13 -08:00
..
2008-02-03 17:06:17 +02:00
2008-02-03 16:29:12 +02:00
2008-02-03 17:12:34 +02:00
2008-02-03 15:42:53 +02:00
2008-01-30 13:14:02 -06:00
2008-02-03 17:15:20 +02:00
2008-02-03 17:16:28 +02:00
2008-02-04 23:50:03 +11:00
2008-02-03 17:18:59 +02:00
2008-02-03 17:21:01 +02:00
2008-02-03 17:22:34 +02:00
2008-02-03 17:23:36 +02:00
2008-02-03 15:42:53 +02:00
2008-01-31 11:25:51 +11:00
2008-02-03 15:42:53 +02:00
2008-02-03 17:30:25 +02:00
2008-02-03 17:31:49 +02:00
2008-02-04 23:50:13 +11:00
2008-02-05 09:44:12 -08:00
2008-02-05 09:44:12 -08:00