diff options
author | Thomas Abraham <thomas.abraham@arm.com> | 2019-10-22 13:06:45 +0530 |
---|---|---|
committer | Thomas Abraham <thomas.abraham@arm.com> | 2020-04-15 21:22:49 +0530 |
commit | 286ccbb6275636cdd071a02539b155fe5eb72cc9 (patch) | |
tree | 30db561a21e02bb75c5297421c4068a556218d72 | |
parent | f48b77a71d14a642a5d60e6a74c1bfe36088eee4 (diff) |
SgiPkg/SgiPlatform: add a new Pcd to inidicate support for RASRD-INFRA-2020.04.16
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 <thomas.abraham@arm.com>
-rw-r--r-- | Platform/ARM/SgiPkg/SgiPlatform.dec | 1 | ||||
-rw-r--r-- | Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 7 |
2 files changed, 8 insertions, 0 deletions
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
|