]> git.baikalelectronics.ru Git - uboot.git/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)
commitf2883ce13f1db0c08109a61cebf6902697fa8214
tree538216d800839f69e7eb44f6241a4ed9df5de412
parentda8c9a57d8786bc9b46f1ea4f173bcb3ac0e84f7
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