[edk2-devel] [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe

Ard Biesheuvel posted 4 patches 1 year, 6 months ago
Failed in applying to current master (apply log)
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
[edk2-devel] [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe
Posted by Ard Biesheuvel 1 year, 6 months ago
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



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#95382): https://edk2.groups.io/g/devel/message/95382
Mute This Topic: https://groups.io/mt/94427741/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe
Posted by Ard Biesheuvel 1 year, 6 months ago
On Wed, 19 Oct 2022 at 12:36, Ard Biesheuvel <ardb@kernel.org> wrote:
>
> 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
>

Series pushed as 85280b124e5a..0286233f3bfa

Thanks all


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#95410): https://edk2.groups.io/g/devel/message/95410
Mute This Topic: https://groups.io/mt/94427741/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-