diff options
| author | Kaustabh Chakraborty <[email protected]> | 2025-10-23 02:32:57 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-06 08:19:19 -0600 |
| commit | c9b43591ea5c63d09310713068d9aa7a924ab983 (patch) | |
| tree | 5e21e8d37c01a85e1d9117c53fa81464aa15650f /doc/develop | |
| parent | 1c250e444ad3b15315ee8b0fcb3fc3acc26449e2 (diff) | |
armv8: implement workaround for broken CNTFRQ_EL0 value
In devices where the U-Boot is used as a secondary bootloader, we rely
on the device's primary bootloader to implement CNTFRQ_EL0. However,
this reliance may lead to a non-functional timer in broken firmware.
For instance, some versions of Samsung's S-Boot don't implement it. It's
also not possible to set it in the U-Boot, because it's booted in a lower
exception level. CNTFRQ_EL0 is reported to be 0.
Use gd->arch.timer_rate_hz to override the queried value if set. This
setting needs to be done in the board file, preferrably in timer_init().
This feature is present only when the CONFIG_ARMV8_CNTFRQ_BROKEN is
enabled.
Signed-off-by: Kaustabh Chakraborty <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions
