Skip to content

Commit

Permalink
(Platform/Silicon)/Hisilicon: drop use of PcdCacheEnabled
Browse files Browse the repository at this point in the history
PcdCacheEnabled was never useful for these platforms, but it was
copied 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 <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
  • Loading branch information
Leif Lindholm committed Feb 9, 2018
1 parent 840b6fb commit ebe0878
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
3 changes: 0 additions & 3 deletions Platform/Hisilicon/HiKey/Library/HiKeyLib/HiKeyLib.inf
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
[Sources.AARCH64]
HiKeyHelper.S

[FeaturePcd]
gEmbeddedTokenSpaceGuid.PcdCacheEnable

[FixedPcd]
gArmTokenSpaceGuid.PcdArmPrimaryCore
gArmTokenSpaceGuid.PcdArmPrimaryCoreMask
Expand Down
6 changes: 1 addition & 5 deletions Platform/Hisilicon/HiKey/Library/HiKeyLib/HiKeyMem.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ ArmPlatformGetVirtualMemoryMap (
return;
}

if (FeaturePcdGet(PcdCacheEnable) == TRUE) {
CacheAttributes = DDR_ATTRIBUTES_CACHED;
} else {
CacheAttributes = DDR_ATTRIBUTES_UNCACHED;
}
CacheAttributes = DDR_ATTRIBUTES_CACHED;

Index = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
[Sources.AARCH64]
AArch64/Helper.S

[FeaturePcd]
gEmbeddedTokenSpaceGuid.PcdCacheEnable

[FixedPcd]
gArmTokenSpaceGuid.PcdSystemMemoryBase
gArmTokenSpaceGuid.PcdSystemMemorySize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ ArmPlatformGetVirtualMemoryMap (
return;
}

if (FeaturePcdGet(PcdCacheEnable) == TRUE) {
CacheAttributes = DDR_ATTRIBUTES_CACHED;
} else {
CacheAttributes = DDR_ATTRIBUTES_UNCACHED;
}
CacheAttributes = DDR_ATTRIBUTES_CACHED;

Index = OemSetVirtualMapDesc(VirtualMemoryTable, CacheAttributes);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
[Sources.AARCH64]
AArch64/Helper.S

[FeaturePcd]
gEmbeddedTokenSpaceGuid.PcdCacheEnable

[FixedPcd]
gArmTokenSpaceGuid.PcdSystemMemoryBase
gArmTokenSpaceGuid.PcdSystemMemorySize
Expand Down

0 comments on commit ebe0878

Please sign in to comment.