]> git.sur5r.net Git - u-boot/commit
imx: lpi2c: fix clock issue when NACK detected
authorGao Pan <pandy.gao@nxp.com>
Sun, 8 Jul 2018 03:46:41 +0000 (11:46 +0800)
committerHeiko Schocher <hs@denx.de>
Thu, 12 Jul 2018 09:09:07 +0000 (11:09 +0200)
commita32effd2838a62a5d1dcc01f613508f1d90b5667
tree538216d800839f69e7eb44f6241a4ed9df5de412
parent9b2ebcc06048cf49c2f8a8d152177ed1a8363878
imx: lpi2c: fix clock issue when NACK detected

For LPI2C IP, NACK is detected by the rising edge of the ninth clock.
In current uboot driver, once NACK is detected, it will reset and then
disable LPI2C master. As a result, we can never see the falling edge
of the ninth clock.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/imx_lpi2c.c