audk/ArmPlatformPkg
Sami Mujawar d3095addf3 ArmPlatformPkg: Dynamic flash variable base
Some virtual machine managers like kvmtool can relocate
the devices in the system memory map. The information
about the devices location in memory is described in the
device tree. Therefore, the CFI memory region and the
associated Non volatile storage variables need to be
adjusted accordingly.

To support such use cases the non-volatile storage
variable base PCD PcdFlashNvStorageVariableBase has
been defined as a dynamic PCD.

The NOR flash driver was using the Flash non-volatile
storage variable base PCD as a fixed PCD, thereby
preventing runtime resolution of the variable base
address.

Therefore update the NOR flash driver to load the
PCD using PcdGet32 instead of FixedPcdGet32.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Ard Biesheuvel <Ard.Biesheuvel@arm.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
2020-10-16 17:21:04 +00:00
..
Drivers ArmPlatformPkg: Dynamic flash variable base 2020-10-16 17:21:04 +00:00
Include/Library ArmPlatformPkg: Fix various typos 2019-07-04 12:20:52 +01:00
Library ArmPlatformPkg/PL011UartLib: Check PID2 if FiFoDepth is zero 2020-07-02 07:11:26 +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/PrePi: replace set/way cache ops with by-VA ones 2020-03-05 21:08:30 +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: remove PL180 SD controller driver 2020-05-05 15:37:20 +00:00