blob: e93a300fb7766e61069a6d725454a082505e4f6c [file] [log] [blame]
Andrew Geissler9347dd42023-03-03 12:38:41 -06001From 0c0695cd3160ccdb95bae29b7668918015c0b6aa Mon Sep 17 00:00:00 2001
Brad Bishopbec4ebc2022-08-03 09:55:16 -04002From: Peter Hoyes <Peter.Hoyes@arm.com>
3Date: Tue, 1 Feb 2022 11:28:46 +0000
4Subject: [PATCH] Makefile: Change COUNTER_FREQ to 100 MHz
5
6Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but
7the RevC base models use 100 MHz. There is not a robust method of
8determining the configured base frequency at runtime, so update
9COUNTER_FREQ to be 100 MHz.
10
11Issue-Id: SCM-3871
12Upstream-Status: Pending
13Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
14Change-Id: Ia9ad0f8ee488d1a887791f1fa1d8f3bf9c5887fd
15---
16 Makefile.am | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/Makefile.am b/Makefile.am
Andrew Geissler9347dd42023-03-03 12:38:41 -060020index 6604baa..cc6504e 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040021--- a/Makefile.am
22+++ b/Makefile.am
23@@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts
24 PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB))
25 UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011')
26 SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null)
27-COUNTER_FREQ := 24000000
28+COUNTER_FREQ := 100000000
29
30 CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB))
31 NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w)