| 1 |
|
| 2 |
|
| 3 |
#include <intelblocks/pcie_rp.h> |
| 4 |
#include <soc/pci_devs.h> |
| 5 |
#include <soc/pcie.h> |
| 6 |
|
| 7 |
static const struct pcie_rp_group pch_lp_rp_groups[] = { |
| 8 |
{ .slot = PCH_DEV_SLOT_PCIE, .count = 8, .lcap_port_base = 1 }, |
| 9 |
{ .slot = PCH_DEV_SLOT_PCIE_1, .count = 8, .lcap_port_base = 1 }, |
| 10 |
{ 0 } |
| 11 |
}; |
| 12 |
|
| 13 |
static const struct pcie_rp_group pch_h_rp_groups[] = { |
| 14 |
{ .slot = PCH_DEV_SLOT_PCIE, .count = 8, .lcap_port_base = 1 }, |
| 15 |
{ .slot = PCH_DEV_SLOT_PCIE_1, .count = 8, .lcap_port_base = 1 }, |
| 16 |
{ .slot = PCH_DEV_SLOT_PCIE_2, .count = 8, .lcap_port_base = 1 }, |
| 17 |
{ 0 } |
| 18 |
}; |
| 19 |
|
| 20 |
const struct pcie_rp_group *get_pch_pcie_rp_table(void) |
| 21 |
{ |
| 22 |
if (CONFIG(SOC_INTEL_CANNONLAKE_PCH_H)) |
| 23 |
return pch_h_rp_groups; |
| 24 |
|
| 25 |
return pch_lp_rp_groups; |
| 26 |
} |