diff options
author | Ma, Maurice <maurice.ma@intel.com> | 2015-04-29 03:50:20 +0000 |
---|---|---|
committer | jyao1 <jyao1@Edk2> | 2015-04-29 03:50:20 +0000 |
commit | 5c7c41f81d4b89a90dadc01b3c3f4481251852a2 (patch) | |
tree | 1a21c1d1a25fadd84159f4d6361246af9d389419 /IntelFspWrapperPkg/FspInitPei | |
parent | 3b17b2458726bf7e2cf640d29ebe14f8af587905 (diff) | |
download | edk2-platforms-5c7c41f81d4b89a90dadc01b3c3f4481251852a2.tar.xz |
Add dual FSP binaries support.
There are two FSP images at different locations in a flash (one factory version is read only and other in updatable version)
TempRamInit, FspMemoryInit and TempRamExit are executed from factory version and FspSiliconInit/NotifyPhase will be executed from updatable version.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17249 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFspWrapperPkg/FspInitPei')
-rw-r--r-- | IntelFspWrapperPkg/FspInitPei/FspInitPei.inf | 1 | ||||
-rw-r--r-- | IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPei.inf b/IntelFspWrapperPkg/FspInitPei/FspInitPei.inf index 97e88138bd..cde101b907 100644 --- a/IntelFspWrapperPkg/FspInitPei/FspInitPei.inf +++ b/IntelFspWrapperPkg/FspInitPei/FspInitPei.inf @@ -81,6 +81,7 @@ [Pcd]
gFspWrapperTokenSpaceGuid.PcdPeiTemporaryRamStackSize ## CONSUMES
gFspWrapperTokenSpaceGuid.PcdFlashFvFspBase ## CONSUMES
+ gFspWrapperTokenSpaceGuid.PcdFlashFvSecondFspBase ## CONSUMES
gFspWrapperTokenSpaceGuid.PcdFlashFvFspSize ## CONSUMES
gFspWrapperTokenSpaceGuid.PcdMaxUpdRegionSize ## CONSUMES
gFspWrapperTokenSpaceGuid.PcdFspApiVersion ## CONSUMES
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c index f11015e993..35a994e960 100644 --- a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c +++ b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c @@ -261,7 +261,11 @@ PeiMemoryDiscoveredNotify ( VOID *FspHobList;
EFI_HOB_GUID_TYPE *GuidHob;
- FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase));
+ if (PcdGet32 (PcdFlashFvSecondFspBase) == 0) {
+ FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase));
+ } else {
+ FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvSecondFspBase));
+ }
if (FspHeader == NULL) {
return EFI_DEVICE_ERROR;
}
|