]> git.sur5r.net Git - u-boot/commit
mpc83xx: Fix empty i2c reads/writes in fsl_i2c.c
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>
Wed, 31 Jan 2007 10:04:19 +0000 (11:04 +0100)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 2 Mar 2007 17:05:54 +0000 (11:05 -0600)
commitf6f5f709e5c8e4564c4dfeecfdf2279244f9c83b
treec6eb6a476fd68ffe9a2cd8fb570332b21ff733c8
parent7a78f148d6a7298e4fface680dc7eacd877b1aba
mpc83xx: Fix empty i2c reads/writes in fsl_i2c.c

Fix empty i2c reads/writes, i2c_write(0x50, 0x00, 0, NULL, 0)
which is used to se if an slave will ACK after receiving its address.

Correct i2c probing to use this method as the old method could upset
a slave as it wrote a data byte to it.

Add a small delay in i2c_init() to let the controller
shutdown any ongoing I2C activity.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
drivers/fsl_i2c.c