mb/google/rex/deku: Define TCSS port and EC port mapping

Deku design has a non-sequential mapping between CPU Type-C ports
and EC Typec-C ports. This patch maps the CPU Type-C port to the
correct EC Type-C port for the Intel re-timer driver.

BUG=b:399032094
TEST=Check the Type-C port and EC port mapping in coreboot log

deku-rev1 ~ # cbmem -c |grep "USB Type-C"
[INFO ]  USB Type-C 0 mapped to EC port 0
[INFO ]  USB Type-C 1 mapped to EC port 2
[INFO ]  USB Type-C 2 mapped to EC port 1
[INFO ]  USB Type-C 3 mapped to EC port 3

Change-Id: I80fa45a5f40d15c86087dca98bd0fb80a9121e50
Signed-off-by: Derek Huang <derekhuang@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86705
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Derek Huang 2025-03-04 09:44:40 +00:00 committed by Matt DeVillier
commit 9b4b0eeda1

View file

@ -216,11 +216,13 @@ chip soc/intel/meteorlake
device ref tcss_dma0 on
chip drivers/intel/usb4/retimer
register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
register "dfp[0].ec_port" = "EC_TYPEC_PORT_0"
use tcss_usb3_port0 as dfp[0].typec_port
device generic 0 on end
end
chip drivers/intel/usb4/retimer
register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
register "dfp[1].ec_port" = "EC_TYPEC_PORT_2"
use tcss_usb3_port1 as dfp[1].typec_port
device generic 0 on end
end
@ -228,11 +230,13 @@ chip soc/intel/meteorlake
device ref tcss_dma1 on
chip drivers/intel/usb4/retimer
register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
register "dfp[0].ec_port" = "EC_TYPEC_PORT_1"
use tcss_usb3_port2 as dfp[0].typec_port
device generic 0 on end
end
chip drivers/intel/usb4/retimer
register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
register "dfp[1].ec_port" = "EC_TYPEC_PORT_3"
use tcss_usb3_port3 as dfp[1].typec_port
device generic 0 on end
end