soc/intel/cannonlake: Set platform Debug Probe Type

Add option for user to select what kind of probe can be used for
platform debug.

TEST=Set to XDP and boot up system with XDP hooked, able to halt.

Change-Id: Ib6add93e3f1c8a646aa625a4cea9be0acecc0487
Signed-off-by: Lijian Zhao <lijian.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/21942
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Lijian Zhao 2017-10-10 13:44:10 -07:00 committed by Aaron Durbin
parent 584af87483
commit c672043766
2 changed files with 11 additions and 0 deletions

View File

@ -212,6 +212,15 @@ struct soc_intel_cannonlake_config {
*/ */
uint32_t PrmrrSize; uint32_t PrmrrSize;
uint8_t PmTimerDisabled; uint8_t PmTimerDisabled;
/* Desired platform debug type. */
enum {
DebugConsent_Disabled,
DebugConsent_DCI_DBC,
DebugConsent_DCI,
DebugConsent_USB3_DBC,
DebugConsent_XDP, /* XDP/Mipi60 */
DebugConsent_USB2_DBC,
} DebugConsent;
/* /*
* SerialIO device mode selection: * SerialIO device mode selection:
* *

View File

@ -101,6 +101,8 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
/* Enable SMBus controller based on config */ /* Enable SMBus controller based on config */
m_cfg->SmbusEnable = config->SmbusEnable; m_cfg->SmbusEnable = config->SmbusEnable;
/* Set debug probe type */
m_cfg->PlatformDebugConsent = config->DebugConsent;
mainboard_memory_init_params(mupd); mainboard_memory_init_params(mupd);
} }