From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mx.groups.io with SMTP id smtpd.web09.6626.1662550621763576536 for ; Wed, 07 Sep 2022 04:37:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=hUx3Z91Z; spf=pass (domain: ventanamicro.com, ip: 209.85.215.177, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pg1-f177.google.com with SMTP id f124so5022965pgc.0 for ; Wed, 07 Sep 2022 04:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=hqgTkrLm8Gik5XvXB7jIp5sH6L8C2TKQoOgCbUTF6Uo=; b=hUx3Z91ZDVXf7OOJvRTtAGYAgY67F2s2EhP90psVDH4Qhzd72iZvUGmSPC+eRzuUtK XjhB4ewOrvv6TyOTYDI+DzF+RXRn/G75k+82UMJek90q2jSFyPQe8bvAiXFwTIj29Ay7 2zoNmAL0ktvNdPez4D2l6kxvI7Cvhx9d3AD92jr4uT/hr3AshOC70w9CJR1vHSNHyM3E 3apWxFZJ8Ikui3M0iWBW4lEfvLfnxhBcnCSIdDl2zp73uEk4qw6XfsY3253xtrHenL32 wFocl2JvQ6Y4p8UeNZCyMM4GeWLGDk4/10aGfvgpxiDxjTYZ57fMY21mQ2mZQbsvkamC oCXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=hqgTkrLm8Gik5XvXB7jIp5sH6L8C2TKQoOgCbUTF6Uo=; b=QCnYGaHLNYSc15zt65EMI/bAAgBXb4Ftt9pudXW7C3aKhtHVDogw4v2IL6i5OeswpP 3PRcrQIle0H8lFzVsqnD7RFynG520AJpXbGPerrhuVaAV7quOW5E5P5RjCG6EIYjD49g JS1/j7Xb6cTwyUne5Rn+ccy1s/R4Eb/5qwHSbxzzE4FMxpHx+zxMoq/LPr9PW7x4UaPL TuVtw7ECq/gLakYSFwMHjS8w1Na+tYIRwrmnAS5yml8POLTFEqxVAL1MY1d/xFcwYnX5 1BaZV1TrIUOqhkhEX+oOhrTJBa5CFSqxLjKpYPfvpRpg0cd9IyIkswWaXe7u3ISDfISl 4+XQ== X-Gm-Message-State: ACgBeo33fQtXdglyYsAEgA+Uuypzrjm3JfVxUm+iYTA0bDTml4yyRRSr pMJaDdFJ22vALrAb5Q5p9C+c18pAA91uDXI2 X-Google-Smtp-Source: AA6agR6EAW2Voixwtr4aBaXw06dS3STY/1+i2y6ykFtj41OmfJFxiA7L6ul+/BGxj5EZs/Scu30rKg== X-Received: by 2002:a05:6a00:4146:b0:537:df7d:d5d2 with SMTP id bv6-20020a056a00414600b00537df7dd5d2mr3545404pfb.31.1662550621076; Wed, 07 Sep 2022 04:37:01 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.11.92]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a000800b001fd77933fb3sm10797230pja.17.2022.09.07.04.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 04:37:00 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Eric Dong , Ray Ni , Rahul Kumar , Debkumar De , Catharine West , Daniel Schaefer , Abner Chang , Leif Lindholm , Andrew Fish , Ard Biesheuvel , Heinrich Schuchardt , Anup Patel , Sunil V L Subject: [RFC PATCH V2 05/19] UefiCpuPkg.dec: Add PCD variable for RISC-V Date: Wed, 7 Sep 2022 17:06:12 +0530 Message-Id: <20220907113626.540065-6-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220907113626.540065-1-sunilvl@ventanamicro.com> References: <20220907113626.540065-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit RISC-V platforms need PCD variable to indicate the mtimer frequency which will be consumed by CpuDxe and TimerLib. Signed-off-by: Sunil V L --- UefiCpuPkg/UefiCpuPkg.dec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 718323d9042c..5e94bde5fea9 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -350,6 +350,9 @@ [PcdsFixedAtBuild.X64, PcdsPatchableInModule.X64, PcdsDynamic.X64, PcdsDynamicEx # @Prompt Access to non-SMRAM memory is restricted to reserved, runtime and ACPI NVS type after SmmReadyToLock. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmRestrictedMemoryAccess|TRUE|BOOLEAN|0x3213210F +[PcdsFixedAtBuild.RISCV64] + gUefiCpuPkgTokenSpaceGuid.PcdRiscVTimerFrequencyInHz|0|UINT32|0x50000000 + [PcdsDynamic, PcdsDynamicEx] ## Contains the pointer to a CPU S3 data buffer of structure ACPI_CPU_DATA. # @Prompt The pointer to a CPU S3 data buffer. -- 2.25.1