]> git.baikalelectronics.ru Git - uboot.git/commit
dm: i2c: implement gpio-based I2C deblock
authorAlexander Kochetkov <al.kochet@gmail.com>
Tue, 27 Mar 2018 14:52:27 +0000 (17:52 +0300)
committerHeiko Schocher <hs@denx.de>
Wed, 11 Apr 2018 09:34:27 +0000 (11:34 +0200)
commit434ad187c9717bc2efa801ea74d35bee1ecbcdd3
treee2b398b763972d323b7bff25c800ac7dc4d85b2e
parente94ac0dcd33f511f4c13763a7b389dff24181798
dm: i2c: implement gpio-based I2C deblock

The commit implement a gpio-based software deblocking. The code
extract I2C pins description from device tree, switch pins to GPIO
mode, toggle SCL until slave release SDA, send I2C stop and switch
I2C pins back to I2C mode.

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
drivers/i2c/i2c-uclass.c