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>
This commit is contained in:
Aditya Angadi
2020-05-05 18:32:10 +05:30
committed by Ard Biesheuvel
parent cd9be0f95c
commit e8fe2026dd
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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