public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: devel@edk2.groups.io
Cc: Ard Biesheuvel <ardb@kernel.org>,
	Leif Lindholm <quic_llindhol@quicinc.com>,
	Thomas Abraham <thomas.abraham@arm.com>,
	Sami Mujawar <sami.mujawar@arm.com>
Subject: [PATCH edk2-platforms 0/4] Platform/ARM: clone ArmPlatformPkg's NorFlashDxe
Date: Wed, 19 Oct 2022 12:35:51 +0200	[thread overview]
Message-ID: <20221019103555.493477-1-ardb@kernel.org> (raw)

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


             reply	other threads:[~2022-10-19 10:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 10:35 Ard Biesheuvel [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221019103555.493477-1-ardb@kernel.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox