summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-02-02 16:29:06 +0100
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-02-02 23:49:29 +0100
commitfb2b98e5422f30aec64f43f4cf9bcf22c5736719 (patch)
tree4a2ac0bed714c840da963093491a51692c509f13 /plat
parentcd7fa4893dd204e419a8403a8d1dc1c295e3d698 (diff)
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 <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/sun50iw1p1/bl31_sunxi_setup.c4
1 files 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);
}
/*******************************************************************************