Change the sequence of events in soft_i2c.c:send_ack() to keep from

incorrectly generating start/stop conditions on the bus.
Patch by Andrew Dyer, 26 Jul 2005
This commit is contained in:
Wolfgang Denk 2006-03-13 00:50:48 +01:00
parent b38dbd4622
commit c15f80eaef
2 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,10 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* Change the sequence of events in soft_i2c.c:send_ack() to keep from
incorrectly generating start/stop conditions on the bus.
Patch by Andrew Dyer, 26 Jul 2005
* Fix bug in [id]cache_status commands for MPC85xx processors; * Fix bug in [id]cache_status commands for MPC85xx processors;
should look at LSB of L1CSRn registers to determine if L1 cache is should look at LSB of L1CSRn registers to determine if L1 cache is
enabled, not the MSB. enabled, not the MSB.

View File

@ -164,13 +164,10 @@ static void send_ack(int ack)
volatile immap_t *immr = (immap_t *)CFG_IMMR; volatile immap_t *immr = (immap_t *)CFG_IMMR;
#endif #endif
I2C_ACTIVE;
I2C_SCL(0); I2C_SCL(0);
I2C_DELAY; I2C_DELAY;
I2C_SDA(ack);
I2C_ACTIVE; I2C_ACTIVE;
I2C_SDA(ack);
I2C_DELAY; I2C_DELAY;
I2C_SCL(1); I2C_SCL(1);
I2C_DELAY; I2C_DELAY;