diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-12-05 13:21:29 +0800 |
---|---|---|
committer | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-12-16 13:06:13 +0800 |
commit | 5580fa683fa68d236d841a592a28d63453da845f (patch) | |
tree | 960721b2b3d36dab5081face391a6f7200e700d0 /include/405_mal.h | |
parent | bf6a636f2c4bfe393080076d6f5b4bd2d23421b4 (diff) | |
download | u-boot-imx-5580fa683fa68d236d841a592a28d63453da845f.zip u-boot-imx-5580fa683fa68d236d841a592a28d63453da845f.tar.gz u-boot-imx-5580fa683fa68d236d841a592a28d63453da845f.tar.bz2 |
ENGR00163704: MX5X: add i2c recovery function in board_lateinit.
This patch add a i2c bus recovery function, the i2c bus busy
because some device pull down the I2C SDA line. This happens
when Host is reading some byte from slave, and then host is
reset/reboot.
Since in this case, device is controlling i2c SDA line, the
only thing host can do this give the clock on SCL and sending
NAK, and STOP to finish this transaction.
To fix this issue:
when we found SDA is low, we generate 8 clock to let device
send data, then send a NAK, and STOP to finish this I2C
transaction , after this the clock will be clean.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'include/405_mal.h')
0 files changed, 0 insertions, 0 deletions