summaryrefslogtreecommitdiff
path: root/plat/sun50iw1p1/bl31_sunxi_setup.c
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2017-02-24 11:34:32 +0100
committerChristoph Muellner <christoph.muellner@theobroma-systems.com>2017-03-08 14:18:39 +0100
commitecd8b1df9648376e9c334345c5c014004825893d (patch)
tree7fc5943054ee81c78f03dd5e3a71bbdb4016ec85 /plat/sun50iw1p1/bl31_sunxi_setup.c
parent48b475e16ccf0a7f343bbfd877597ccf2717a9d6 (diff)
sun50iw1p1: Separate RSB driver from PMIC code.
This patch refactors the PMIC code and moves the RSB related code into its own module. This allows other code to access RSB devices as well and make the code more readable. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Diffstat (limited to 'plat/sun50iw1p1/bl31_sunxi_setup.c')
-rw-r--r--plat/sun50iw1p1/bl31_sunxi_setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/sun50iw1p1/bl31_sunxi_setup.c b/plat/sun50iw1p1/bl31_sunxi_setup.c
index 3e30814..78d3edc 100644
--- a/plat/sun50iw1p1/bl31_sunxi_setup.c
+++ b/plat/sun50iw1p1/bl31_sunxi_setup.c
@@ -235,6 +235,7 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2,
******************************************************************************/
void bl31_platform_setup(void)
{
+ int ret;
uint16_t socid;
/* Initialize the gic cpu and distributor interfaces */
@@ -248,6 +249,10 @@ void bl31_platform_setup(void)
switch (socid) {
case 0x1689:
+ ret = sunxi_rsb_init();
+ if (ret)
+ ERROR("Could not init RSB controller.\n");
+
sunxi_pmic_setup();
break;
case 0x1718: