From ecc3596cb235977dbd776a46d3919f8f5d348cf8 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Wed, 18 Sep 2024 16:44:21 -0700 Subject: soc/intel/ptl: Provide the TCSS port policy setting options Each TCSS port can be associated a setting via the tcss_cap_policy device tree field. The setting can be picked within five values listed by this commit. BUG=b/348678529 TEST=fatcat board build tcss_cap_policy[0]=TCSS_TYPE_C_PORT_FULL_FUN Change-Id: I914f73ff06bfb801fc319b45b23d7ce4cb7a6d56 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/84419 Tested-by: build bot (Jenkins) Reviewed-by: Pranava Y N Reviewed-by: Subrata Banik --- src/soc/intel/pantherlake/chip.h | 1 + src/soc/intel/pantherlake/include/soc/tcss.h | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'src/soc/intel/pantherlake') diff --git a/src/soc/intel/pantherlake/chip.h b/src/soc/intel/pantherlake/chip.h index 27d766f584..85dcccd1f6 100644 --- a/src/soc/intel/pantherlake/chip.h +++ b/src/soc/intel/pantherlake/chip.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include diff --git a/src/soc/intel/pantherlake/include/soc/tcss.h b/src/soc/intel/pantherlake/include/soc/tcss.h index 79604bcfa1..a1d72b862a 100644 --- a/src/soc/intel/pantherlake/include/soc/tcss.h +++ b/src/soc/intel/pantherlake/include/soc/tcss.h @@ -16,4 +16,12 @@ #define BIAS_CTRL_VW_INDEX_SHIFT 24 #define BIAS_CTRL_BIT_POS_SHIFT 16 +enum { + TCSS_TYPE_C_PORT_DISABLE, + TCSS_TYPE_C_PORT_DP_ONLY, + TCSS_TYPE_C_PORT_NO_TBT, + TCSS_TYPE_C_PORT_NO_PCIE, + TCSS_TYPE_C_PORT_FULL_FUN = 7 +}; + #endif -- cgit v1.2.3