mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
fix(neoverse-rd): initialize CNTFRQ_EL0 for RESET_TO_BL31
When RESET_TO_BL31 was enabled, CNTFRQ_EL0 was left uninitialized, leading to incorrect system counter frequency settings. This impacted timer-dependent components, such as SMMUv3, causing initialization failures and unpredictable behavior. To fix this, CNTFRQ_EL0 is now explicitly set using plat_get_syscnt_freq2(), ensuring the correct system timer frequency and proper initialization of dependent components. Signed-off-by: Lokesh B V <Lokesh.BV@Arm.com> Change-Id: I808b17d25c87c4dce1bc2c8171a800b69b5c2908
This commit is contained in:
parent
0f38b9f87e
commit
94a4383a2b
1 changed files with 7 additions and 0 deletions
|
@ -154,6 +154,13 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
|||
nrd_plat_info.config_id = plat_arm_nrd_get_config_id();
|
||||
nrd_plat_info.multi_chip_mode = plat_arm_nrd_get_multi_chip_mode();
|
||||
|
||||
#if RESET_TO_BL31
|
||||
#if (ARM_ARCH_MAJOR > 7) || defined(ARMV7_SUPPORTS_GENERIC_TIMER)
|
||||
/* Set the counter frequency for the generic timer */
|
||||
write_cntfrq_el0(plat_get_syscnt_freq2());
|
||||
#endif
|
||||
#endif /* RESET_TO_BL31 */
|
||||
|
||||
/* Initialize generic timer */
|
||||
generic_delay_timer_init();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue