diff options
author | Ray Ni <ray.ni@intel.com> | 2019-06-11 16:59:11 +0800 |
---|---|---|
committer | Ray Ni <ray.ni@intel.com> | 2019-06-11 16:59:36 +0800 |
commit | 1a48fda5315433661c2f3039a30aea5916c22267 (patch) | |
tree | 696b6d3fbb955431d415761dbad6810550d245f3 /IntelFspWrapperPkg/FspInitPei/FspInitPei.c | |
parent | e8015f2facfffa31db8a06c1121647f76f1035dc (diff) | |
download | edk2-1a48fda5315433661c2f3039a30aea5916c22267.tar.gz edk2-1a48fda5315433661c2f3039a30aea5916c22267.tar.bz2 edk2-1a48fda5315433661c2f3039a30aea5916c22267.zip |
IntelFspPkg&IntelFspWrapperPkg: Remove them
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1819
Since there are V2 FSP packages (IntelFsp2Pkg, IntelFsp2WrapperPkg),
this patch removes IntelFspPkg, IntelFspWrapperPkg to remove obsolete
code in edk2 repo.
Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'IntelFspWrapperPkg/FspInitPei/FspInitPei.c')
-rw-r--r-- | IntelFspWrapperPkg/FspInitPei/FspInitPei.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPei.c b/IntelFspWrapperPkg/FspInitPei/FspInitPei.c deleted file mode 100644 index 8395f38d67..0000000000 --- a/IntelFspWrapperPkg/FspInitPei/FspInitPei.c +++ /dev/null @@ -1,60 +0,0 @@ -/** @file
- This PEIM initialize FSP.
-
- Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-
-#include "FspInitPei.h"
-
-/**
- This is the entrypoint of PEIM
-
- @param[in] FileHandle Handle of the file being invoked.
- @param[in] PeiServices Describes the list of possible PEI Services.
-
- @retval EFI_SUCCESS if it completed successfully.
-**/
-EFI_STATUS
-EFIAPI
-FspPeiEntryPoint (
- IN EFI_PEI_FILE_HANDLE FileHandle,
- IN CONST EFI_PEI_SERVICES **PeiServices
- )
-{
- FSP_INFO_HEADER *FspHeader;
- UINT8 PcdFspApiVersion;
-
- DEBUG ((DEBUG_INFO, "FspPeiEntryPoint\n"));
- PcdFspApiVersion = 1;
-
- FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase));
- DEBUG ((DEBUG_INFO, "FspHeader - 0x%x\n", FspHeader));
- if (FspHeader == NULL) {
- return EFI_DEVICE_ERROR;
- }
-
- ASSERT (FspHeader->TempRamInitEntryOffset != 0);
- ASSERT (FspHeader->FspInitEntryOffset != 0);
- ASSERT (FspHeader->NotifyPhaseEntryOffset != 0);
-
- if ((PcdGet8 (PcdFspApiVersion) >= 2) &&
- (FspHeader->HeaderRevision >= FSP_HEADER_REVISION_2) &&
- (FspHeader->ApiEntryNum >= 6) ) {
- ASSERT (FspHeader->FspMemoryInitEntryOffset != 0);
- ASSERT (FspHeader->TempRamExitEntryOffset != 0);
- ASSERT (FspHeader->FspSiliconInitEntryOffset != 0);
- PcdFspApiVersion = PcdGet8 (PcdFspApiVersion);
- }
- DEBUG ((DEBUG_INFO, "PcdFspApiVersion - 0x%x\n", PcdFspApiVersion));
-
- if (PcdFspApiVersion == 1) {
- PeiFspInitV1 (FspHeader);
- } else {
- PeiFspInitV2 (FspHeader);
- }
-
- return EFI_SUCCESS;
-}
|