diff options
author | Chao Li <lichao@loongson.cn> | 2024-05-06 11:13:41 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-04 22:51:09 +0000 |
commit | cac1ea6c2a6eac1772556e718154a00fcb093b88 (patch) | |
tree | 8c2b228db35acfe00fdb65690e0b5419a973deb0 /OvmfPkg/VirtioRngDxe | |
parent | de4cc40b8c1d9044df82e077e72ef6e192ea12e2 (diff) | |
download | edk2-cac1ea6c2a6eac1772556e718154a00fcb093b88.zip edk2-cac1ea6c2a6eac1772556e718154a00fcb093b88.tar.gz edk2-cac1ea6c2a6eac1772556e718154a00fcb093b88.tar.bz2 |
OvmfPkg: Add no hardcode version of FdtNorFlashQemuLib
This library is copied from ArmVirtPkg, in the Arm version, the value of
PcdFlashNvStorageVariableBase, PcdFlashNvStorageFtwWorkingBase and
PcdFlashNvStorageFtwSpareBase are hardcoded in INC file.
This version will calculate them from FDT resource and using the set PCD
to store when the NorFlashInitialise is called. By default, the first
available flash(not used for storage UEFI code) as NV variable storage
medium.
In this way, UEFI can better handle the change of flash base address,
which is suitable for different cpu architecture board implementation.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4770
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Chao Li <lichao@loongson.cn>
Co-authored-by: Xianglai Li <lixianglai@loongson.cn>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg/VirtioRngDxe')
0 files changed, 0 insertions, 0 deletions