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 <reitbergerfred@gmail.com> Change-Id: If38fa667daeb2dd176ecdf33abaec9b56d633a2f Reviewed-on: https://review.coreboot.org/c/coreboot/+/74091 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
d1c51f0557
commit
b607c6d584
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue