From 848b42558c29aca8e08564303f9a3ab8007722ac Mon Sep 17 00:00:00 2001 From: John Date: Wed, 9 Mar 2022 17:51:56 -0800 Subject: soc/intel/common: Abstract the common TCSS functions This change abstracts the common TCSS functions for pad configuration and Thunderbolt authentication. BUG=b:213574324 TEST=Build platforms coreboot images successfully. Change-Id: I3302aabfb5f540c41da6359f11376b4202c6310b Signed-off-by: John Zhao Reviewed-on: https://review.coreboot.org/c/coreboot/+/62723 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Subrata Banik --- src/soc/intel/common/block/usb4/usb4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/common/block/usb4/usb4.c') diff --git a/src/soc/intel/common/block/usb4/usb4.c b/src/soc/intel/common/block/usb4/usb4.c index 6924bb70df..86bd09bb9d 100644 --- a/src/soc/intel/common/block/usb4/usb4.c +++ b/src/soc/intel/common/block/usb4/usb4.c @@ -29,7 +29,7 @@ static void tbt_dma_fill_ssdt(const struct device *dev) { struct acpi_dp *dsd, *pkg; - if (!tcss_valid_tbt_auth()) + if (tcss_ops.valid_tbt_auth && !tcss_ops.valid_tbt_auth()) return; acpigen_write_scope(acpi_device_path(dev)); -- cgit v1.2.3