coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
port_descriptors.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <soc/platform_descriptors.h>
4 #include <types.h>
5 
6 static const fsp_dxio_descriptor pollock_dxio_descriptors[] = {
7  { /* NVME SSD */
8  .port_present = true,
9  .engine_type = PCIE_ENGINE,
10  .start_logical_lane = 0,
11  .end_logical_lane = 0,
12  .device_number = 1,
13  .function_number = 3,
14  .link_aspm = ASPM_L1,
15  .link_aspm_L1_1 = true,
16  .link_aspm_L1_2 = true,
17  .turn_off_unused_lanes = true,
18  .clk_req = CLK_REQ0
19  },
20  { /* WWAN */
21  .port_present = true,
22  .engine_type = PCIE_ENGINE,
23  .start_logical_lane = 1,
24  .end_logical_lane = 1,
25  .device_number = 1,
26  .function_number = 4,
27  .link_aspm = ASPM_L1,
28  .link_aspm_L1_1 = true,
29  .link_aspm_L1_2 = true,
30  .turn_off_unused_lanes = true,
31  .clk_req = CLK_REQ2
32  },
33  { /* LAN */
34  .port_present = true,
35  .engine_type = PCIE_ENGINE,
36  .start_logical_lane = 4,
37  .end_logical_lane = 4,
38  .device_number = 1,
39  .function_number = 1,
40  .link_aspm = ASPM_L1,
41  .link_aspm_L1_1 = true,
42  .link_aspm_L1_2 = true,
43  .turn_off_unused_lanes = true,
44  .clk_req = CLK_REQ1
45  },
46  { /* WLAN */
47  .port_present = true,
48  .engine_type = PCIE_ENGINE,
49  .start_logical_lane = 5,
50  .end_logical_lane = 5,
51  .device_number = 1,
52  .function_number = 2,
53  .link_aspm = ASPM_L1,
54  .link_aspm_L1_1 = true,
55  .link_aspm_L1_2 = true,
56  .turn_off_unused_lanes = true,
57  .clk_req = CLK_REQ4
58  }
59 };
60 
61 fsp_ddi_descriptor pollock_ddi_descriptors[] = {
62  { /* DDI0 - eDP */
63  .connector_type = EDP,
64  .aux_index = AUX1,
65  .hdp_index = HDP1
66  },
67  { /* DDI1 - DP */
68  .connector_type = DP,
69  .aux_index = AUX2,
70  .hdp_index = HDP2
71  },
72  { /* DDI2 - DP */
73  .connector_type = DP,
74  .aux_index = AUX4,
75  .hdp_index = HDP4,
76  }
77 };
78 
80  const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num,
81  const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num)
82 {
83  *dxio_descs = pollock_dxio_descriptors;
85  *ddi_descs = pollock_ddi_descriptors;
87 }
void mainboard_get_dxio_ddi_descriptors(const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num, const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num)
fsp_ddi_descriptor pollock_ddi_descriptors[]
static const fsp_dxio_descriptor pollock_dxio_descriptors[]
#define ARRAY_SIZE(a)
Definition: helpers.h:12
@ ASPM_L1
Definition: pcie_rp.h:50