From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 10 Jan 2011 08:02:58 +0100 Subject: [U-Boot] [U-Boot,PATCHv4] pca953x: support 16-pin devices In-Reply-To: References: Message-ID: <4D2AAF22.1010707@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Chris, Sorry for the late reply, but just looked in patchwork and found that I am responsible for your patch, so ... Chris Packham wrote: > This adds support for for the PCA9535/PCA9539 family of gpio devices which > have 16 output pins. > > To let the driver know which devices are 16-pin it is necessary to define > CONFIG_SYS_I2C_PCA953X_WIDTH in your board config file. This is used to > create an array of {chip, ngpio} tuples that are used to determine the > width of a particular chip. For backwards compatibility it is assumed that > any chip not defined in CONFIG_SYS_I2C_PCA953X_WIDTH has 8 pins. > > Acked-by: Peter Tyser > Tested-by: Peter Tyser > Signed-off-by: Chris Packham > > --- > Changes since v3: > - pca953x_ngpio is now a function in all cases. > - Added Peter's ACK to the commit message. > > README | 4 ++ > drivers/gpio/pca953x.c | 114 ++++++++++++++++++++++++++++++++++++++---------- > 2 files changed, 95 insertions(+), 23 deletions(-) Compiles with actual u-boot the xpedite* boards, so added to u-boot-i2c.git Thanks! bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany