## @file
#
#  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
#
#  SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
##

[Defines]
  INF_VERSION                    = 0x00010017
  BASE_NAME                      = PeiPlatformHookLib
  FILE_GUID                      = AD901798-B0DA-4B20-B90C-283F886E76D0
  VERSION_STRING                 = 1.0
  MODULE_TYPE                    = PEIM
  LIBRARY_CLASS                  = PeiPlatformHookLib|PEIM PEI_CORE SEC

[LibraryClasses]
  DebugLib
  BaseMemoryLib
  IoLib
  HobLib
  PcdLib
  TimerLib
  PchCycleDecodingLib
  GpioLib
  CpuPlatformLib
  PeiServicesLib
  ConfigBlockLib
  PeiSaPolicyLib
  GpioExpanderLib
  PmcLib
  PchPcrLib
  PciSegmentLib
  GpioCheckConflictLib

[Packages]
  MdePkg/MdePkg.dec
  WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
  CoffeelakeSiliconPkg/SiPkg.dec

[Pcd]
  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress                        ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdLpcSioConfigDefaultPort        ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSioBaseAddress                 ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdIoExpanderPresent              ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDebugUsbUartEnable             ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdMipiCamGpioEnable              ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable                 ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableSize             ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable2                ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable2Size            ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioExpanderTable              ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioExpanderTableSize          ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioExpanderTable2             ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioExpanderTable2Size         ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableTouchPanel       ## CONSUMES

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTablePreMem
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTablePreMemSize
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableWwanOnEarlyPreMem
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableWwanOnEarlyPreMemSize
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableWwanOffEarlyPreMem
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableWwanOffEarlyPreMemSize

  # GPIO Group Tier
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioGroupToGpeDw0              ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioGroupToGpeDw1              ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioGroupToGpeDw2              ## CONSUMES

  # Misc
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdIoExpanderPresent              ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPc8374SioKbcPresent            ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdOddPowerInitEnable             ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdIvCamInitPresent               ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRecoveryModeGpio               ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdCpuVboostEnable                ## CONSUMES

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdWwanBbrstGpio
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieWwanEnable
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdWwanResetWorkaround

[Sources]
  PeiPlatformHooklib.c

[Ppis]
  gEfiPeiReadOnlyVariable2PpiGuid               ## CONSUMES
  gSiPolicyPpiGuid                              ## CONSUMES

[Guids]
  gSaDataHobGuid                                ## CONSUMES
  gEfiGlobalVariableGuid                        ## CONSUMES
  gGpioCheckConflictHobGuid                     ## CONSUMES

