]> git.ipfire.org Git - people/ms/u-boot.git/commit - README
soft_i2c.c add option for repeated start in i2c_read()
authorAndrew Dyer <adyer@righthandtech.com>
Mon, 29 Dec 2008 23:36:01 +0000 (17:36 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 27 Jan 2009 21:26:31 +0000 (22:26 +0100)
commit2ac6985a7466a1c8a7aa8b2fa24d360925a82764
tree81c39426e12780c0c88d7634244203916f9f98cf
parent3429071700963ca2f944c51d695a7481af0cee33
soft_i2c.c add option for repeated start in i2c_read()

This patch adds a #define to optionally change the behaviour of
i2c_read() in soft_i2c.c to send an I2C repeated start instead of a
stop-start between sending the device address pointer write and
reading back the data.  The current behaviour is retained as the
default.

While most devices will work either way, I have a smart battery(*)
that requires repeated start, and someone at some point found a
device that required a stop-start.

(*) http://www.inspired-energy.com/Standard_Products/NL2054/NL2054%20Rev1.0%20Data%20Sheet.pdf

Signed-off-by: Andrew Dyer <adyer@righthandtech.com>
README
drivers/i2c/soft_i2c.c