From b607c6d5840629f200727180d71454e144ba3a42 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Wed, 29 Mar 2023 12:59:14 -0400 Subject: mb/amd/birman/port_descriptors.c: Add USB-C configuration Add option decode for USB-C DDI connection type and remove unnecessary break after return. Signed-off-by: Fred Reitberger Change-Id: If38fa667daeb2dd176ecdf33abaec9b56d633a2f Reviewed-on: https://review.coreboot.org/c/coreboot/+/74091 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/mainboard/amd/birman/port_descriptors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mainboard/amd/birman/port_descriptors.c b/src/mainboard/amd/birman/port_descriptors.c index 35dcf651e5..a2c4557eae 100644 --- a/src/mainboard/amd/birman/port_descriptors.c +++ b/src/mainboard/amd/birman/port_descriptors.c @@ -98,18 +98,18 @@ static uint8_t get_ddi1_type(void) connector_type = eeprom_connector_type_data[1] | eeprom_connector_type_data[0] << 8; switch (connector_type) { - case 0xc: + case 0x0c: printk(BIOS_DEBUG, "Configuring DDI1 as HDMI.\n"); return DDI_HDMI; - break; case 0x13: printk(BIOS_DEBUG, "Configuring DDI1 as DP.\n"); return DDI_DP; - break; case 0x14: printk(BIOS_DEBUG, "Configuring DDI1 as eDP.\n"); return DDI_EDP; - break; + case 0x17: + printk(BIOS_DEBUG, "Configuring DDI1 as USB-C.\n"); + return DDI_DP_W_TYPEC; default: printk(BIOS_WARNING, "Unexpected display connector type %x. Disabling DDI1.\n", connector_type); -- cgit v1.2.3