Skip to content
Snippets Groups Projects
Commit f6f5f709 authored by Joakim Tjernlund's avatar Joakim Tjernlund Committed by Kim Phillips
Browse files

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: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
parent 7a78f148
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment