From: "Chesley, Brit via groups.io" <brit.chesley=amd.com@groups.io>
To: <devel@edk2.groups.io>
Cc: Liming Gao <gaoliming@byosoft.com.cn>, Ray Ni <ray.ni@intel.com>,
"Abner Chang" <abner.chang@amd.com>,
Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
Subject: [edk2-devel] [PATCH v1 0/6] SPI Driver Stack
Date: Wed, 1 May 2024 14:05:21 -0500 [thread overview]
Message-ID: <20240501190527.200937-1-brit.chesley@amd.com> (raw)
From: Brit Chesley <brit.chesley@amd.com>
This patchset introduces the SPI driver stack as defined in the Platform
Initialization specification Volume 5 chapter 18 (DXE) and Volume 4 chapter
12 (SMM). The SPI stack decouples the SPI chip details from the SPI
controller and SPI bus configuration details to enable silicon vendors
to write drivers effectively. This patchset also introduces the
SpiHcPlatformLib, which allows for OEMs to handle low level SPI host
controller details while using the generic SPI bus/hc drivers.
https://github.com/BritChesley/edk2/tree/SpiBusStack
In PATCH v1: Fixed CI errors.
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
Abner Chang (1):
MdePkg/SpiConfiguration: Correct the definition spelling
Brit Chesley (5):
MdeModulePkg/Bus/Spi/SpiBus: Adding SpiBus Drivers
MdeModulePkg: Adding SpiBus Drivers
MdeModulePkg:BaseSpiHcPlatformLib: Adding NULL lib instance
MdeModulePkg: SpiHc: SpiHc Drivers
MdeModulePkg: Adding SpiHc Drivers
MdeModulePkg/MdeModulePkg.dec | 5 +
MdeModulePkg/MdeModulePkg.dsc | 6 +
MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.inf | 41 ++
MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.inf | 41 ++
MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.inf | 47 ++
MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.inf | 45 ++
.../BaseSpiHcPlatformLibNull.inf | 33 ++
MdeModulePkg/Bus/Spi/SpiBus/SpiBus.h | 167 +++++++
MdeModulePkg/Bus/Spi/SpiHc/SpiHc.h | 117 +++++
.../Include/Library/SpiHcPlatformLib.h | 148 ++++++
MdePkg/Include/Protocol/SpiConfiguration.h | 4 +-
MdeModulePkg/Bus/Spi/SpiBus/SpiBus.c | 433 ++++++++++++++++++
MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.c | 198 ++++++++
MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.c | 162 +++++++
MdeModulePkg/Bus/Spi/SpiHc/SpiHc.c | 115 +++++
MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.c | 101 ++++
MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.c | 79 ++++
.../BaseSpiHcPlatformLibNull.c | 145 ++++++
MdeModulePkg/Bus/Spi/SpiBus/SpiBus.uni | 10 +
MdeModulePkg/Bus/Spi/SpiHc/SpiHc.uni | 10 +
.../BaseSpiHcPlatformLibNull.uni | 11 +
21 files changed, 1916 insertions(+), 2 deletions(-)
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.inf
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.inf
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.inf
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.inf
create mode 100644 MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHcPlatformLibNull.inf
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBus.h
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHc.h
create mode 100644 MdeModulePkg/Include/Library/SpiHcPlatformLib.h
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBus.c
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.c
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.c
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHc.c
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.c
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.c
create mode 100644 MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHcPlatformLibNull.c
create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBus.uni
create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHc.uni
create mode 100644 MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHcPlatformLibNull.uni
--
2.42.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118473): https://edk2.groups.io/g/devel/message/118473
Mute This Topic: https://groups.io/mt/105849123/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next reply other threads:[~2024-05-01 19:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-01 19:05 Chesley, Brit via groups.io [this message]
2024-05-01 19:05 ` [edk2-devel] [PATCH v1 1/6] MdePkg/SpiConfiguration: Correct the definition spelling Chesley, Brit via groups.io
2024-05-02 4:20 ` Chang, Abner via groups.io
2024-05-01 19:05 ` [edk2-devel] [PATCH v1 2/6] MdeModulePkg/Bus/Spi/SpiBus: Adding SpiBus Drivers Chesley, Brit via groups.io
2024-05-02 4:24 ` Chang, Abner via groups.io
2024-05-01 19:05 ` [edk2-devel] [PATCH v1 3/6] MdeModulePkg: " Chesley, Brit via groups.io
2024-05-02 4:24 ` Chang, Abner via groups.io
2024-05-06 11:08 ` Chang, Abner via groups.io
2024-05-07 2:50 ` [edk2-devel] 回复: " gaoliming via groups.io
2024-05-01 19:05 ` [edk2-devel] [PATCH v1 4/6] MdeModulePkg:BaseSpiHcPlatformLib: Adding NULL lib instance Chesley, Brit via groups.io
2024-05-02 4:25 ` Chang, Abner via groups.io
2024-05-06 11:08 ` Chang, Abner via groups.io
2024-05-07 2:50 ` [edk2-devel] 回复: " gaoliming via groups.io
2024-05-01 19:05 ` [edk2-devel] [PATCH v1 5/6] MdeModulePkg: SpiHc: SpiHc Drivers Chesley, Brit via groups.io
2024-05-02 4:25 ` Chang, Abner via groups.io
2024-05-01 19:05 ` [edk2-devel] [PATCH v1 6/6] MdeModulePkg: Adding " Chesley, Brit via groups.io
2024-05-02 4:25 ` Chang, Abner via groups.io
2024-05-06 11:08 ` Chang, Abner via groups.io
2024-05-07 2:51 ` [edk2-devel] 回复: " gaoliming via groups.io
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=20240501190527.200937-1-brit.chesley@amd.com \
--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