X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fsoft_i2c.c;h=5ef7f303b8435d52a5ccb8151d316b8e79141ada;hb=a48311557db6e7e9473a6163b44bb1e6c6ed64c4;hp=bffcd4405ec5bbe5d550ec471f6e5f4657bd33fa;hpb=534ff676a9c2ffd460e096754894e78551e4ed1e;p=u-boot diff --git a/common/soft_i2c.c b/common/soft_i2c.c index bffcd4405e..5ef7f303b8 100644 --- a/common/soft_i2c.c +++ b/common/soft_i2c.c @@ -29,10 +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) @@ -246,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);