[U-Boot] [PATCH 1/3] i2c: add support for offset overflow in to address

Heiko Schocher hs at denx.de
Wed Nov 20 05:43:31 UTC 2019

Hello Robert

Am 28.10.2019 um 18:44 schrieb Robert Beckett:
> Some devices (2 wire eeproms for example) use some bits from the chip
> address to represent the high bits of the offset instead of or as well
> as using multiple bytes for the offset, effectively stealing chip
> addresses on the bus.
> Add a chip offset mask that can be set for any i2c chip which gets
> filled with the offset overflow during offset setup.
> Signed-off-by: Robert Beckett <bob.beckett at collabora.com>
> Signed-off-by: Ian Ray <ian.ray at ge.com>
> ---
>   drivers/i2c/i2c-uclass.c | 34 +++++++++++++++++++++++++++-------
>   include/i2c.h            | 33 +++++++++++++++++++++++++++++++++
>   2 files changed, 60 insertions(+), 7 deletions(-)

Reviewed-by: Heiko Schocher <hs at denx.de>


DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de

More information about the U-Boot mailing list