From 327e14208451f1f97932b3e9e8a44fcc1c9ea8f8 Mon Sep 17 00:00:00 2001 From: Leif Lindholm Date: Thu, 8 Feb 2018 19:21:23 +0000 Subject: Platform/(AMD|LeMaker|SoftIron), Silicon/AMD: drop unused PcdCacheEnabled PcdCacheEnabled was never useful for these platforms, but they copied it over from other platforms used as templates. Delete it here to keep the platforms building once the Pcd is removed from EmbeddedPkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm Reviewed-by: Ard Biesheuvel --- Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf | 3 --- Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf | 3 --- Silicon/AMD/Styx/Library/AmdStyxLib/StyxMem.c | 6 +----- 3 files changed, 1 insertion(+), 11 deletions(-) (limited to 'Silicon') diff --git a/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf b/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf index 6b7481ec6d..3a38f294eb 100644 --- a/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf +++ b/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf @@ -53,9 +53,6 @@ [Ppis] gArmMpCoreInfoPpiGuid -[FeaturePcd] - gEmbeddedTokenSpaceGuid.PcdCacheEnable - [Pcd] gArmTokenSpaceGuid.PcdSystemMemoryBase gArmTokenSpaceGuid.PcdSystemMemorySize diff --git a/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf b/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf index b313d4baad..b24ffd469a 100644 --- a/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf +++ b/Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf @@ -49,9 +49,6 @@ [Guids] gAmdStyxMpCoreInfoGuid ## CONSUMER -[FeaturePcd] - gEmbeddedTokenSpaceGuid.PcdCacheEnable - [Ppis] gArmMpCoreInfoPpiGuid diff --git a/Silicon/AMD/Styx/Library/AmdStyxLib/StyxMem.c b/Silicon/AMD/Styx/Library/AmdStyxLib/StyxMem.c index 3b82132d08..479a40627d 100644 --- a/Silicon/AMD/Styx/Library/AmdStyxLib/StyxMem.c +++ b/Silicon/AMD/Styx/Library/AmdStyxLib/StyxMem.c @@ -78,11 +78,7 @@ ArmPlatformGetVirtualMemoryMap ( return; } - if (FeaturePcdGet(PcdCacheEnable) == TRUE) { - CacheAttributes = DDR_ATTRIBUTES_CACHED; - } else { - CacheAttributes = DDR_ATTRIBUTES_UNCACHED; - } + CacheAttributes = DDR_ATTRIBUTES_CACHED; DEBUG ((EFI_D_ERROR, " Memory Map\n------------------------------------------------------------------------\n")); DEBUG ((EFI_D_ERROR, "Description : START - END [ SIZE ] { ATTR }\n")); -- cgit v1.2.3