summaryrefslogtreecommitdiff
path: root/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include
diff options
context:
space:
mode:
authorzwei4 <david.wei@intel.com>2017-01-06 15:29:52 +0800
committerGuo Mang <mang.guo@intel.com>2017-01-12 17:25:58 +0800
commit35468e2aad64ab8a062d696349220e5581fa2f91 (patch)
tree667222e7d550a43ee7073228fc2c17fb9b33fd19 /Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include
parent9fce90d0a85499f27b91dc45ad598621f9c39638 (diff)
downloadedk2-platforms-35468e2aad64ab8a062d696349220e5581fa2f91.tar.xz
Remove platform policies which are not used.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include')
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Library/PeiSaPolicyLib.h34
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/GraphicsConfig.h57
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/HybridGraphicsConfig.h52
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/IpuConfig.h35
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPolicy.h80
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPreMemConfig.h37
6 files changed, 1 insertions, 294 deletions
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Library/PeiSaPolicyLib.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Library/PeiSaPolicyLib.h
index 3a83ceab1c..c57df9ff72 100644
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Library/PeiSaPolicyLib.h
+++ b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Library/PeiSaPolicyLib.h
@@ -1,7 +1,7 @@
/** @file
Prototype of the PeiSaPolicy library.
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2014 - 2017, 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
@@ -16,27 +16,11 @@
#ifndef _PEI_SA_POLICY_LIB_H_
#define _PEI_SA_POLICY_LIB_H_
-#include <Ppi/SaPolicy.h>
#include <Library/ConfigBlockLib.h>
#include <Library/BaseMemoryLib.h>
#include <SaRegs.h>
-/**
- Creates the Pre Mem Config Blocks for SA Policy.
- It allocates and zero out buffer, and fills in the Intel default settings.
-
- @param[in, out] SiSaPolicyPpi The pointer to get SI/SA Policy PPI instance.
-
- @retval EFI_SUCCESS The policy default is initialized.
- @retval EFI_OUT_OF_RESOURCES Insufficient resources to create buffer.
-
-**/
-EFI_STATUS
-EFIAPI
-SaCreatePreMemConfigBlocks(
- IN OUT SI_SA_POLICY_PPI **SiSaPolicyPpi
- );
/**
Creates the Config Blocks for SA Policy.
@@ -54,22 +38,6 @@ CreateConfigBlocks (
IN OUT SI_SA_POLICY_PPI **SiSaPolicyPpi
);
-/**
- Install PPI SiSaPolicyPpi.
- While installed, RC assumes the Policy is ready and finalized. So please update and override
- any setting before calling this function.
-
- @param[in] SiSaPolicyPpi Pointer of policy structure.
-
- @retval EFI_SUCCESS The policy is installed.
- @retval EFI_OUT_OF_RESOURCES Insufficient resources to create buffer.
-
-**/
-EFI_STATUS
-EFIAPI
-SiSaInstallPolicyPpi (
- IN SI_SA_POLICY_PPI *SiSaPolicyPpi
- );
/**
SaInstallPreMemPolicyPpi installs SaPolicyPpi.
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/GraphicsConfig.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/GraphicsConfig.h
deleted file mode 100644
index 92b49f51f9..0000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/GraphicsConfig.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/** @file
- Policy definition for Internal Graphics Config Block.
-
- Copyright (c) 2010 - 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 _GRAPHICS_CONFIG_H_
-#define _GRAPHICS_CONFIG_H_
-
-#pragma pack(1)
-
-#define GRAPHICS_CONFIG_REVISION 1
-
-extern EFI_GUID gGraphicsConfigGuid;
-
-typedef struct {
- CONFIG_BLOCK_HEADER Header; ///< Offset 0-23 Config Block Header
- UINT32 CdClock : 3;
- UINT32 PeiGraphicsPeimInit: 1; ///< 0- Disable 1- Enable
- UINT32 RsvdBits0 : 4; ///< Reserved for future use
- UINT8 Rsvd1[2]; ///< Offset 14
- UINT32 GttMmAdr; ///< Offset 16 Address of System Agent GTTMMADR: Default is <b>0xDF000000</b>
- VOID* LogoPtr; ///< Offset 20 Address of Logo to be displayed in PEI
- UINT32 LogoSize; ///< Offset 24 Logo Size
- VOID* GraphicsConfigPtr; ///< Offset 28 Address of the Graphics Configuration Table
- UINT32 GmAdr; ///< Offset 32 Address of System Agent GMADR: Default is <b>0xC0000000</b>
- UINT8 PmSupport;
- UINT8 PavpEnable;
- UINT8 EnableRenderStandby;
- UINT8 PavpPr3;
- UINT8 ForceWake;
- UINT8 PavpLock;
- UINT8 GraphicsFreqModify;
- UINT8 GraphicsFreqReq;
- UINT8 GraphicsVideoFreq;
- UINT8 PmLock;
- UINT8 DopClockGating;
- UINT8 UnsolicitedAttackOverride;
- UINT8 WOPCMSupport;
- UINT8 WOPCMSize;
- UINT8 PowerGating;
- UINT8 UnitLevelClockGating;
-} GRAPHICS_CONFIG;
-
-#pragma pack()
-
-#endif // _GRAPHICS_CONFIG_H_
-
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/HybridGraphicsConfig.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/HybridGraphicsConfig.h
deleted file mode 100644
index 69951ff36e..0000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/HybridGraphicsConfig.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/** @file
- Hybrid Graphics policy definitions.
-
- Copyright (c) 2015 - 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 _HYBRID_GRAPHICS_CONFIG_H_
-#define _HYBRID_GRAPHICS_CONFIG_H_
-
-#pragma pack(1)
-
-#define HYBRID_GRAPHICS_CONFIG_REVISION 1
-
-extern EFI_GUID gHybridGraphicsConfigGuid;
-
-//
-// HG GPIO Data Structure
-//
-typedef struct {
- UINT32 CommunityOffset; ///< GPIO Community
- UINT16 PinOffset; ///< GPIO Pin
- BOOLEAN Active; ///< 0=Active Low; 1=Active High
-} HG_GPIO;
-
-//
-// Defines the Switchable Graphics configuration parameters for System Agent.
-//
-typedef struct {
- CONFIG_BLOCK_HEADER Header; ///< Offset 0-23 Config Block Header
- UINT8 RootPortDev; ///< Device number used for SG
- UINT8 RootPortFun; ///< Function number used for SG
- UINT8 HgEnabled; ///< HgEnabled (0=Disabled, 1=Enabled)
- UINT16 HgSubSystemId; ///< Hybrid Graphics Subsystem ID
- UINT16 HgDelayAfterPwrEn; ///< Dgpu Delay after Power enable using Setup option
- UINT16 HgDelayAfterHoldReset; ///< Dgpu Delay after Hold Reset using Setup option
- HG_GPIO HgDgpuHoldRst; ///< This field contain dGPU HLD RESET GPIO value and level information
- HG_GPIO HgDgpuPwrEnable; ///< This field contain dGPU_PWR Enable GPIO value and level information
-} HYBRID_GRAPHICS_CONFIG;
-
-#pragma pack()
-
-#endif // _HYBRID_GRAPHICS_CONFIG_H_
-
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/IpuConfig.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/IpuConfig.h
deleted file mode 100644
index 2662880eb5..0000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/IpuConfig.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/** @file
- IPU policy definitions.
-
- 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 _IPU_CONFIG_H_
-#define _IPU_CONFIG_H_
-
-#pragma pack(1)
-
-#define IPU_CONFIG_REVISION 1
-
-extern EFI_GUID gIpuConfigGuid;
-
-typedef struct {
- CONFIG_BLOCK_HEADER Header; ///< Offset 0-23 Config Block Header
- UINT8 SaIpuEnable; ///< Enable SA IPU device: 0=Disable, <b>1=Enable</b>
- UINT8 IpuAcpiMode; ///< Set IPU ACPI mode: <b>0=AUTO</b>, 1=IGFX Child device, 2=ACPI device
- UINT32 IpuMmAdr; ///< Address of IPU MMIO Bar IpuMmAdr: Default is <b>0x90000000</b>
-} IPU_CONFIG;
-
-#pragma pack()
-
-#endif // _IPU_CONFIG_H_
-
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPolicy.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPolicy.h
deleted file mode 100644
index 96107dcc95..0000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPolicy.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/** @file
- Interface definition details between MRC and platform drivers during PEI phase.
-
- Copyright (c) 2010 - 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 _SA_POLICY_PPI_H_
-#define _SA_POLICY_PPI_H_
-
-#include <Uefi.h>
-#include <ConfigBlock.h>
-#include <Ppi/GraphicsConfig.h>
-#include <Ppi/MemoryConfig.h>
-#include <Ppi/IpuConfig.h>
-#include <Ppi/SaMiscConfig.h>
-#include <Ppi/HybridGraphicsConfig.h>
-#include <Ppi/SaPreMemConfig.h>
-
-//
-// Extern the GUID for protocol users.
-//
-extern EFI_GUID gSiSaPolicyPpiGuid;
-extern EFI_GUID gSiSaPreMemPolicyPpiGuid;
-
-/**
- PPI revision number
- Any backwards compatible changes to this PPI will result in an update in the revision number
- Major changes will require publication of a new PPI
-
-**/
-#define SA_POLICY_PPI_REVISION 1
-
-//
-// Generic definitions for device enabling/disabling used by NC code.
-//
-#define DEVICE_ENABLE 1
-#define DEVICE_DISABLE 0
-
-#ifndef MAX_SOCKETS
-#define MAX_SOCKETS 4
-#endif
-
-#define S3_TIMING_DATA_LEN 9
-#define S3_READ_TRAINING_DATA_LEN 16
-#define S3_WRITE_TRAINING_DATA_LEN 12
-
-#ifndef S3_RESTORE_DATA_LEN
-#define S3_RESTORE_DATA_LEN (S3_TIMING_DATA_LEN + S3_READ_TRAINING_DATA_LEN + S3_WRITE_TRAINING_DATA_LEN)
-#endif // S3_RESTORE_DATA_LEN
-
-#pragma pack(1)
-
-
-/**
- SI SA Policy PPI\n
- Each config block change history should be listed here\n\n
-
-**/
-typedef struct {
- CONFIG_BLOCK_TABLE_HEADER TableHeader; ///< Offset 0-31
-/**
- Individual Config Block Structures are added here in memory as part of AddConfigBlock()
-
-**/
-} SI_SA_POLICY_PPI;
-
-#pragma pack()
-
-#endif // _SA_POLICY_PPI_H_
-
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPreMemConfig.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPreMemConfig.h
deleted file mode 100644
index 04c9951700..0000000000
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/Include/Ppi/SaPreMemConfig.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/** @file
- Policy definition for SA Pre-Mem Config Block.
-
- Copyright (c) 2010 - 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 _SA_PRE_MEM_CONFIG_H_
-#define _SA_PRE_MEM_CONFIG_H_
-
-#pragma pack(1)
-
-#define SA_PRE_MEM_CONFIG_REVISION 1
-
-extern EFI_GUID gSaPreMemConfigGuid;
-
-typedef struct {
- CONFIG_BLOCK_HEADER Header; ///< Offset 0-23 Config Block Header
- UINT8 IgdDvmt50PreAlloc;
- UINT8 PrimaryDisplay;
- UINT8 ApertureSize;
- UINT8 InternalGraphics;
- UINT16 GttSize; ///< Selection of iGFX GTT Memory size: 1=2MB, 2=4MB, <b>3=8MB</b>
-} SA_PRE_MEM_CONFIG;
-
-#pragma pack()
-
-#endif // _SA_PRE_MEM_CONFIG_H_
-