From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 05 Jan 2015 06:39:42 +0100 Subject: [U-Boot] [RFC PATCH 2/2] dm: i2c: support 10bit addressing in I2C uclass layer In-Reply-To: <1419014064-19214-3-git-send-email-yamada.m@jp.panasonic.com> References: <1419014064-19214-1-git-send-email-yamada.m@jp.panasonic.com> <1419014064-19214-3-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <54AA239E.7070302@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Heiko Schocher > Cc: Simon Glass > --- > > drivers/i2c/i2c-uclass.c | 80 +++++++++++++++++++++++++++++++----------------- > include/i2c.h | 4 +++ > 2 files changed, 56 insertions(+), 28 deletions(-) Acked-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany