From: "Rebecca Cran" <quic_rcran@quicinc.com>
To: <devel@edk2.groups.io>, Pierre Gondois <pierre.gondois@arm.com>,
"Ard Biesheuvel" <ardb+tianocore@kernel.org>,
Sami Mujawar <sami.mujawar@arm.com>,
Thomas Abraham <thomas.abraham@arm.com>
Cc: Rebecca Cran <rebecca@quicinc.com>
Subject: [PATCH edk2-platforms v2 2/2] Platform/ARM/JunoPkg: Set PcdArmArchTimerFreqInHz to 0 to read from CNTFRQ_EL0
Date: Mon, 20 Feb 2023 18:02:42 -0700 [thread overview]
Message-ID: <20230221010242.1038521-3-rebecca@quicinc.com> (raw)
In-Reply-To: <20230221010242.1038521-1-rebecca@quicinc.com>
If PcdArmArchTimerFreqInHz is zero, the value of the timer frequency
will be read from CNTFRQ_EL0. Avoid hard-coding the value in ArmJuno.dsc
and instead let the ArmArchTimerLib driver read it from the SoC.
Signed-off-by: Rebecca Cran <rebecca@quicinc.com>
---
Platform/ARM/JunoPkg/ArmJuno.dsc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Platform/ARM/JunoPkg/ArmJuno.dsc b/Platform/ARM/JunoPkg/ArmJuno.dsc
index 9cde4c862651..d3bb205aa6f2 100644
--- a/Platform/ARM/JunoPkg/ArmJuno.dsc
+++ b/Platform/ARM/JunoPkg/ArmJuno.dsc
@@ -188,7 +188,8 @@
#
# ARM Architectural Timer Frequency
#
- gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|50000000
+ # Set to 0 so ArmArchTimerLib will read its value from CNTFRQ_EL0
+ gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
--
2.30.2
next prev parent reply other threads:[~2023-02-21 1:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 1:02 [PATCH edk2-platforms v2 0/2] Platform/ARM/JunoPkg: Timer fixes Rebecca Cran
2023-02-21 1:02 ` [PATCH edk2-platforms v2 1/2] Platform/ARM/JunoPkg: Switch to MdeModulePkg/Universal/Metronome driver Rebecca Cran
2023-02-21 8:44 ` Ard Biesheuvel
2023-02-21 1:02 ` Rebecca Cran [this message]
2023-02-21 8:49 ` [PATCH edk2-platforms v2 0/2] Platform/ARM/JunoPkg: Timer fixes Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230221010242.1038521-3-rebecca@quicinc.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox