public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH v1 0/6] SPI Driver Stack
@ 2024-05-01 19:05 Chesley, Brit via groups.io
  2024-05-01 19:05 ` [edk2-devel] [PATCH v1 1/6] MdePkg/SpiConfiguration: Correct the definition spelling Chesley, Brit via groups.io
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Chesley, Brit via groups.io @ 2024-05-01 19:05 UTC (permalink / raw)
  To: devel; +Cc: Liming Gao, Ray Ni, Abner Chang, Abdul Lateef Attar

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]
-=-=-=-=-=-=-=-=-=-=-=-



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

end of thread, other threads:[~2024-05-07  2:51 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 19:05 [edk2-devel] [PATCH v1 0/6] SPI Driver Stack Chesley, Brit via groups.io
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

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