allwinner: H6: Factor out I2C platform setup
authorAndre Przywara <andre.przywara@arm.com>
Sun, 14 Oct 2018 21:13:53 +0000 (22:13 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 20 Oct 2018 15:23:59 +0000 (16:23 +0100)
commitd5ddf67a66d77d04a6f0f6856af02704f486fd73
treef0096dcb5ac0a0ba98af90ad7e92cbb36cdae8e4
parent103f19f055bebf5ffa5ef73bba51d736123c7c33
allwinner: H6: Factor out I2C platform setup

In the H6 platform code there is a routine to do the platform
initialisation of the R_I2C controller. We will need a very similar
setup routine to initialise the RSB controller on the A64.

Move this code to sunxi_common.c and generalise it to support all SoCs
and also to cover the related RSB bus.

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