From: Brit Chesley <brit.ches...@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 <gaolim...@byosoft.com.cn> Cc: Ray Ni <ray...@intel.com> Cc: Abner Chang <abner.ch...@amd.com> Cc: Abdul Lateef Attar <abdullateef.at...@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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-