]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg: Add Kvmtool NOR flash lib
authorSami Mujawar <sami.mujawar@arm.com>
Fri, 2 Oct 2020 21:14:00 +0000 (22:14 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 16 Oct 2020 17:21:04 +0000 (17:21 +0000)
commit69f8ef04a8c30dee5775ea1e23a9f4edc7c0e41d
tree449b0779e500019e6927d1545200226b42671fbf
parent4c5e875ec140b2a01099a8b37ca1a3ca43f57201
ArmVirtPkg: Add Kvmtool NOR flash lib

Kvmtool places the base address of the CFI flash in
the device tree it passes to UEFI. This library
parses the kvmtool device tree to read the CFI base
address and initialise the PCDs use by the NOR flash
driver and the variable storage.

UEFI takes ownership of the CFI flash hardware, and
exposes its functionality through the UEFI Runtime
Variable Service. Therefore, disable the device tree
node for the CFI flash used for storing the UEFI
variables, to prevent the OS from attaching its device
driver as well.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtool.c [new file with mode: 0644]
ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf [new file with mode: 0644]