projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
soft_i2c: Pull SDA high before reading
[platform/kernel/u-boot.git]
/
common
/
soft_i2c.c
diff --git
a/common/soft_i2c.c
b/common/soft_i2c.c
index
c5d7e20
..
5ef7f30
100644
(file)
--- a/
common/soft_i2c.c
+++ b/
common/soft_i2c.c
@@
-252,6
+252,7
@@
static uchar read_byte(int ack)
* Read 8 bits, MSB first.
*/
I2C_TRISTATE;
+ I2C_SDA(1);
data = 0;
for(j = 0; j < 8; j++) {
I2C_SCL(0);