]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtNorFlashDxe: clone ArmPlatformPkg's NOR flash driver
authorArd Biesheuvel <ardb@kernel.org>
Mon, 24 Oct 2022 14:41:43 +0000 (16:41 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 27 Oct 2022 16:52:01 +0000 (16:52 +0000)
commitc1ff81f7990be88c9e98ca3be65178057d8aae77
treecda07971a3bc9369fe0e915901dc01fdd42edec1
parent16bf588b604a9f190accb71ada715b81756c94e2
OvmfPkg/VirtNorFlashDxe: clone ArmPlatformPkg's NOR flash driver

QEMU's mach-virt is loosely based on ARM Versatile Express, and inherits
its NOR flash driver, which is now being used on other QEMU emulated
architectures as well.

In order to permit ourselves the freedom to optimize this driver for
use under KVM emulation, let's clone it into OvmfPkg, so we have a
version we can hack without the risk of regressing bare metal platforms.

The cloned version is mostly identical to the original, but it depends
on the newly added VirtNorFlashPlatformLib library class instead of the
original one from ArmPlatformPkg. Beyond that, only cosmetic changes
related to #include order etc were made.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
OvmfPkg/VirtNorFlashDxe/VirtNorFlash.c [new file with mode: 0644]
OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h [new file with mode: 0644]
OvmfPkg/VirtNorFlashDxe/VirtNorFlashBlockIoDxe.c [new file with mode: 0644]
OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c [new file with mode: 0644]
OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf [new file with mode: 0644]
OvmfPkg/VirtNorFlashDxe/VirtNorFlashFvb.c [new file with mode: 0644]