From fb401e74da0cd03ef2ee9dc8b2dc8863a5c25a84 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Wed, 30 Aug 2023 13:14:21 +0100 Subject: soc/intel/alderlake: Sync UPD Usb4CmMode with Kconfig The ACPI is adjusted based on SOFTWARE_CONNECTION_MANAGER, so set the UPD to match this to avoid the connection type being mismatched. If it's mismatched, the TBT port will time out. Signed-off-by: Sean Rhodes Change-Id: I8a99db165301ce08caf55aac0e33ca1994559d62 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80486 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier Reviewed-by: Kapil Porwal --- src/soc/intel/alderlake/fsp_params.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/soc') diff --git a/src/soc/intel/alderlake/fsp_params.c b/src/soc/intel/alderlake/fsp_params.c index cb5459868a..d9c0f8e4d6 100644 --- a/src/soc/intel/alderlake/fsp_params.c +++ b/src/soc/intel/alderlake/fsp_params.c @@ -679,6 +679,10 @@ static void fill_fsps_tcss_params(FSP_S_CONFIG *s_cfg, if (is_dev_enabled(tcss_port_arr[i])) s_cfg->UsbTcPortEn |= BIT(i); } + +#if !CONFIG(SOC_INTEL_ALDERLAKE_PCH_M) + s_cfg->Usb4CmMode = CONFIG(SOFTWARE_CONNECTION_MANAGER); +#endif } static void fill_fsps_chipset_lockdown_params(FSP_S_CONFIG *s_cfg, -- cgit v1.2.3