From a985352350b5efa7388cdf9e4db8bc2fac25443f Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Sat, 17 Aug 2024 18:03:07 +0000 Subject: soc/intel/cmn/basecode/debug: Add SOC_INTEL_COMMON_DEBUG_CONSENT config This patch adds a generic config option, SOC_INTEL_COMMON_DEBUG_CONSENT, to control the debug interface on Intel SoCs. This eliminates the need for SoC-specific config options like SOC_INTEL__DEBUG_CONSENT. Default values are provided for various debug types: - 0: Disabled - 1: Enabled (DCI OOB + [DbC]) - 2: Enabled (DCI OOB) - 3: Enabled (USB3 DbC) - 4: Enabled (XDP/MIPI60) - 5: Enabled (USB2 DbC) - 6: Enabled (2-wire DCI OOB) - 7: Manual Specific SoCs can override the SOC_INTEL_COMMON_DEBUG_CONSENT value using SoC config override methods. TEST=Able to build google/rex. Change-Id: I84ad03f0ffe5da4bc53c665489c430fe9b65ede7 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/83956 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/intel/common/basecode/debug/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/soc/intel/common/basecode/debug') diff --git a/src/soc/intel/common/basecode/debug/Kconfig b/src/soc/intel/common/basecode/debug/Kconfig index 759b9697c9..00a03d815a 100644 --- a/src/soc/intel/common/basecode/debug/Kconfig +++ b/src/soc/intel/common/basecode/debug/Kconfig @@ -6,3 +6,19 @@ config SOC_INTEL_COMMON_BASECODE_DEBUG_FEATURE help Driver to control runtime features of Intel SoC & coreboot. For example, controlling the CSE firmware update feature without rebuilding the code. + +config SOC_INTEL_COMMON_DEBUG_CONSENT + int "Debug Consent for Intel SoC" + # USB DBC is more common for developers so make this default to 3 if + # SOC_INTEL_DEBUG_CONSENT=y + default 3 if SOC_INTEL_DEBUG_CONSENT + default 0 + help + This is to control debug interface on SOC. + Setting non-zero value will allow to use DBC or DCI to debug SOC. + PlatformDebugConsent in FspmUpd.h has the details. + + Desired platform debug type are + 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), + 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), + 6:Enable (2-wire DCI OOB), 7:Manual. -- cgit v1.2.3