[U-Boot] [PATCH v4 3/9] kmp204x: I2C deblocking support

York Sun
2014-02-03T20:26:00Z

On 02/02/2014 11:45 PM, Valentin Longchamp wrote:
> From: Rainer Boschung <rainer.boschung@keymile.com>
>
> This patch adds support for using some GPIOs that are connected to the
> I2C bus to force the bus lines state and perform some bus deblocking
> sequences.
>
> The KM common deblocking algorithm from board/keymile/common/common.c is
> used. The GPIO lines used for deblocking the I2C bus are some external
> GPIOs provided by the QRIO CPLD:
> - SCL = GPIOA_20
> - SDA = GPIOA_21
>
> The QRIO GPIOs act in an open-drain-like manner, for 0 the line is
> driven low and for 1 the GPIO is set as input and the line gets
> pulled-up.
>
> Signed-off-by: Rainer Boschung <rainer.boschung@keymile.com>
> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
>
> ---
>
> Changes in v4:
> - fix usage of the #define names that got wrong in the merge process
>
> Changes in v3:
> - rewrite the commit message and and the comments for more clarity
> - fix the GPIO numbers that where not correct
>
> Changes in v2: None
>

Applied to u-boot-mpc85xx master branch.

York