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)
commitaa54192d4a87460e105264a8156f1d7b1d212b0b
treee2b398b763972d323b7bff25c800ac7dc4d85b2e
parentdf8dcac8a380147e02582c25016406cfe6bba56e
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