| /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| |
| #include <baseboard/variants.h> |
| #include <soc/pci_devs.h> |
| |
| static const picasso_fsp_ddi_descriptor hdmi_ddi_descriptors[] = { |
| { // DDI0, DP0, eDP |
| .connector_type = EDP, |
| .aux_index = AUX1, |
| .hdp_index = HDP1 |
| }, |
| { // DDI1, DP1, DB OPT2 USB-C1 / DB OPT3 MST hub |
| .connector_type = HDMI, |
| .aux_index = AUX2, |
| .hdp_index = HDP2 |
| }, |
| { // DDI2, DP3, USB-C0 |
| .connector_type = DP, |
| .aux_index = AUX4, |
| .hdp_index = HDP4, |
| } |
| }; |
| |
| void variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs, |
| size_t *pcie_num, |
| const picasso_fsp_ddi_descriptor **ddi_descs, |
| size_t *ddi_num) |
| { |
| *pcie_descs = baseboard_get_pcie_descriptors(pcie_num); |
| |
| *ddi_descs = &hdmi_ddi_descriptors[0]; |
| *ddi_num = ARRAY_SIZE(hdmi_ddi_descriptors); |
| } |