From 286ccbb6275636cdd071a02539b155fe5eb72cc9 Mon Sep 17 00:00:00 2001 From: Thomas Abraham Date: Tue, 22 Oct 2019 13:06:45 +0530 Subject: SgiPkg/SgiPlatform: add a new Pcd to inidicate support for RAS Platforms that support RAS can indicate support for it by setting the new 'PcdRasSupported' Pcd to true. By default, this Pcd is set to false. Change-Id: I94c9e9d8c35d97e79330ca8393d68a6d770ae9f6 Signed-off-by: Thomas Abraham --- Platform/ARM/SgiPkg/SgiPlatform.dec | 1 + Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dec b/Platform/ARM/SgiPkg/SgiPlatform.dec index 28d738f9..ed3064fc 100644 --- a/Platform/ARM/SgiPkg/SgiPlatform.dec +++ b/Platform/ARM/SgiPkg/SgiPlatform.dec @@ -31,6 +31,7 @@ [PcdsFeatureFlag.common] gArmSgiTokenSpaceGuid.PcdVirtioBlkSupported|FALSE|BOOLEAN|0x00000001 gArmSgiTokenSpaceGuid.PcdVirtioNetSupported|FALSE|BOOLEAN|0x00000010 + gArmSgiTokenSpaceGuid.PcdRasSupported|FALSE|BOOLEAN|0x0000000B [PcdsFixedAtBuild] gArmSgiTokenSpaceGuid.PcdDramBlock2Base|0|UINT64|0x00000002 diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc index 8167957d..c4b6a507 100644 --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc @@ -180,6 +180,9 @@ gArmSgiTokenSpaceGuid.PcdVirtioNetSize|0x10000 gArmSgiTokenSpaceGuid.PcdVirtioNetInterrupt|204 +!if $(EDK2_ENABLE_RAS) == TRUE + gArmSgiTokenSpaceGuid.PcdRasSupported|TRUE +!endif # # Set the base address and size of the buffer used # for communication between the Normal world edk2 @@ -284,7 +287,11 @@ # # platform driver # +!if $(EDK2_ENABLE_RAS) == TRUE + Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxeMm.inf +!else Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.inf +!endif # # FAT filesystem + GPT/MBR partitioning -- cgit v1.2.3