allwinner: sun50i_h6: improve I2C setup
authorAndre Przywara <andre.przywara@arm.com>
Sat, 8 Sep 2018 23:38:19 +0000 (00:38 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 17 Sep 2018 08:51:22 +0000 (09:51 +0100)
commit1a910bcee2444842de58a3b748a942fe0f183d67
tree842bda6e36cb6db2b78db302fdacb2239299fab3
parente52ed092cde21d13533df32eb68629a980d69b4b
allwinner: sun50i_h6: improve I2C setup

Drop the unnecessary check for the I2C pins being already configured as
I2C pins (we actually don't care).
Also avoid resetting *every* peripheral that is covered by the PRCM reset
controller, instead just clear the one line connected to the I2C controller.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
plat/allwinner/sun50i_h6/sunxi_power.c