1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <soc/platform_descriptors.h>
7 static const fsp_dxio_descriptor pco_dxio_descriptors
[] = {
10 .engine_type
= PCIE_ENGINE
,
11 .start_logical_lane
= 15,
12 .end_logical_lane
= 8,
16 .link_aspm_L1_1
= true,
17 .link_aspm_L1_2
= true,
18 .turn_off_unused_lanes
= true,
21 { /* DEVICE_ID_DT - Entry 1 */
23 .engine_type
= PCIE_ENGINE
,
24 .start_logical_lane
= 4,
25 .end_logical_lane
= 7,
29 .link_aspm_L1_1
= true,
30 .link_aspm_L1_2
= true,
31 .turn_off_unused_lanes
= true,
34 { /* PCIE M.2 x2 - Entry 2 */
36 .engine_type
= PCIE_ENGINE
,
37 .start_logical_lane
= 0,
38 .end_logical_lane
= 3,
42 .link_aspm_L1_1
= true,
43 .link_aspm_L1_2
= true,
44 .turn_off_unused_lanes
= true,
49 static const fsp_ddi_descriptor pco_ddi_descriptors
[] = {
51 .connector_type
= CONFIG_DDI0_CONNECTOR_TYPE
,
56 .connector_type
= CONFIG_DDI1_CONNECTOR_TYPE
,
72 int get_ddi_port_conn_type(uint8_t port_num
)
74 return pco_ddi_descriptors
[port_num
].connector_type
;
77 void mainboard_get_dxio_ddi_descriptors(
78 const fsp_dxio_descriptor
**dxio_descs
, size_t *dxio_num
,
79 const fsp_ddi_descriptor
**ddi_descs
, size_t *ddi_num
)
81 *dxio_descs
= pco_dxio_descriptors
;
82 *dxio_num
= ARRAY_SIZE(pco_dxio_descriptors
);
83 *ddi_descs
= pco_ddi_descriptors
;
84 *ddi_num
= ARRAY_SIZE(pco_ddi_descriptors
);