Browse Source

Platform/ARM/SgiPkg: Use chip count constant on rdn1edgex2 platform

Use the PcdChipCount constant to define the maximum number of chips
included in the multi-chip package. In addition to this, remove the
hardcoded value of the chip count in the MADT ACPI table of RD-N1-EdgeX2
platform and replace it with the number of chips specified by
'PcdChipCount'.

Signed-off-by: Aditya Angadi <aditya.angadi@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Aditya Angadi 4 years ago
parent
commit
e8fe2026dd

+ 1 - 1
Platform/ARM/SgiPkg/AcpiTables/RdN1EdgeX2/Madt.aslc

@@ -17,7 +17,7 @@
 #define CORE_CNT   (FixedPcdGet32 (PcdClusterCount) * \
                     FixedPcdGet32 (PcdCoreCount))
 
-#define CHIP_CNT   2
+#define CHIP_CNT   (FixedPcdGet32 (PcdChipCount))
 
 // Multiple APIC Description Table
 #pragma pack (1)

+ 3 - 0
Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc

@@ -41,6 +41,9 @@
   gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x300C0000
   gArmSgiTokenSpaceGuid.PcdGicSize|0x100000
 
+  # Number of chips in the multi-chip package
+  gArmSgiTokenSpaceGuid.PcdChipCount|2
+
 ################################################################################
 #
 # Components Section - list of all EDK II Modules needed by this Platform