mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
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:
parent
3109367c34
commit
16a659d73a
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue