summaryrefslogtreecommitdiff
path: root/fs/ubifs/crc16.c
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2011-12-02 15:08:57 +0800
committerLily Zhang <r58066@freescale.com>2011-12-05 15:47:19 +0800
commit69bc8d684ca0860a0d13c553364fe84204b7ef94 (patch)
tree716eceb0128ef9eb97d035e8e8eaab4d0c1ec3bc /fs/ubifs/crc16.c
parent0b390bada10c170e789bcb01d2067df38a7c34d2 (diff)
downloadu-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 'fs/ubifs/crc16.c')
0 files changed, 0 insertions, 0 deletions