Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expander support
- From: Jean Delvare <khali@xxxxxxxxxxxx>
- Date: Sun, 6 Jan 2008 13:59:45 +0100
On Sat, 5 Jan 2008 11:40:55 -0800, David Brownell wrote:
From: eric miao <eric.miao@xxxxxxxxxxx>
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@xxxxxxxxxxx>
Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxx>
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expander support
- From: David Brownell
- Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expander support
- Prev by Date: Re: [PATCH 2/5] USB Kconfig: Select SCSI for USB Mass Storage support
- Next by Date: Re: 2.6.24-rc6-git12: Reported regressions from 2.6.23
- Previous by thread: Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expander support
- Next by thread: [PATCH] restrict reading from /proc/<pid>/maps to those who share ->mm or can ptrace pid
- Index(es):
Relevant Pages
|