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>
This commit is contained in:
Jeremy Compostella 2024-09-18 16:44:21 -07:00 committed by Subrata Banik
commit ecc3596cb2
2 changed files with 9 additions and 0 deletions

View file

@ -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>

View file

@ -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