boards: arm64: xenvm: read real frequency

Read real frequncy from ARM Arch Timer instead of using define
'CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC' which can be incorrect for
some run cases. If we run xenvm under qemu we get one frequency, but
we can run this build as a DomU for Xen under different real platforms
and thus with differenty arch timer frequencies. So, we need to read
frequency from the timer registers.

Signed-off-by: Mykola Kvach <xakep.amatop@gmail.com>
This commit is contained in:
Mykola Kvach 2023-11-09 13:14:23 +02:00 committed by Carles Cufí
parent b2fb570635
commit bcaa7c2bdb
2 changed files with 4 additions and 0 deletions

View file

@ -16,3 +16,5 @@ CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=n
CONFIG_USERSPACE=n
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

View file

@ -15,3 +15,5 @@ CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=n
CONFIG_USERSPACE=n
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y