| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/gpio.h> |
| 4 |
#include <baseboard/variants.h> |
| 5 |
#include <platform_descriptors.h> |
| 6 |
|
| 7 |
void __weak variant_get_dxio_ddi_descriptors(const fsp_dxio_descriptor **dxio_descs, |
| 8 |
size_t *dxio_num, |
| 9 |
const fsp_ddi_descriptor **ddi_descs, |
| 10 |
size_t *ddi_num) |
| 11 |
{ |
| 12 |
*dxio_descs = baseboard_get_dxio_descriptors(dxio_num); |
| 13 |
*ddi_descs = baseboard_get_ddi_descriptors(ddi_num); |
| 14 |
} |
| 15 |
|
| 16 |
static const fsp_dxio_descriptor dxio_descriptors[] = { |
| 17 |
{ |
| 18 |
|
| 19 |
.port_present = true, |
| 20 |
.engine_type = PCIE_ENGINE, |
| 21 |
.start_logical_lane = 4, |
| 22 |
.end_logical_lane = 5, |
| 23 |
.device_number = 1, |
| 24 |
.function_number = 7, |
| 25 |
.link_aspm = ASPM_L1, |
| 26 |
.link_aspm_L1_1 = true, |
| 27 |
.link_aspm_L1_2 = true, |
| 28 |
.turn_off_unused_lanes = true, |
| 29 |
.clk_req = CLK_REQ2, |
| 30 |
}, |
| 31 |
{ |
| 32 |
|
| 33 |
.port_present = true, |
| 34 |
.engine_type = PCIE_ENGINE, |
| 35 |
.start_logical_lane = 0, |
| 36 |
.end_logical_lane = 0, |
| 37 |
.device_number = 1, |
| 38 |
.function_number = 2, |
| 39 |
.link_aspm = ASPM_L1, |
| 40 |
.link_aspm_L1_1 = true, |
| 41 |
.link_aspm_L1_2 = true, |
| 42 |
.turn_off_unused_lanes = true, |
| 43 |
.clk_req = CLK_REQ0, |
| 44 |
}, |
| 45 |
{ |
| 46 |
|
| 47 |
.port_present = true, |
| 48 |
.engine_type = PCIE_ENGINE, |
| 49 |
.start_logical_lane = 1, |
| 50 |
.end_logical_lane = 1, |
| 51 |
.device_number = 1, |
| 52 |
.function_number = 3, |
| 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_REQ1, |
| 58 |
} |
| 59 |
}; |
| 60 |
|
| 61 |
const fsp_dxio_descriptor *baseboard_get_dxio_descriptors(size_t *num) |
| 62 |
{ |
| 63 |
*num = ARRAY_SIZE(dxio_descriptors); |
| 64 |
return dxio_descriptors; |
| 65 |
} |
| 66 |
|
| 67 |
const fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num) |
| 68 |
{ |
| 69 |
|
| 70 |
|
| 71 |
*num = 0; |
| 72 |
return NULL; |
| 73 |
} |