diff options
author | Andre Przywara <andre.przywara@arm.com> | 2021-05-10 13:07:24 +0100 |
---|---|---|
committer | Mark Rutland <mark.rutland@arm.com> | 2021-08-02 15:27:40 +0100 |
commit | cf13c653db78c849ac404a89e54f25d47154bd83 (patch) | |
tree | 426d83a6f9927f70618eb20a6b63ff8cb5ccd322 | |
parent | 3728ea63cd051991be019ae07601b4b9a4f21a0b (diff) | |
download | boot-wrapper-aarch64-cf13c653db78c849ac404a89e54f25d47154bd83.tar.gz |
Fix arch counter frequency
As the comment states, the frequency of the Generic Timer in the model
is 24 MHz, and not the currently used 0x1800000, which is actually
25,165,824 (~5% higher).
Use the proper number, and not something power-of-2 based.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index ef6b793..2c2fd25 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ PHYS_OFFSET := $(shell perl -I $(top_srcdir) $(top_srcdir)/findmem.pl $(KERNEL_DTB)) UART_BASE := $(shell perl -I $(top_srcdir) $(top_srcdir)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011') SYSREGS_BASE := $(shell perl -I $(top_srcdir) $(top_srcdir)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null) -CNTFRQ := 0x01800000 # 24Mhz +CNTFRQ := 24000000 CPU_IDS := $(shell perl -I $(top_srcdir) $(top_srcdir)/findcpuids.pl $(KERNEL_DTB)) NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w) |