audk/ArmPlatformPkg
Ard Biesheuvel 4f214830ce ArmPlatformPkg/NorFlashDxe: use correct PCD accessors
Commit 8015f3f6d4 ("ArmPlatformPkg: Enable support for flash in
64-bit address space") updated the NorFlash DXE and StMM drivers to
take alternate PCDs into account when discovering the base of the
NOR flash regions.

This introduced a disparity between the declarations of the PCD references
in the .INF files, which permits the use of dynamic PCDs, and the code
itself, which now uses FixedPcdGet() accessors. On platforms that actually
use dynamic PCDs, this results in a build error.

So let's clean this up:
- for the DXE version, use the generic PcdGet() accessors, so dynamic PCDs
  are permitted
- for the standalone MM version, redeclare the PCDs as [FixedPcd] in the
  .INF description, and switch to the FixedPcdGet() accessors.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
2021-01-18 11:19:45 +00:00
..
Drivers ArmPlatformPkg/NorFlashDxe: use correct PCD accessors 2021-01-18 11:19:45 +00:00
Include/Library ArmPlatformPkg: Fix Ecc error 8005 2021-01-04 17:47:29 +00:00
Library ArmPlatformPkg/PL031RealTimeClockLib: cast EfiTimeToEpoch() val. to UINT32 2020-12-21 15:55:16 +00:00
MemoryInitPei ArmPlatformPkg: Fix various typos 2019-07-04 12:20:52 +01:00
PlatformPei ArmPlatformPkg: Fix various typos 2019-07-04 12:20:52 +01:00
PrePeiCore ArmPlatformPkg/PrePeiCore: replace set/way cache ops with by-VA ones 2020-03-04 17:42:43 +00:00
PrePi ArmPlatformPkg: Fix cspell reported spelling/wording 2020-12-09 15:32:12 +00:00
Scripts ArmPlatformPkg: convert LFs to CRLF, expand hard TABs 2020-03-04 12:22:07 +00:00
ArmPlatformPkg.dec ArmPlatformPkg: remove PL180 SD controller driver 2020-05-05 15:37:20 +00:00
ArmPlatformPkg.dsc ArmPlatformPkg/NorFlashDxe: implement standalone MM version 2021-01-04 18:34:16 +00:00