]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/soft_i2c.c
soft_i2c: Pull SDA high before reading
[people/ms/u-boot.git] / common / soft_i2c.c
index c5d7e205e5442d87cec9530b212bf873e7fc9bf3..5ef7f303b8435d52a5ccb8151d316b8e79141ada 100644 (file)
@@ -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);