UefiPayloadPkg: Add SpiFlashLib
This is a common SPI Flash library used for the Intel platform that supports SPI hardware sequence. This library provides actual SPI flash operation via Intel PCH SPI controller. Signed-off-by: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Benjamin You <benjamin.you@intel.com>
This commit is contained in:
48
UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
Normal file
48
UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
Normal file
@@ -0,0 +1,48 @@
|
||||
## @file
|
||||
# Library instance for SPI flash library using SPI hardware sequence
|
||||
#
|
||||
# Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = SpiFlashLib
|
||||
FILE_GUID = 6F96AFCB-DE89-4ca1-A63F-8703EE8FDE50
|
||||
MODULE_TYPE = BASE
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = SpiFlashLib
|
||||
CONSTRUCTOR = SpiConstructor
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
RegsSpi.h
|
||||
SpiCommon.h
|
||||
PchSpi.c
|
||||
SpiFlashLib.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
UefiPayloadPkg/UefiPayloadPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
PcdLib
|
||||
IoLib
|
||||
PciLib
|
||||
HobLib
|
||||
TimerLib
|
||||
BaseLib
|
||||
|
||||
[Guids]
|
||||
gSpiFlashInfoGuid
|
||||
|
||||
[Pcd]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
|
Reference in New Issue
Block a user