From b92298af8218dd074c231947bc95f2be94af663c Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Mon, 24 Oct 2022 18:41:22 +0200 Subject: ArmVirtPkg/ArmVirtQemu: migrate to OVMF's VirtNorFlashDxe Switch to the virt specific NorFlashDxe driver implementation that was added recently. Signed-off-by: Ard Biesheuvel Reviewed-by: Sunil V L --- ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c | 12 ++++++------ ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ArmVirtPkg/Library') diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c index 2b39f021d0..55bce88bc8 100644 --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include @@ -18,19 +18,19 @@ #define MAX_FLASH_BANKS 4 EFI_STATUS -NorFlashPlatformInitialization ( +VirtNorFlashPlatformInitialization ( VOID ) { return EFI_SUCCESS; } -NOR_FLASH_DESCRIPTION mNorFlashDevices[MAX_FLASH_BANKS]; +STATIC VIRT_NOR_FLASH_DESCRIPTION mNorFlashDevices[MAX_FLASH_BANKS]; EFI_STATUS -NorFlashPlatformGetDevices ( - OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions, - OUT UINT32 *Count +VirtNorFlashPlatformGetDevices ( + OUT VIRT_NOR_FLASH_DESCRIPTION **NorFlashDescriptions, + OUT UINT32 *Count ) { FDT_CLIENT_PROTOCOL *FdtClient; diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf index 4c3683bf5d..a6b5865be9 100644 --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf @@ -14,17 +14,17 @@ FILE_GUID = 339B7829-4C5F-4EFC-B2DD-5050E530DECE MODULE_TYPE = DXE_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = NorFlashPlatformLib + LIBRARY_CLASS = VirtNorFlashPlatformLib [Sources.common] NorFlashQemuLib.c [Packages] MdePkg/MdePkg.dec - ArmPlatformPkg/ArmPlatformPkg.dec ArmPkg/ArmPkg.dec ArmVirtPkg/ArmVirtPkg.dec EmbeddedPkg/EmbeddedPkg.dec + OvmfPkg/OvmfPkg.dec [LibraryClasses] BaseLib -- cgit v1.2.3