Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expander support

Jean Delvare
2008-01-06T12:59:59Z

On Sat, 5 Jan 2008 11:40:55 -0800, David Brownell wrote:
> From: eric miao <eric.miao@marvell.com>
> Subject: [PATCH] gpiolib: support PCA9539 GPIO expander
>
> 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>
> ---
> Incorporates cleanups noted by Jean Delvare.
>
> drivers/gpio/Kconfig | 10 +
> drivers/gpio/Makefile | 1
> drivers/gpio/pca9539.c | 271 ++++++++++++++++++++++++++++++++++++++++++++
> include/linux/i2c/pca9539.h | 18 ++
> 4 files changed, 300 insertions(+)

Acked-by: Jean Delvare <khali@linux-fr.org>

--
Jean Delvare