Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 1 | From 0c0695cd3160ccdb95bae29b7668918015c0b6aa Mon Sep 17 00:00:00 2001 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 2 | From: Peter Hoyes <Peter.Hoyes@arm.com> |
| 3 | Date: Tue, 1 Feb 2022 11:28:46 +0000 |
| 4 | Subject: [PATCH] Makefile: Change COUNTER_FREQ to 100 MHz |
| 5 | |
| 6 | Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but |
| 7 | the RevC base models use 100 MHz. There is not a robust method of |
| 8 | determining the configured base frequency at runtime, so update |
| 9 | COUNTER_FREQ to be 100 MHz. |
| 10 | |
| 11 | Issue-Id: SCM-3871 |
| 12 | Upstream-Status: Pending |
| 13 | Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> |
| 14 | Change-Id: Ia9ad0f8ee488d1a887791f1fa1d8f3bf9c5887fd |
| 15 | --- |
| 16 | Makefile.am | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/Makefile.am b/Makefile.am |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 20 | index 6604baa..cc6504e 100644 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 21 | --- 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) |