fix(stm32mp2): enable timer earlier in BL31

The timer is required when setting console. In BL2 the timer init is
done in clock driver init. This is not the case in BL31. So initialize
the generic_delay_timer_init() just after stm32mp2_clk_init() call.
This is required after the recent changes in timer framework [1].

[1]: a6485b2b3b refactor(delay-timer): add timer callback functions

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I4e84a45fc526ed132e97b238596aa69ddfc2b058
This commit is contained in:
Yann Gautier 2024-11-14 10:55:39 +01:00
parent 3109367c34
commit 16a659d73a

View file

@ -62,6 +62,8 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
panic();
}
generic_delay_timer_init();
(void)stm32mp_uart_console_setup();
/*
@ -122,8 +124,6 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
void bl31_plat_arch_setup(void)
{
generic_delay_timer_init();
stm32mp_gic_init();
}