summaryrefslogtreecommitdiff
path: root/common/soft_i2c.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-03-13 00:50:48 +0100
committerWolfgang Denk <wd@pollux.denx.de>2006-03-13 00:50:48 +0100
commitc15f80eaefa7ece72272e6f441f0ed36eab14411 (patch)
tree6e422368dda72ce81f7ce582e9f664d2b1db3359 /common/soft_i2c.c
parentb38dbd4622a2abeedf9fcb1806958d9afac0bbd4 (diff)
downloadu-boot-imx-c15f80eaefa7ece72272e6f441f0ed36eab14411.zip
u-boot-imx-c15f80eaefa7ece72272e6f441f0ed36eab14411.tar.gz
u-boot-imx-c15f80eaefa7ece72272e6f441f0ed36eab14411.tar.bz2
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
Diffstat (limited to 'common/soft_i2c.c')
-rw-r--r--common/soft_i2c.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/soft_i2c.c b/common/soft_i2c.c
index 48e3d3e..b3642da 100644
--- a/common/soft_i2c.c
+++ b/common/soft_i2c.c
@@ -164,13 +164,10 @@ static void send_ack(int ack)
volatile immap_t *immr = (immap_t *)CFG_IMMR;
#endif
- I2C_ACTIVE;
I2C_SCL(0);
I2C_DELAY;
-
- I2C_SDA(ack);
-
I2C_ACTIVE;
+ I2C_SDA(ack);
I2C_DELAY;
I2C_SCL(1);
I2C_DELAY;