]> git.sur5r.net Git - u-boot/commit
i2c: designware: add reset ctrl to driver
authorDinh Nguyen <dinguyen@kernel.org>
Wed, 4 Apr 2018 22:18:24 +0000 (17:18 -0500)
committerMarek Vasut <marex@denx.de>
Tue, 17 Apr 2018 09:39:49 +0000 (11:39 +0200)
commit622597dee4f66d5bd7dd5135d770077af04b0349
treea609029d98c0175b49a35f3aeb739d6330381424
parent449ff9c4315563791282a7dd62303e20a48a007e
i2c: designware: add reset ctrl to driver

Add code to look for a reset manager property. Specifically, look for the
reset-names of 'i2c'. A reset property is an optional feature, so only print
out a warning and do not fail if a reset property is not present.

If a reset property is discovered, then use it to deassert, thus bringing the
IP out of reset.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
drivers/i2c/designware_i2c.c