From: "Levi Yun" <yeoreum....@arm.com>

Base FVP can configure cache information via model parameter.
But, there's no way to read model option dynamically in UEFI.
Add PCDs related to cache options which are correspondent to model option for
setting cache information at build time.

The default values are based on linux/arch/arm64/boot/dts/fvp_base_revc.dts

Signed-off-by: Levi Yun <yeoreum....@arm.com>
---
 Platform/ARM/VExpressPkg/ArmVExpressPkg.dec          | 12 ++++++++++++
 Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec 
b/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec
index 
76ba4f7f648507e05b4ec5a24cc28f60c43425a4..d4aa1a17ef2e9fcb56749e1da2086b1d9401d711
 100644
--- a/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec
+++ b/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec
@@ -69,3 +69,15 @@ [PcdsFixedAtBuild.common]
 
   # ISP1761 USB OTG Controller
   gArmVExpressTokenSpaceGuid.PcdIsp1761BaseAddress|0|UINT32|0x00000029
+
+  ## Cache information (see the model option).
+  gArmVExpressTokenSpaceGuid.PcdL1DcacheSize|0x8000|UINT32|0x0000002A
+  gArmVExpressTokenSpaceGuid.PcdL1DcacheWays|2|UINT32|0x0000002B
+  gArmVExpressTokenSpaceGuid.PcdL1DcacheLineSize|64|UINT32|0x0000002C
+  gArmVExpressTokenSpaceGuid.PcdL1IcacheSize|0x8000|UINT32|0x0000002D
+  gArmVExpressTokenSpaceGuid.PcdL1IcacheWays|2|UINT32|0x0000002E
+  gArmVExpressTokenSpaceGuid.PcdL1IcacheLineSize|64|UINT32|0x0000002F
+  gArmVExpressTokenSpaceGuid.PcdL2CacheSize|0x80000|UINT32|0x00000030
+  gArmVExpressTokenSpaceGuid.PcdL2CacheWays|16|UINT32|0x00000031
+  gArmVExpressTokenSpaceGuid.PcdL3CacheSize|0x00|UINT32|0x00000032
+  gArmVExpressTokenSpaceGuid.PcdL3CacheWays|16|UINT32|0x00000033
diff --git a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc 
b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc
index 
f70a4d52ba06f570e017ab5286f06d87193753e5..cffcfde3663d72ac40d73ab8a9b9f7afedf1922a
 100644
--- a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc
+++ b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc
@@ -193,6 +193,10 @@ [PcdsFixedAtBuild.common]
   #
   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
 
+  ## ARM Cores and Clusters
+  gArmPlatformTokenSpaceGuid.PcdCoreCount|4
+  gArmPlatformTokenSpaceGuid.PcdClusterCount|2
+
 
################################################################################
 #
 # Components Section - list of all EDK II Modules needed by this Platform
--
Guid("CE165669-3EF3-493F-B85D-6190EE5B9759")



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119804): https://edk2.groups.io/g/devel/message/119804
Mute This Topic: https://groups.io/mt/107053447/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to