From fb2b98e5422f30aec64f43f4cf9bcf22c5736719 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Thu, 2 Feb 2017 16:29:06 +0100 Subject: sun50iw1p1: Perform power-setup before increasing operating clocks Increasing the operating clocks may increase the current draw (or require a higher voltage for certain voltage rails). To ensure that we never run into a problem in this area, the initialisation sequence is reordered to first perform the PMIC setup and then reprogram the clocking. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich --- plat/sun50iw1p1/bl31_sunxi_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/sun50iw1p1/bl31_sunxi_setup.c b/plat/sun50iw1p1/bl31_sunxi_setup.c index d69a079..3e30814 100644 --- a/plat/sun50iw1p1/bl31_sunxi_setup.c +++ b/plat/sun50iw1p1/bl31_sunxi_setup.c @@ -246,8 +246,6 @@ void bl31_platform_setup(void) /* Detect if this SoC is a multi-cluster one. */ plat_setup_topology(); - sunxi_setup_clocks(socid); - switch (socid) { case 0x1689: sunxi_pmic_setup(); @@ -255,6 +253,8 @@ void bl31_platform_setup(void) case 0x1718: break; } + + sunxi_setup_clocks(socid); } /******************************************************************************* -- cgit v1.2.3