summaryrefslogtreecommitdiff
path: root/plat/st
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2022-01-18 10:39:52 +0100
committerYann Gautier <yann.gautier@st.com>2022-03-22 09:09:23 +0100
commitffd1b889225a8aec124df9e330f41dc638fd7180 (patch)
treefd2d930aed9ab99dac68206ae53e74f8360181df /plat/st
parent5278ec3faf2010fd6aea1d8cd4294dd229c5c21d (diff)
downloadarm-trusted-firmware-ffd1b889225a8aec124df9e330f41dc638fd7180.tar.gz
feat(stm32mp1): call pmic_voltages_init() in platform init
The nominal voltage for VDDCPU when Cortex-A7 runs at 650MHz is 1.25V on STM32MP13. VDDCORE should be set at 1.25V as well. This is necessary, as the PMIC values in its NVMEM are 1.2V. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I3c24fe4cd68c7bf143cf9318ab38a15d6d41b5d2
Diffstat (limited to 'plat/st')
-rw-r--r--plat/st/stm32mp1/bl2_plat_setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plat/st/stm32mp1/bl2_plat_setup.c b/plat/st/stm32mp1/bl2_plat_setup.c
index 20356e412..88d0f8a8c 100644
--- a/plat/st/stm32mp1/bl2_plat_setup.c
+++ b/plat/st/stm32mp1/bl2_plat_setup.c
@@ -348,6 +348,10 @@ skip_console_init:
if (dt_pmic_status() > 0) {
initialize_pmic();
+ if (pmic_voltages_init() != 0) {
+ ERROR("PMIC voltages init failed\n");
+ panic();
+ }
print_pmic_info_and_debug();
}