Attention is currently required from: Jamie Ryu, Maulik V Vaghela, Selma Bensaid, Sridhar Siricilla, Bernardo Perez Priego, Ronak Kanabar, Patrick Rudolph.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54334 )
Change subject: soc/intel/alderlake: Add configurable value for UsbTcPortEn
......................................................................
Patch Set 8:
(2 comments)
File src/soc/intel/alderlake/chip.h:
https://review.coreboot.org/c/coreboot/+/54334/comment/dd0087aa_e6e1fa95
PS8, Line 52: /* Specifies which Type-C Ports are enabled on the system */
: bool UsbTcPortEn[MAX_TYPE_C_POR
I don't think we need more options here, there are 4 devices in the devicetree for alderlake that represent these, you can use the `enabled` state of these devices to add the bits into the UPD below
File src/soc/intel/alderlake/fsp_params.c:
https://review.coreboot.org/c/coreboot/+/54334/comment/5d813cdc_854b4e76
PS8, Line 113: for (i = 0; i < MAX_TYPE_C_PORTS; i++)
: params->UsbTcPortEn |= config->UsbTcPortEn[i] << i;
along with the above comment, I think this could look like (untested):
```
for (i = 0; i < MAX_TYPE_C_PORTS; i++) {
/* TCSS xHCI --> Root Hub --> Type-C Port */
const struct device_path port_path[] = {
{.type = DEVICE_PATH_PCI, .pci.devfn = SA_DEVFN_TCSS_XHCI},
{.type = DEVICE_PATH_USB, .usb.port_type = 0, .usb.port_id = 0},
{.type = DEVICE_PATH_USB, .usb.port_type = 3, .usb.port_id = i}};
const struct device *port = find_dev_nested_path(pci_root_bus(), port_path,
ARRAY_SIZE(port_path));
if (is_dev_enabled(port)) {
params->UsbTcPortEn |= BIT(i);
}
```
--
To view, visit
https://review.coreboot.org/c/coreboot/+/54334
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic5cd0690945b9296c105ade2d99f68bbf0ee22bd
Gerrit-Change-Number: 54334
Gerrit-PatchSet: 8
Gerrit-Owner: Sridhar Siricilla
sridhar.siricilla@intel.com
Gerrit-Reviewer: Bernardo Perez Priego
bernardo.perez.priego@intel.com
Gerrit-Reviewer: Bernardo Perez Priego
bernardo.perez.priego@intel.corp-partner.google.com
Gerrit-Reviewer: Jamie Ryu
jamie.m.ryu@intel.com
Gerrit-Reviewer: Maulik V Vaghela
maulik.v.vaghela@intel.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Ronak Kanabar
ronak.kanabar@intel.com
Gerrit-Reviewer: Selma Bensaid
selma.bensaid@intel.com
Gerrit-Reviewer: Sridhar Siricilla
sridhar.siricilla@intel.corp-partner.google.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Balaji Manigandan
balaji.manigandan@intel.corp-partner.google.com
Gerrit-Attention: Jamie Ryu
jamie.m.ryu@intel.com
Gerrit-Attention: Maulik V Vaghela
maulik.v.vaghela@intel.com
Gerrit-Attention: Selma Bensaid
selma.bensaid@intel.com
Gerrit-Attention: Sridhar Siricilla
sridhar.siricilla@intel.corp-partner.google.com
Gerrit-Attention: Sridhar Siricilla
sridhar.siricilla@intel.com
Gerrit-Attention: Bernardo Perez Priego
bernardo.perez.priego@intel.com
Gerrit-Attention: Ronak Kanabar
ronak.kanabar@intel.com
Gerrit-Attention: Bernardo Perez Priego
bernardo.perez.priego@intel.corp-partner.google.com
Gerrit-Attention: Patrick Rudolph
siro@das-labor.org
Gerrit-Comment-Date: Tue, 15 Jun 2021 16:37:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment