mbox series

[edk2,0/2] ArmPlatformPkg, ArmVirtPkg: discover NOR flash banks from DTB

Message ID 20181117004524.31851-1-ard.biesheuvel@linaro.org
Headers show
Series ArmPlatformPkg, ArmVirtPkg: discover NOR flash banks from DTB | expand

Message

Ard Biesheuvel Nov. 17, 2018, 12:45 a.m. UTC
This series fixes an issue reported by Hongbo and Philippe, where
ArmVirtQemuKernel will crash on an attempt to access flash bank #0,
which is secure-only when running QEMU with support for EL3.

So let's switch to discovering the NOR flash banks from the device tree
instead. This requires some preparatory changes in the NOR flash driver
to avoid having to invent GUIDs on the fly.

Ard Biesheuvel (2):
  ArmPlatformPkg/NorFlashDxe: use one GUID plus index to identify flash
    banks
  ArmVirtPkg/NorFlashQemuLib: discover NOR flash banks dynamically

 .../Drivers/NorFlashDxe/NorFlashDxe.c         | 15 ++--
 .../Drivers/NorFlashDxe/NorFlashDxe.h         |  3 +
 .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 84 ++++++++++++++-----
 .../NorFlashQemuLib/NorFlashQemuLib.inf       | 12 +++
 4 files changed, 87 insertions(+), 27 deletions(-)

-- 
2.17.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel