MdeModulePkg:BaseSpiHcPlatformLib: Adding NULL lib instance

Adding NULL SpiHcPlatformLib instance. This library is responsible for
handling the low level details of the SPI host controller. Since this is
platform specific this library will be dependent on OEM SPI
implementation. The SPI host controller layer will utilize this library
for SPI bus transactions.

Bugzilla #4753

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>
Signed-off-by: Brit Chesley <brit.chesley@amd.com>
Acked-by: Abner Chang <abner.chang@amd.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Brit Chesley
2024-04-29 15:50:53 -05:00
committed by mergify[bot]
parent 916f495e77
commit 5590cefe93
6 changed files with 344 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
## @file
# NULL library for platform SPI Host controller, which should be provided
# by the OEM.
#
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
[Defines]
INF_VERSION = 1.27
BASE_NAME = BaseSpiHcPlatformLibNull
FILE_GUID = 3C230948-6DF5-4802-8177-967A190579CF
MODULE_TYPE = BASE
VERSION_STRING = 0.1
PI_SPECIFICATION_VERSION = 0x0001000A
LIBRARY_CLASS = SpiHcPlatformLib
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
DevicePathLib
UefiLib
[Sources]
BaseSpiHcPlatformLibNull.c
[Depex]
TRUE
[UserExtensions.TianoCore."ExtraFiles"]
BaseSpiHcPlatformLibNull.uni