From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6E1E8817E2 for ; Mon, 9 Jan 2017 00:12:53 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP; 09 Jan 2017 00:12:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,339,1477983600"; d="scan'208";a="920396484" Received: from zwei4-mobl.ccr.corp.intel.com ([10.239.198.21]) by orsmga003.jf.intel.com with ESMTP; 09 Jan 2017 00:12:40 -0800 From: zwei4 To: edk2-devel@lists.01.org Cc: Mike Wu , Benjamin You , Mang Guo , Shifei Lu Date: Mon, 9 Jan 2017 16:12:37 +0800 Message-Id: <20170109081237.8052-1-david.wei@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [Patch][edk2-platforms/devel-MinnowBoard3] Remove platform policy X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2017 08:12:53 -0000 Remove silicon platform policy which is not used by any silicon code. Signed-off-by: zwei4 Cc: Mike Wu Cc: Benjamin You Cc: Mang Guo Cc: Shifei Lu --- .../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 #include #include -#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.
- - 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.
- - 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 -#include -#include -#include -#include -#include - -// -// 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.
- - 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 -#include - -/** - 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.
- - 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 -#include -#include -#include -#include - -#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.
- - 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.
-# -# 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.
- - 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 -#include -#include -#include -#include -#include -#include - -#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.
- - 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