public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe
@ 2022-10-19 10:35 Ard Biesheuvel
  2022-10-19 10:35 ` [PATCH edk2-platforms 1/4] Platform/ARM/BootMonFs: drop spurious dependency on ArmPlatformPkg Ard Biesheuvel
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Ard Biesheuvel @ 2022-10-19 10:35 UTC (permalink / raw)
  To: devel; +Cc: Ard Biesheuvel, Leif Lindholm, Thomas Abraham, Sami Mujawar

NorFlashDxe in ArmPlatformPkg is used in two different ways:
- by emulated QEMU based platforms that use its NOR flash emulation
  which is based on versatile express
- by physical ARM platforms under Platform/ARM in edk2-platforms.

In order to improve support for the former use case, let's first split
off the latter and give them their own version of the driver.

Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Thomas Abraham <thomas.abraham@arm.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>

Ard Biesheuvel (4):
  Platform/ARM/BootMonFs: drop spurious dependency on ArmPlatformPkg
  Platform/ARM: create local definition of NorFlashPlatformLib
  Platform/ARM: clone NorFlashDxe from ArmPlatformPkg
  Platform/ARM: switch to local version of NorFlashDxe drivers

 Platform/ARM/ARM.dec                                                |   5 +
 Platform/ARM/SgiPkg/SgiPlatform.dsc.inc                             |   2 +-
 Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc                           |   2 +-
 Platform/ARM/JunoPkg/ArmJuno.dsc                                    |   2 +-
 Platform/ARM/VExpressPkg/ArmVExpress-CTA15-A7.dsc                   |   2 +-
 Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc                |   2 +-
 Platform/ARM/JunoPkg/ArmJuno.fdf                                    |   2 +-
 Platform/ARM/SgiPkg/PlatformStandaloneMm.fdf                        |   2 +-
 Platform/ARM/SgiPkg/SgiPlatform.fdf                                 |   2 +-
 Platform/ARM/VExpressPkg/ArmVExpress-CTA15-A7.fdf                   |   2 +-
 Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.fdf                |   2 +-
 Platform/ARM/Drivers/BootMonFs/BootMonFs.inf                        |   1 -
 Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf                    |  71 ++
 Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf           |  66 ++
 Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf    |   2 +-
 Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf             |   2 +-
 Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf |   2 +-
 Platform/ARM/Drivers/NorFlashDxe/NorFlash.h                         | 422 +++++++++
 Platform/ARM/Include/Library/NorFlashPlatformLib.h                  |  30 +
 Platform/ARM/Drivers/BootMonFs/BootMonFsImages.c                    |   1 -
 Platform/ARM/Drivers/NorFlashDxe/NorFlash.c                         | 991 ++++++++++++++++++++
 Platform/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c               | 123 +++
 Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.c                      | 506 ++++++++++
 Platform/ARM/Drivers/NorFlashDxe/NorFlashFvb.c                      | 777 +++++++++++++++
 Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c             | 383 ++++++++
 25 files changed, 3387 insertions(+), 15 deletions(-)
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlash.h
 create mode 100644 Platform/ARM/Include/Library/NorFlashPlatformLib.h
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlash.c
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.c
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlashFvb.c
 create mode 100644 Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c

-- 
2.35.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-10-19 15:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19 10:35 [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe Ard Biesheuvel
2022-10-19 10:35 ` [PATCH edk2-platforms 1/4] Platform/ARM/BootMonFs: drop spurious dependency on ArmPlatformPkg Ard Biesheuvel
2022-10-19 12:46   ` Sami Mujawar
2022-10-19 10:35 ` [PATCH edk2-platforms 2/4] Platform/ARM: create local definition of NorFlashPlatformLib Ard Biesheuvel
2022-10-19 12:51   ` [edk2-devel] " Sunil V L
2022-10-19 12:52   ` Sami Mujawar
2022-10-19 12:56     ` [edk2-devel] " Ard Biesheuvel
2022-10-19 13:26       ` Sunil V L
2022-10-19 10:35 ` [PATCH edk2-platforms 3/4] Platform/ARM: clone NorFlashDxe from ArmPlatformPkg Ard Biesheuvel
2022-10-19 12:52   ` Sami Mujawar
2022-10-19 10:35 ` [PATCH edk2-platforms 4/4] Platform/ARM: switch to local version of NorFlashDxe drivers Ard Biesheuvel
2022-10-19 12:53   ` Sami Mujawar
2022-10-19 15:12 ` [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox