Skip to content

Commit

Permalink
WhiskeylakeOpenBoardPkg: Add USB DCI debug suport
Browse files Browse the repository at this point in the history
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3081

Add gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable for
USB DCI debug feature, feature is enabled if PcdDciEnable is TRUE,
it allows to debug BIOS via DCI cable.

Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Signed-off-by: Heng Luo <heng.luo@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
  • Loading branch information
luo-heng authored and nate-desimone committed Dec 19, 2020
1 parent 406d37e commit 2f81608
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions Platform/Intel/WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdNCT6776FHWMON |
[PcdsDynamicEx]

[PcdsDynamic, PcdsDynamicEx]
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable |FALSE|BOOLEAN|0x20000001

[PcdsPatchableInModule]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ UpdatePeiPchPolicyPreMem (
Status = GetConfigBlock ((VOID *) SiPreMemPolicy, &gIshPreMemConfigGuid, (VOID *) &IshPreMemConfig);
ASSERT_EFI_ERROR (Status);

DciPreMemConfig->DciUsb3TypecUfpDbg = 2;
if (PcdGetBool (PcdDciEnable)) {
DciPreMemConfig->PlatformDebugConsent = 3;
DciPreMemConfig->DciUsb3TypecUfpDbg = 1;
} else {
DciPreMemConfig->DciUsb3TypecUfpDbg = 2;
}

PchTraceHubPreMemConfig->MemReg0Size = 3;
PchTraceHubPreMemConfig->MemReg1Size = 3;
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@

gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdEcPresent

# Enable/Disable USB DCI Debug
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable ## CONSUMES

gIntelSiliconPkgTokenSpaceGuid.PcdIntelGraphicsVbtFileGuid ## CONSUMES
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSmbusAlertEnable ## CONSUMES
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSataLedEnable ## CONSUMES
Expand All @@ -243,6 +246,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdSystemFmpCapsuleImageTypeIdGuid ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES


[FixedPcd]
gMinPlatformPkgTokenSpaceGuid.PcdPlatformEfiAcpiReclaimMemorySize ## CONSUMES
gMinPlatformPkgTokenSpaceGuid.PcdPlatformEfiAcpiNvsMemorySize ## CONSUMES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3Tbt|0x1
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3TbtClkReq|0x1

gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable|FALSE

[PcdsDynamicHii.X64.DEFAULT]
######################################
# Edk2 Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3Tbt|0x1
gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3TbtClkReq|0x1

gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable|FALSE

[PcdsDynamicHii.X64.DEFAULT]
######################################
# Edk2 Configuration
Expand Down

0 comments on commit 2f81608

Please sign in to comment.