From 31d583facacfe112aea609dd1b43e0e854d3eec4 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 14 Feb 2025 19:16:50 +0530 Subject: [PATCH] soc/intel/pantherlake: Enable Thunderbolt authentication This commit enables Thunderbolt authentication for Panther Lake by assigning `ioe_tcss_valid_tbt_auth` to the valid_tbt_auth field in `soc_tcss_ops`. For the SoC's integrated PD solution, AUX BIAS PAD programming is not required and has been removed. TEST=Verified all USB-C ports are functional. With this patch, \_SB.PCI0.TDM0._DSD exists in the SSDT, containing: ``` Scope (\_SB.PCI0.TDM0) { Name (_DSD, Package (0x04) // _DSD: Device-Specific Data { ToUUID ("c44d002f-69f9-4e7d-a904-a7baabdf43f7"), Package (0x01) { Package (0x02) { "IMR_VALID", One } }, ToUUID ("6c501103-c189-4296-ba72-9bf5a26ebe5d"), Package (0x01) { Package (0x02) { "WAKE_SUPPORTED", One } } } ``` Change-Id: I28eac7cfd6511d8680cdae4f830afa73ad201a17 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/86420 Tested-by: build bot (Jenkins) Reviewed-by: Jayvik Desai Reviewed-by: Dinesh Gehlot Reviewed-by: Kapil Porwal --- src/soc/intel/pantherlake/tcss.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/pantherlake/tcss.c b/src/soc/intel/pantherlake/tcss.c index 99cbdd2d67..c66a5c68ce 100644 --- a/src/soc/intel/pantherlake/tcss.c +++ b/src/soc/intel/pantherlake/tcss.c @@ -2,9 +2,15 @@ #include #include +#include const struct soc_tcss_ops tcss_ops = { -/* TODO: Implement AUX BIAS PAD Programming if required */ .configure_aux_bias_pads = NULL, - .valid_tbt_auth = NULL, + .valid_tbt_auth = ioe_tcss_valid_tbt_auth, }; + +bool ioe_tcss_valid_tbt_auth(void) +{ + const config_t *config = config_of_soc(); + return config->tbt_authentication; +}