[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080106135945.2c21b8cd@hyperion.delvare>
Date: Sun, 6 Jan 2008 13:59:45 +0100
From: Jean Delvare <khali@...ux-fr.org>
To: David Brownell <david-b@...bell.net>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel list <linux-kernel@...r.kernel.org>,
eric miao <eric.y.miao@...il.com>
Subject: Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expander
support
On Sat, 5 Jan 2008 11:40:55 -0800, David Brownell wrote:
> From: eric miao <eric.miao@...vell.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@...vell.com>
> Signed-off-by: David Brownell <dbrownell@...rs.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@...ux-fr.org>
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists