diff options
author | Andre Przywara <andre.przywara@arm.com> | 2018-10-14 22:13:53 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2018-10-20 16:23:59 +0100 |
commit | d5ddf67a66d77d04a6f0f6856af02704f486fd73 (patch) | |
tree | f0096dcb5ac0a0ba98af90ad7e92cbb36cdae8e4 /plat/allwinner/common/include | |
parent | 103f19f055bebf5ffa5ef73bba51d736123c7c33 (diff) | |
download | trusted-firmware-a-d5ddf67a66d77d04a6f0f6856af02704f486fd73.tar.gz |
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>
Diffstat (limited to 'plat/allwinner/common/include')
-rw-r--r-- | plat/allwinner/common/include/sunxi_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plat/allwinner/common/include/sunxi_private.h b/plat/allwinner/common/include/sunxi_private.h index 54cc27e4fd..6c9c509c44 100644 --- a/plat/allwinner/common/include/sunxi_private.h +++ b/plat/allwinner/common/include/sunxi_private.h @@ -19,5 +19,6 @@ void sunxi_security_setup(void); uint16_t sunxi_read_soc_id(void); void sunxi_set_gpio_out(char port, int pin, bool level_high); +int sunxi_init_platform_r_twi(uint16_t socid, bool use_rsb); #endif /* SUNXI_PRIVATE_H */ |