diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-12-02 15:08:57 +0800 |
---|---|---|
committer | Lily Zhang <r58066@freescale.com> | 2011-12-05 15:47:19 +0800 |
commit | 69bc8d684ca0860a0d13c553364fe84204b7ef94 (patch) | |
tree | 716eceb0128ef9eb97d035e8e8eaab4d0c1ec3bc /board/stxgp3/tlb.c | |
parent | 0b390bada10c170e789bcb01d2067df38a7c34d2 (diff) | |
download | u-boot-imx-69bc8d684ca0860a0d13c553364fe84204b7ef94.zip u-boot-imx-69bc8d684ca0860a0d13c553364fe84204b7ef94.tar.gz u-boot-imx-69bc8d684ca0860a0d13c553364fe84204b7ef94.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>
(cherry picked from commit de0443f4d45852313f1231f48a83365e8f3f26bf)
Diffstat (limited to 'board/stxgp3/tlb.c')
0 files changed, 0 insertions, 0 deletions