[U-Boot] [U-Boot,PATCHv4] pca953x: support 16-pin devices

Heiko Schocher hs at denx.de
Mon Jan 10 08:02:58 CET 2011


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 <ptyser at xes-inc.com>
> Tested-by: Peter Tyser <ptyser at xes-inc.com>
> Signed-off-by: Chris Packham <chris.packham at alliedtelesis.co.nz>
> 
> ---
> 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


More information about the U-Boot mailing list