* [Patch][edk2-platforms/devel-MinnowBoard3] Remove platform policy
@ 2017-01-09 8:12 zwei4
0 siblings, 0 replies; only message in thread
From: zwei4 @ 2017-01-09 8:12 UTC (permalink / raw)
To: edk2-devel; +Cc: Mike Wu, Benjamin You, Mang Guo, Shifei Lu
Remove silicon platform policy which is not used by any silicon code.
Signed-off-by: zwei4 <david.wei@intel.com>
Cc: Mike Wu <mike.wu@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Mang Guo <mang.guo@intel.com>
Cc: Shifei Lu <shifeix.a.lu@intel.com>
---
.../Library/PeiPolicyInitLib/PeiPolicyInit.h | 1 -
.../Library/PeiPolicyInitLib/PeiPolicyInitLib.inf | 2 -
.../Library/PeiPolicyInitLib/PeiSiPolicyInit.c | 60 ---------
.../Library/PeiPolicyInitLib/PeiSiPolicyInit.h | 47 -------
.../PeiPolicyUpdateLib/PeiPolicyUpdateLib.inf | 1 -
.../Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.c | 65 ---------
.../Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.h | 26 ----
.../PlatformPreMemPei/PlatformInitPreMem.c | 45 -------
.../PlatformPreMemPei/PlatformPreMemPei.inf | 1 -
.../PlatformDsc/LibraryClasses.IA32.PEI.dsc | 2 -
.../Library/PeiSiPolicyLib/PeiSiPolicyLib.c | 148 ---------------------
.../Library/PeiSiPolicyLib/PeiSiPolicyLib.inf | 40 ------
.../Library/PeiSiPolicyLib/PeiSiPolicyLibrary.h | 37 ------
.../Library/PeiSiPolicyLib/SiPrintPolicy.c | 44 ------
14 files changed, 519 deletions(-)
delete mode 100644 Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.c
delete mode 100644 Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.h
delete mode 100644 Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.c
delete mode 100644 Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.h
delete mode 100644 Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.c
delete mode 100644 Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.inf
delete mode 100644 Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLibrary.h
delete mode 100644 Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/SiPrintPolicy.c
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInit.h b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInit.h
index 37661ece0..c4bdfb9a0 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInit.h
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInit.h
@@ -19,7 +19,6 @@
#include <PiPei.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
-#include "PeiSiPolicyInit.h"
#include "PeiCpuPolicyInit.h"
#endif
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInitLib.inf b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInitLib.inf
index 319684445..93a10a033 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInitLib.inf
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiPolicyInitLib.inf
@@ -43,8 +43,6 @@
PeiPolicyInit.h
PeiCpuPolicyInit.c
PeiCpuPolicyInit.h
- PeiSiPolicyInit.c
- PeiSiPolicyInit.h
[Ppis]
gScPcieDeviceTablePpiGuid
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.c b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.c
deleted file mode 100644
index dac17f128..000000000
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/** @file
- This file is SampleCode for Intel Silicon PEI Policy initialzation.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include "PeiSiPolicyInit.h"
-
-/**
- This function performs Silicon Policy initialzation.
-
- @param[in] FirmwareConfiguration It uses to skip specific policy init that depends
- on the 'FirmwareConfiguration' varaible.
-
- @retval EFI_SUCCESS The PPI is installed and initialized.
- @retval EFI ERRORS The PPI is not successfully installed.
- @retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver
-
-**/
-EFI_STATUS
-EFIAPI
-PeiSiPolicyInit (
- IN UINT8 FirmwareConfiguration
- )
-{
- EFI_STATUS Status;
- SI_POLICY_PPI *SiPolicyPpi;
-
- //
- // Call SiCreatePolicyDefaults to initialize Silicon Policy structure
- // and get all Intel default policy settings.
- //
- Status = SiCreatePolicyDefaults (&SiPolicyPpi);
- ASSERT_EFI_ERROR (Status);
-
- //
- // Update and override all platform related and customized settings below.
- //
- UpdatePeiSiPolicy (SiPolicyPpi);
-
- //
- // Install SiPolicyPpi.
- // While installed, RC assumes the Policy is ready and finalized. So please
- // update and override any setting before calling this function.
- //
- Status = SiInstallPolicyPpi (SiPolicyPpi);
- ASSERT_EFI_ERROR (Status);
-
- return Status;
-}
-
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.h b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.h
deleted file mode 100644
index 783421fe8..000000000
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyInitLib/PeiSiPolicyInit.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/** @file
- Header file for the PeiSiPolicyInit.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef _SI_POLICY_INIT_PEI_H_
-#define _SI_POLICY_INIT_PEI_H_
-
-#include <Library/DebugLib.h>
-#include <Library/IoLib.h>
-#include <Library/PeiServicesLib.h>
-#include <Library/MemoryAllocationLib.h>
-#include <Library/SiPolicyLib.h>
-#include <Library/PeiSiPolicyUpdateLib.h>
-
-//
-// Functions
-//
-/**
- This function performs Silicon Policy initialzation.
-
- @param[in] FirmwareConfiguration It uses to skip specific policy init that depends
- on the 'FirmwareConfiguration' varaible.
-
- @retval EFI_SUCCESS The PPI is installed and initialized.
- @retval EFI ERRORS The PPI is not successfully installed.
- @retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver.
-
-**/
-EFI_STATUS
-EFIAPI
-PeiSiPolicyInit (
- IN UINT8 FirmwareConfiguration
- );
-
-#endif // _SI_POLICY_INIT_PEI_H_
-
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiPolicyUpdateLib.inf b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiPolicyUpdateLib.inf
index df8293d91..d913506f8 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiPolicyUpdateLib.inf
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiPolicyUpdateLib.inf
@@ -25,7 +25,6 @@
PeiScPolicyUpdate.c
PeiCpuPolicyUpdatePreMem.c
PeiCpuPolicyUpdate.c
- PeiSiPolicyUpdate.c
HdaVerbTables.c
[Packages]
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.c b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.c
deleted file mode 100644
index 4fc943498..000000000
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/** @file
- This file is SampleCode of the library for Intel Silicon PEI
- Platform Policy initialzation.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include "PeiSiPolicyUpdate.h"
-#include <Library/PeiServicesLib.h>
-#include <Ppi/ReadOnlyVariable2.h>
-
-/**
- This function performs Silicon PEI Policy initialzation.
-
- @param[in] SiPolicy The Silicon Policy PPI instance
-
- @retval EFI_SUCCESS The function completed successfully
-
-**/
-EFI_STATUS
-EFIAPI
-UpdatePeiSiPolicy (
- IN OUT SI_POLICY_PPI *SiPolicy
- )
-{
- UINTN VariableSize;
- SYSTEM_CONFIGURATION SystemConfiguration;
- EFI_PEI_READ_ONLY_VARIABLE2_PPI *VariableServices;
- EFI_STATUS Status;
-
- //
- // Update Silicon Policy Config
- //
- //
- // Retrieve Setup variable
- //
- Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariable2PpiGuid, 0, NULL, (VOID **) &VariableServices);
- if (EFI_ERROR (Status)) {
- ASSERT_EFI_ERROR (Status);
- return Status;
- }
-
- VariableSize = sizeof (SYSTEM_CONFIGURATION);
- Status = VariableServices->GetVariable (
- VariableServices,
- PLATFORM_SETUP_VARIABLE_NAME,
- &gEfiSetupVariableGuid,
- NULL,
- &VariableSize,
- &SystemConfiguration
- );
- SiPolicy->OsSelection = 3;
-
- return EFI_SUCCESS;
-}
-
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.h b/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.h
deleted file mode 100644
index 711a5b481..000000000
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiPolicyUpdateLib/PeiSiPolicyUpdate.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/** @file
- Header file for PEI SiPolicyUpdate.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef _PEI_SI_POLICY_UPDATE_H_
-#define _PEI_SI_POLICY_UPDATE_H_
-
-#include <Guid/PlatformInfo.h>
-#include <Guid/SetupVariable.h>
-#include <Library/BaseMemoryLib.h>
-#include <Library/DebugLib.h>
-#include <Ppi/SiPolicyPpi.h>
-
-#endif
-
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c
index cab384764..a002bef04 100644
--- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c
+++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c
@@ -595,49 +595,6 @@ ScBaseInit (
}
-/**
- This function performs Silicon Policy initialization.
-
- @param[in] FirmwareConfiguration It uses to skip specific policy init that depends
- on the 'FirmwareConfiguration' variable.
-
- @retval EFI_SUCCESS The PPI is installed and initialized.
- @retval EFI ERRORS The PPI is not successfully installed.
- @retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver
-
-**/
-EFI_STATUS
-EFIAPI
-PeiSiPolicyInit (
- VOID
- )
-{
- EFI_STATUS Status;
- SI_POLICY_PPI *SiPolicyPpi;
-
- //
- // Call SiCreatePolicyDefaults to initialize Silicon Policy structure
- // and get all Intel default policy settings.
- //
- Status = SiCreatePolicyDefaults (&SiPolicyPpi);
- ASSERT_EFI_ERROR (Status);
-
- //
- // Update and override all platform related and customized settings below.
- //
- UpdatePeiSiPolicy (SiPolicyPpi);
-
- //
- // Install SiPolicyPpi.
- // While installed, RC assumes the Policy is ready and finalized. So please
- // update and override any setting before calling this function.
- //
- Status = SiInstallPolicyPpi (SiPolicyPpi);
- ASSERT_EFI_ERROR (Status);
-
- return Status;
-}
-
/**
This function performs SC PreMem Policy initialization.
@@ -1005,8 +962,6 @@ PlatformInitPreMemEntryPoint (
Status = PeiScPreMemPolicyInit (&StartTimerTicker);
ASSERT_EFI_ERROR (Status);
- Status = PeiSiPolicyInit ();
- ASSERT_EFI_ERROR (Status);
if (!ImageInMemory) {
if (GdtDscriptor.Base >= 0xFE000000) {
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformPreMemPei.inf b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformPreMemPei.inf
index dd8d073db..22e9de212 100644
--- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformPreMemPei.inf
+++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei/PlatformPreMemPei.inf
@@ -90,7 +90,6 @@
MonoStatusCodeLib
SeCUmaLib
BaseIpcLib
- PeiSiPolicyInit
PeiPlatformConfigUpdateLib
GpioLib
CpuPolicyLib
diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc
index 03df74009..2b004019d 100644
--- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc
+++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc
@@ -21,9 +21,7 @@
#
# Common
#
- PeiSiPolicyInit|$(PLATFORM_SI_PACKAGE)/Library/PeiSiPolicyLib/PeiSiPolicyLib.inf
PeiPlatformConfigUpdateLib|$(PLATFORM_PACKAGE_COMMON)/Library/PeiPlatformConfigUpdateLib/PeiPlatformConfigUpdateLib.inf
- SiPolicyLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiPolicyLib/PeiSiPolicyLib.inf
#
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.c
deleted file mode 100644
index 2d66cb538..000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/** @file
- This file is PeiSiPolicyLib library creates default settings of RC
- Policy and installs RC Policy PPI.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include "PeiSiPolicyLibrary.h"
-
-/**
- SiCreatePolicyDefaults creates the default setting of Silicon Policy.
- It allocates and zero out buffer, and fills in the Intel default settings.
-
- @param[out] SiPolicyPpi The pointer to get Silicon Policy PPI instance
-
- @retval EFI_SUCCESS The policy default is initialized.
- @retval EFI_OUT_OF_RESOURCES Insufficient resources to create buffer.
-
-**/
-EFI_STATUS
-EFIAPI
-SiCreatePolicyDefaults (
- OUT SI_POLICY_PPI **SiPolicyPpi
- )
-{
- SI_POLICY_PPI *SiPolicy;
-
- SiPolicy = (SI_POLICY_PPI *) AllocateZeroPool (sizeof (SI_POLICY_PPI));
- if (SiPolicy == NULL) {
- ASSERT (FALSE);
- return EFI_OUT_OF_RESOURCES;
- }
-
- //
- // General intialization
- //
- SiPolicy->Revision = SI_POLICY_REVISION;
-
- //
- // PlatformData configuration
- //
- //
- // FviSmbiosType is the SMBIOS OEM type (0x80 to 0xFF) defined in SMBIOS Type 14 - Group
- // Associations structure - item type. FVI structure uses it as SMBIOS OEM type to provide
- // version information. The default value is type 221.
- //
- SiPolicy->FviSmbiosType = 0xDD;
-
- //
- // Temporary Bus range for silicon initialization.
- //
- SiPolicy->TempPciBusMin = 2;
- SiPolicy->TempPciBusMax = 6;
-
- //
- // Temporary Memory Base Address for PCI devices to be used to initialize MMIO registers.
- // Minimum size is 2MB bytes.
- //
- SiPolicy->TempMemBaseAddr = TEMP_MEM_BASE_ADDRESS;
- SiPolicy->TempMemSize = TEMP_MEM_SIZE;
-
- //
- // Temporary IO Base Address for PCI devices to be used to initialize IO registers.
- // And size of temporary IO space.
- //
- SiPolicy->TempIoBaseAddr = TEMP_IO_BASE_ADDRESS;
- SiPolicy->TempIoSize = TEMP_IO_SIZE;
-
- *SiPolicyPpi = SiPolicy;
-
- return EFI_SUCCESS;
-}
-
-
-/**
- SiInstallPolicyPpi installs SiPolicyPpi.
- While installed, RC assumes the Policy is ready and finalized. So please update and override
- any setting before calling this function.
-
- @param[in] SiPolicyPpi The pointer to Silicon Policy PPI instance.
-
- @retval EFI_SUCCESS The policy is installed.
- @retval EFI_OUT_OF_RESOURCES Insufficient resources to create buffer.
-
-**/
-EFI_STATUS
-EFIAPI
-SiInstallPolicyPpi (
- IN SI_POLICY_PPI *SiPolicyPpi
- )
-{
- EFI_STATUS Status;
- EFI_PEI_PPI_DESCRIPTOR *SiPolicyPpiDesc;
- EFI_PEI_PPI_DESCRIPTOR *OldSiPolicyPpiDesc;
-
- SiPolicyPpiDesc = (EFI_PEI_PPI_DESCRIPTOR *) AllocateZeroPool (sizeof (EFI_PEI_PPI_DESCRIPTOR));
- if (SiPolicyPpiDesc == NULL) {
- ASSERT (FALSE);
- return EFI_OUT_OF_RESOURCES;
- }
-
- SiPolicyPpiDesc->Flags = EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;
- SiPolicyPpiDesc->Guid = &gSiPolicyPpiGuid;
- SiPolicyPpiDesc->Ppi = SiPolicyPpi;
-
- //
- // Print whole SI_POLICY_PPI and serial out.
- //
- SiPrintPolicyPpi (SiPolicyPpi);
-
- Status = PeiServicesLocatePpi (
- &gSiPolicyPpiGuid,
- 0,
- &OldSiPolicyPpiDesc,
- NULL
- );
- if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_INFO, "Locate Old gSiPolicyPpiGuid fail in Post-Memory\n"));
- Status = PeiServicesInstallPpi (SiPolicyPpiDesc);
- if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "Install gSiPolicyPpiGuid fail in Post-Memory\n"));
- }
- ASSERT_EFI_ERROR (Status);
- } else {
- //
- // ReInstall Sc Spi PPI
- //
- DEBUG ((DEBUG_INFO, "Re-Install gSiPolicyPpiGuid in Post-Memory, OldSiPolicyPpiDesc is %x, New is %x\n", OldSiPolicyPpiDesc, SiPolicyPpiDesc));
- Status = PeiServicesReInstallPpi (OldSiPolicyPpiDesc, SiPolicyPpiDesc);
- if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "Re-Install gSiPolicyPpiGuid fail in Post-Memory\n"));
- }
- ASSERT_EFI_ERROR (Status);
- }
- ASSERT_EFI_ERROR (Status);
-
- return Status;
-}
-
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.inf b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.inf
deleted file mode 100644
index 365084333..000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLib.inf
+++ /dev/null
@@ -1,40 +0,0 @@
-## @file
-# PeiSiPolicyLib library.
-#
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-#
-# This program and the accompanying materials
-# are licensed and made available under the terms and conditions of the BSD License
-# which accompanies this distribution. The full text of the license may be found at
-# http://opensource.org/licenses/bsd-license.php.
-#
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#
-##
-
-[Defines]
- INF_VERSION = 0x00010005
- BASE_NAME = PeiSiPolicyLib
- FILE_GUID = DF39567A-30C3-4913-8A8B-D4585B74E4E0
- MODULE_TYPE = PEIM
- VERSION_STRING = 1.0
- LIBRARY_CLASS = PeiSiPolicyLib
-
-[Sources]
- PeiSiPolicyLib.c
- SiPrintPolicy.c
-
-[Packages]
- MdePkg/MdePkg.dec
- BroxtonSiPkg/BroxtonSiPkg.dec
-
-[LibraryClasses]
- DebugLib
- IoLib
- PeiServicesLib
- BaseMemoryLib
- MemoryAllocationLib
-
-[Ppis]
- gSiPolicyPpiGuid ## PRODUCES
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLibrary.h b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLibrary.h
deleted file mode 100644
index af9861c42..000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/PeiSiPolicyLibrary.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/** @file
- Header file for the PeiSiPolicyLib library.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef _PEI_SI_POLICY_LIBRARY_H_
-#define _PEI_SI_POLICY_LIBRARY_H_
-
-#include <Library/DebugLib.h>
-#include <Library/IoLib.h>
-#include <Library/BaseMemoryLib.h>
-#include <Library/PeiServicesLib.h>
-#include <Library/MemoryAllocationLib.h>
-#include <Ppi/SiPolicyPpi.h>
-#include <Library/SiPolicyLib.h>
-
-#define TEMP_MEM_BASE_ADDRESS 0xFE600000
-#define TEMP_IO_BASE_ADDRESS 0xD000
-
-//
-// IO/MMIO resource limits
-//
-#define TEMP_MEM_SIZE 0x200000
-#define TEMP_IO_SIZE 0x10
-
-#endif // _PEI_SI_POLICY_LIBRARY_H_
-
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/SiPrintPolicy.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/SiPrintPolicy.c
deleted file mode 100644
index f7c747940..000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/PeiSiPolicyLib/SiPrintPolicy.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/** @file
- This file is PeiSiPolicyLib library creates default settings of RC
- Policy and installs RC Policy PPI.
-
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
-
- This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include "PeiSiPolicyLibrary.h"
-
-/**
- Print whole SI_POLICY_PPI and serial out.
-
- @param[in] SiPolicyPpi The RC Policy PPI instance.
-
-**/
-VOID
-EFIAPI
-SiPrintPolicyPpi (
- IN SI_POLICY_PPI *SiPolicyPpi
- )
-{
-#ifdef EFI_DEBUG
- DEBUG ((DEBUG_INFO, "------------------------ Silicon Print Policy Start ------------------------\n"));
- DEBUG ((DEBUG_INFO, " Revision= %x\n", SiPolicyPpi->Revision));
- DEBUG ((DEBUG_INFO, " EcPresent= %x\n", SiPolicyPpi->EcPresent));
- DEBUG ((DEBUG_INFO, " TempPciBusMin= %x\n", SiPolicyPpi->TempPciBusMin));
- DEBUG ((DEBUG_INFO, " TempPciBusMax= %x\n", SiPolicyPpi->TempPciBusMax));
- DEBUG ((DEBUG_INFO, " TempMemBaseAddr= %x\n", SiPolicyPpi->TempMemBaseAddr));
- DEBUG ((DEBUG_INFO, " TempMemSize= %x\n", SiPolicyPpi->TempMemSize));
- DEBUG ((DEBUG_INFO, " TempIoBaseAddr= %x\n", SiPolicyPpi->TempIoBaseAddr));
- DEBUG ((DEBUG_INFO, " TempIoSize= %x\n", SiPolicyPpi->TempIoSize));
- DEBUG ((DEBUG_INFO, "------------------------ Silicon Print Policy End --------------------------\n"));
-#endif // EFI_DEBUG
-}
-
--
2.11.0.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-09 8:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09 8:12 [Patch][edk2-platforms/devel-MinnowBoard3] Remove platform policy zwei4
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox