From ffd1b889225a8aec124df9e330f41dc638fd7180 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Tue, 18 Jan 2022 10:39:52 +0100 Subject: [PATCH] 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 Change-Id: I3c24fe4cd68c7bf143cf9318ab38a15d6d41b5d2 --- plat/st/stm32mp1/bl2_plat_setup.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); }