mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 21:44:15 +00:00
fix(zynqmp): fix syscnt frequency for QEMU
QEMU uses a 62.5MHz clock frequency for the ARM generic timers. Signed-off-by: Luc Michel <luc.michel@amd.com> Change-Id: Ib846e17feb3cd44878a62add320fa4795fd5c69e
This commit is contained in:
parent
2377542785
commit
55ae162fd5
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ uint32_t plat_get_syscnt_freq2(void)
|
||||||
uint32_t ret = 0U;
|
uint32_t ret = 0U;
|
||||||
|
|
||||||
if (ver == ZYNQMP_CSU_VERSION_QEMU) {
|
if (ver == ZYNQMP_CSU_VERSION_QEMU) {
|
||||||
ret = 65000000U;
|
ret = 62500000U;
|
||||||
} else {
|
} else {
|
||||||
ret = mmio_read_32((uint64_t)IOU_SCNTRS_BASEFREQ);
|
ret = mmio_read_32((uint64_t)IOU_SCNTRS_BASEFREQ);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue