commit | 15fb0a101aabbea2f2e20a4e2697aa2eef35ebe4 | [log] [tgz] |
---|---|---|
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | Fri May 16 11:08:11 2008 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Tue Jun 03 20:25:56 2008 +0200 |
tree | 4263a5a7897272bf7a02bba37058f90e2ea742a4 | |
parent | 899032b8bb5075aeceeb71222949e7291e928afb [diff] |
soft_i2c: Pull SDA high before reading Spotted by Dean Capindale. Systems that support open-drain GPIO properly are allowed provide an empty I2C_TRISTATE define. However, this means that we need to be careful not to drive SDA low when the slave is expected to respond. This patch adds a missing I2C_SDA(1) to read_byte() required to tristate the SDA line on systems that support open-drain GPIO. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>