summaryrefslogtreecommitdiff
path: root/plat/sun50iw1p1/bl31_sunxi_setup.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-11-11 08:26:33 +0000
committerAndre Przywara <andre.przywara@arm.com>2016-11-11 08:26:33 +0000
commitcd7fa4893dd204e419a8403a8d1dc1c295e3d698 (patch)
tree8ef8c4700418d0b5aaa6effcd20510e4140d5ff2 /plat/sun50iw1p1/bl31_sunxi_setup.c
parent687e191047228f37bd5118b2f6614f13eb4c7474 (diff)
avoid PLL_CPUX setup on H5
It hung for me without it ...
Diffstat (limited to 'plat/sun50iw1p1/bl31_sunxi_setup.c')
-rw-r--r--plat/sun50iw1p1/bl31_sunxi_setup.c8
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;