u-boot/drivers/i2c
Andrew Dyer 2ac6985a74 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>
2009-01-27 22:26:31 +01:00
..
Makefile soft_i2c: move to drivers/i2c 2008-08-29 12:25:02 +02:00
fsl_i2c.c i2c: merge all i2c_reg_read() and i2c_reg_write() into inline functions 2008-12-15 23:46:21 +01:00
mxc_i2c.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
omap24xx_i2c.c ARM: OMAP: Convert IO macros 2008-11-21 01:44:35 +01:00
omap1510_i2c.c Cleanup: fix "MHz" spelling 2008-10-21 11:25:39 +02:00
soft_i2c.c soft_i2c.c add option for repeated start in i2c_read() 2009-01-27 22:26:31 +01:00
tsi108_i2c.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00