Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <intelblocks/pcie_rp.h> |
| 4 | #include <soc/pci_devs.h> |
| 5 | #include <soc/pcie.h> |
| 6 | #include <soc/soc_info.h> |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 7 | |
| 8 | static const struct pcie_rp_group mtlp_rp_groups[] = { |
| 9 | { .slot = PCI_DEV_SLOT_PCIE_1, .start = 0, .count = 8, .lcap_port_base = 1 }, |
| 10 | { .slot = PCI_DEV_SLOT_PCIE_2, .start = 0, .count = 3, .lcap_port_base = 1 }, |
| 11 | { .slot = PCI_DEV_SLOT_PCIE_3, .start = 0, .count = 1, .lcap_port_base = 1 }, |
| 12 | { 0 } |
| 13 | }; |
| 14 | |
| 15 | const struct pcie_rp_group *get_pcie_rp_table(void) |
| 16 | { |
| 17 | return mtlp_rp_groups; |
| 18 | } |
| 19 | |
| 20 | enum pcie_rp_type soc_get_pcie_rp_type(const struct device *dev) |
| 21 | { |
| 22 | return PCIE_RP_PCH; |
| 23 | } |
| 24 | |
| 25 | int soc_get_cpu_rp_vw_idx(const struct device *dev) |
| 26 | { |
| 27 | return -1; |
| 28 | } |