[U-Boot] [RFC PATCH 2/2] dm: i2c: support 10bit addressing in I2C uclass layer

Heiko Schocher hs at denx.de
Mon Jan 5 06:39:42 CET 2015


Hello Masahiro,

Am 19.12.2014 19:34, schrieb Masahiro Yamada:
> Master send to / receive from 10-bit addressed slave devices
> can be supported by software layer without any hardware change
> because the LSB 8bit of the slave address is treated as data part.
>
> Master Send to a 10bit-addressed slave chip is performed like this:
>
>   DIR    Format
>   M->S   11110 + address[9:8] + R/W(0)
>   M->S   address[7:0]
>   M->S   data0
>   M->S   data1
>        ...
>
> Master Receive from a 10bit-addressed slave chip is like this:
>
>   DIR    Format
>   M->S   11110 + address[9:8] + R/W(0)
>   M->S   address[7:0]
>          (Restart)
>   M->S   111110 + address[9:8] + R/W(1)
>   S->M   data0
>   S->M   data1
>        ...
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Cc: Heiko Schocher <hs at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>
>   drivers/i2c/i2c-uclass.c | 80 +++++++++++++++++++++++++++++++-----------------
>   include/i2c.h            |  4 +++
>   2 files changed, 56 insertions(+), 28 deletions(-)

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

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