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 <yamad...@jp.panasonic.com>
Cc: Heiko Schocher <h...@denx.de>
Cc: Simon Glass <s...@chromium.org>
---

  drivers/i2c/i2c-uclass.c | 80 +++++++++++++++++++++++++++++++-----------------
  include/i2c.h            |  4 +++
  2 files changed, 56 insertions(+), 28 deletions(-)

Acked-by: Heiko Schocher <h...@denx.de>

bye,
Heiko
--
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to