From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.web10.149725.1669730061437992539 for ; Tue, 29 Nov 2022 05:54:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EmSp7O+2; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: quicinc.com, ip: 205.220.168.131, mailfrom: quic_rcran@quicinc.com) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AT9nQEs003715; Tue, 29 Nov 2022 13:54:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=zhhYypSGc/iflBCI8k3EUM5HkLNIrnDCPffUkyeFiHw=; b=EmSp7O+2LawjsNZZBICKs/S/DM6h9O8Svho1NZa6WfaclpkyEhQwqwZUGtFBFLjqQbC1 YnBuZQUJiHB34uLzl8l3N0PgnA6AVr7LXK8S0zGIMb79aaRTgV8Y6AUFir/plZ242nvb IIDGwjrzSf2hgCCU0YwSOJw78TbI7lGr71JhMKXLieuvEPuSAXvOA7tz/EaNasm4TWSz KipgXBpxlTzaDqxcUndLZYk2gw1NPdG6sbARGc89HMvUP2xwjFtYemvBYBDgPSyNj5ol wLb/XpZ7/CKKBOvoCcnB0Na8b6mIP+GxjDl+HGf3ulV+UIUHH7Gz449UbwNdHi8IuS5k 4g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m56vca030-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 13:54:18 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2ATDsHMu018536 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 13:54:17 GMT Received: from linbox.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 29 Nov 2022 05:54:17 -0800 From: "Rebecca Cran" To: , Ard Biesheuvel , "Thomas Abraham" , Sami Mujawar CC: Rebecca Cran Subject: [PATCH edk2-platforms 3/3] Platform/ARM/JunoPkg: Set PcdArmArchTimerFreqInHz to 0 to read from CNTFRQ_EL0 Date: Tue, 29 Nov 2022 06:53:58 -0700 Message-ID: <20221129135358.136555-4-rebecca@quicinc.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221129135358.136555-1-rebecca@quicinc.com> References: <20221129135358.136555-1-rebecca@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: d4jZapp09LDfK51j95NfFgl3_BXPQO9P X-Proofpoint-ORIG-GUID: d4jZapp09LDfK51j95NfFgl3_BXPQO9P X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-29_08,2022-11-29_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 malwarescore=0 phishscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=770 impostorscore=0 spamscore=0 bulkscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211290080 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 --- 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 9b63a8914f03..e40005862072 100644 --- a/Platform/ARM/JunoPkg/ArmJuno.dsc +++ b/Platform/ARM/JunoPkg/ArmJuno.dsc @@ -188,7 +188,8 @@ [PcdsFixedAtBuild.common] # # ARM Architectural Timer Frequency # - gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|50000000 + # Set to 0 so ArmArchTimerLib will read its value from CNTFRQ_EL0 + gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE -- 2.30.2