X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fsoft_i2c.c;h=5ef7f303b8435d52a5ccb8151d316b8e79141ada;hb=1730edf76c54381475e2da11f75b1ce563c4e62c;hp=edad51bc4180517a2093622296ce18bf0b27f2b4;hpb=3aeec2860471f12f17aa19ce4799ff7f3d335b05;p=u-boot diff --git a/common/soft_i2c.c b/common/soft_i2c.c index edad51bc41..5ef7f303b8 100644 --- a/common/soft_i2c.c +++ b/common/soft_i2c.c @@ -29,13 +29,16 @@ #ifdef CONFIG_MPC8260 /* only valid for MPC8260 */ #include #endif -#ifdef CONFIG_AT91RM9200DK /* need this for the at91rm9200dk */ +#ifdef CONFIG_AT91RM9200 /* need this for the at91rm9200 */ #include #include #endif #ifdef CONFIG_IXP425 /* only valid for IXP425 */ #include #endif +#ifdef CONFIG_LPC2292 +#include +#endif #include #if defined(CONFIG_SOFT_I2C) @@ -249,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);