summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-08-17 18:03:07 +0000
committerFelix Held <felix-coreboot@felixheld.de>2024-08-20 12:23:21 +0000
commita985352350b5efa7388cdf9e4db8bc2fac25443f (patch)
tree525a28fc4d3fb0e7603a4eead7ad5d0b601e0bb0 /src/soc/intel/common
parent0e83951864992ebbdaffc95e5643c40eb8380cdf (diff)
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_<SOC_NAME>_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 <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83956 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/basecode/debug/Kconfig16
1 files changed, 16 insertions, 0 deletions
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.