summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2017-10-24 15:50:34 +0800
committerJiewen Yao <jiewen.yao@intel.com>2017-11-01 21:43:57 +0800
commit2a5cd6146f11b39fd23e234cbb8d6bb933b69b0a (patch)
treeca878d72adcbd7f1c7f9c0cc065f3324bbb86080
parent179fe0179cb6aa46569901253f48de3adab15d38 (diff)
downloadedk2-platforms-2a5cd6146f11b39fd23e234cbb8d6bb933b69b0a.tar.xz
Install SiliconInitializedPpi in FspProcessHob to indicate silicon init is done.
Cc: Michael A Kubacki <michael.a.kubacki@intel.com> Cc: Amy Chan <amy.chan@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Amy Chan <amy.chan@intel.com>
-rw-r--r--Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c11
-rw-r--r--Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf1
2 files changed, 12 insertions, 0 deletions
diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c
index 634769bd3e..0333570964 100644
--- a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c
+++ b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c
@@ -632,6 +632,12 @@ DumpFspGraphicsDeviceInfoHob (
}
}
+EFI_PEI_PPI_DESCRIPTOR mSiliconInitializedDesc = {
+ (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
+ &gEdkiiSiliconInitializedPpiGuid,
+ NULL
+};
+
/**
Post FSP-S HOB process (not Memory Resource Descriptor).
@@ -645,6 +651,8 @@ PostFspsHobProcess (
IN VOID *FspHobList
)
{
+ EFI_STATUS Status;
+
ProcessFspHobList (FspHobList);
CheckFspGraphicsDeviceInfoHob ();
@@ -658,5 +666,8 @@ PostFspsHobProcess (
DumpFspMemoryResource ();
DEBUG_CODE_END ();
+ Status = PeiServicesInstallPpi (&mSiliconInitializedDesc);
+ ASSERT_EFI_ERROR (Status);
+
return EFI_SUCCESS;
}
diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf
index f64edd1c96..b77ac8cf0f 100644
--- a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf
+++ b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf
@@ -82,3 +82,4 @@
[Ppis]
gEfiPeiCapsulePpiGuid ## CONSUMES
+ gEdkiiSiliconInitializedPpiGuid ## PRODUCES