diff options
Diffstat (limited to 'plat/sun50iw1p1/bl31_sunxi_setup.c')
-rw-r--r-- | plat/sun50iw1p1/bl31_sunxi_setup.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plat/sun50iw1p1/bl31_sunxi_setup.c b/plat/sun50iw1p1/bl31_sunxi_setup.c index 607bce0..d69a079 100644 --- a/plat/sun50iw1p1/bl31_sunxi_setup.c +++ b/plat/sun50iw1p1/bl31_sunxi_setup.c @@ -235,16 +235,20 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2, ******************************************************************************/ void bl31_platform_setup(void) { + uint16_t socid; + /* Initialize the gic cpu and distributor interfaces */ arm_gic_init(GICC_BASE, GICD_BASE, 0, NULL, 0); arm_gic_setup(); + socid = sunxi_get_socid(); + /* Detect if this SoC is a multi-cluster one. */ plat_setup_topology(); - sunxi_setup_clocks(); + sunxi_setup_clocks(socid); - switch (sunxi_get_socid()) { + switch (socid) { case 0x1689: sunxi_pmic_setup(); break; |