On Sat, 5 Jan 2008 11:40:55 -0800, David Brownell wrote:
> From: eric miao <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]>
> Signed-off-by: David Brownell <[EMAIL PROTECTED]>
> ---
> 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 <[EMAIL PROTECTED]>

-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to