mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 06:50:10 +00:00
refactor(stm32mp1): re-order drivers init
SYSCFG can be initialized later, after console is up, to display the warnings or messages it could issue. PMIC should be initialized earlier, before SYSCFG init. Change-Id: Icc3a1366083a1b1fde7f0e173645449b4c04c49b Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
47833abd77
commit
0c16e7d2fb
1 changed files with 6 additions and 6 deletions
|
@ -130,10 +130,6 @@ void bl2_platform_setup(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (dt_pmic_status() > 0) {
|
|
||||||
initialize_pmic();
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = stm32mp1_ddr_probe();
|
ret = stm32mp1_ddr_probe();
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
ERROR("Invalid DDR init: error %d\n", ret);
|
ERROR("Invalid DDR init: error %d\n", ret);
|
||||||
|
@ -247,8 +243,6 @@ void bl2_el3_plat_arch_setup(void)
|
||||||
panic();
|
panic();
|
||||||
}
|
}
|
||||||
|
|
||||||
stm32mp1_syscfg_init();
|
|
||||||
|
|
||||||
stm32_save_boot_interface(boot_context->boot_interface_selected,
|
stm32_save_boot_interface(boot_context->boot_interface_selected,
|
||||||
boot_context->boot_interface_instance);
|
boot_context->boot_interface_instance);
|
||||||
|
|
||||||
|
@ -277,6 +271,12 @@ void bl2_el3_plat_arch_setup(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
skip_console_init:
|
skip_console_init:
|
||||||
|
if (dt_pmic_status() > 0) {
|
||||||
|
initialize_pmic();
|
||||||
|
}
|
||||||
|
|
||||||
|
stm32mp1_syscfg_init();
|
||||||
|
|
||||||
if (stm32_iwdg_init() < 0) {
|
if (stm32_iwdg_init() < 0) {
|
||||||
panic();
|
panic();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue