## @file
# Component information file for WhiskeylakeURvpInitLib in PEI post memory phase.
#
#
#  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
#
#  SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
##

[Defines]
  INF_VERSION                    = 0x00010005
  BASE_NAME                      = PeiWhiskeylakeURvpMultiBoardInitLib
  FILE_GUID                      = C7D39F17-E5BA-41D9-8DFE-FF9017499280
  MODULE_TYPE                    = BASE
  VERSION_STRING                 = 1.0
  LIBRARY_CLASS                  = NULL
  CONSTRUCTOR                    = PeiWhiskeylakeURvpMultiBoardInitLibConstructor

[LibraryClasses]
  BaseLib
  DebugLib
  BaseMemoryLib
  MemoryAllocationLib
  GpioExpanderLib
  PcdLib
  MultiBoardInitSupportLib
  HdaVerbTableLib
  PeiPlatformHookLib
  PeiPolicyInitLib
  PchInfoLib
  SiliconInitLib

[Packages]
  MinPlatformPkg/MinPlatformPkg.dec
  WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
  MdePkg/MdePkg.dec
  MdeModulePkg/MdeModulePkg.dec
  CoffeelakeSiliconPkg/SiPkg.dec
  SecurityPkg/SecurityPkg.dec

[Sources]
  PeiWhiskeylakeURvpInitPostMemLib.c
  PeiMultiBoardInitPostMemLib.c
  BoardFunc.c
  BoardFuncInit.c
  GpioTableDefault.c
  GpioTableWhiskeylakeUDdr4Rvp.c

[FixedPcd]

[Pcd]
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableSize
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableTouchPanel

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioExpanderTable
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdGpioExpanderTableSize

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardUcmcGpioTable
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardUcmcGpioTableSize

  #===========================================================
  gMinPlatformPkgTokenSpaceGuid.PcdFlashFvPostMemoryBase
  # Board Init Table List

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

  # WWAN Full Card Power Off and reset pins
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdWwanFullCardPowerOffGpio
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdWwanBbrstGpio
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdWwanPerstGpio
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdWwanPerstGpioPolarity

  # SA Misc Config
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSaMiscMmioSizeAdjustment
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdMrcDqPinsInterleavedControl
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdMrcDqPinsInterleaved
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSaDdrFreqLimit

  # Display DDI
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSaDisplayConfigTable           ## PRODUCES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSaDisplayConfigTableSize       ## PRODUCES

  # PEG Reset By GPIO
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPegGpioResetControl
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPegGpioResetSupoort
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPeg0ResetGpioPad
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPeg0ResetGpioActive
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPeg3ResetGpioPad
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPeg3ResetGpioActive

  # PCIE RTD3 GPIO
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRootPortDev
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRootPortFunc
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRootPortIndex

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie0GpioSupport
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1GpioSupport
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1WakeGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1HoldRstExpanderNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1HoldRstGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1HoldRstActive
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1PwrEnableExpanderNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1PwrEnableGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie1PwrEnableActive

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2GpioSupport
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2WakeGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2HoldRstExpanderNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2HoldRstGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2HoldRstActive
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2PwrEnableExpanderNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2PwrEnableGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie2PwrEnableActive

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3GpioSupport
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3WakeGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3HoldRstExpanderNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3HoldRstGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3HoldRstActive
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3PwrEnableExpanderNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3PwrEnableGpioNo
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcie3PwrEnableActive

  # CA Vref Configuration
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdMrcCaVrefConfig

  # PCIe Clock Info
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock0
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock1
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock2
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock3
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock4
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock5
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock6
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock7
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock8
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock9
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock10
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock11
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock12
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock13
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock14
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPcieClock15

  # USB 2.0 Port AFE
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20Port10Afe
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20Port11Afe
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20Port12Afe
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20Port13Afe
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20Port14Afe
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20Port15Afe

  # USB 2.0 Port Over Current Pin
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20OverCurrentPinPort14
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb20OverCurrentPinPort15

  # USB 3.0 Port Over Current Pin
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb30OverCurrentPinPort6
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb30OverCurrentPinPort7
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb30OverCurrentPinPort8
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdUsb30OverCurrentPinPort9

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

  # Pch PmConfig Policy
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSlpS0VmRuntimeControl
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSlpS0Vm070VSupport
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSlpS0Vm075VSupport

  # Misc
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPc8374SioKbcPresent
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdOddPowerInitEnable
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdIvCamInitPresent
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRecoveryModeGpio
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdMobileDramPresent
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdCpuVboostEnable


  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSpdPresent
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardRev
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardBomId
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdPlatformType
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDualDimmPerChannelBoardType

  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable2                   ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable2Size               ## CONSUMES
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDebugUsbUartEnable
  gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdMipiCamGpioEnable
  # TPM interrupt
  gEfiSecurityPkgTokenSpaceGuid.PcdTpm2CurrentIrqNum

[Guids]
  gAttemptUsbFirstHotkeyInfoHobGuid             ## CONSUMES
  gCnlPchLpChipsetInitTableDxGuid               ## CONSUMES
