Subrata Banik has submitted this change. ( https://review.coreboot.org/c/coreboot/+/84419?usp=email )
(
6 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: soc/intel/ptl: Provide the TCSS port policy setting options ......................................................................
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 jeremy.compostella@intel.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/84419 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Pranava Y N pranavayn@google.com Reviewed-by: Subrata Banik subratabanik@google.com --- M src/soc/intel/pantherlake/chip.h M src/soc/intel/pantherlake/include/soc/tcss.h 2 files changed, 9 insertions(+), 0 deletions(-)
Approvals: Pranava Y N: Looks good to me, approved build bot (Jenkins): Verified Subrata Banik: Looks good to me, approved
diff --git a/src/soc/intel/pantherlake/chip.h b/src/soc/intel/pantherlake/chip.h index 27d766f..85dcccd 100644 --- a/src/soc/intel/pantherlake/chip.h +++ b/src/soc/intel/pantherlake/chip.h @@ -16,6 +16,7 @@ #include <soc/pci_devs.h> #include <soc/pmc.h> #include <soc/serialio.h> +#include <soc/tcss.h> #include <soc/usb.h> #include <stdint.h>
diff --git a/src/soc/intel/pantherlake/include/soc/tcss.h b/src/soc/intel/pantherlake/include/soc/tcss.h index 79604bc..a1d72b8 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