Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <soc/pci_devs.h> | ||||
4 | #include <device/pci_ids.h> | ||||
5 | #include <device/pci_ops.h> | ||||
6 | #include <soc/soc_info.h> | ||||
7 | #include <intelblocks/tcss.h> | ||||
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 8 | |
9 | uint8_t get_max_usb20_port(void) | ||||
10 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 11 | return CONFIG_SOC_INTEL_USB2_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 12 | } |
13 | |||||
14 | uint8_t get_max_usb30_port(void) | ||||
15 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 16 | return CONFIG_SOC_INTEL_USB3_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 17 | } |
18 | |||||
19 | uint8_t get_max_tcss_port(void) | ||||
20 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 21 | return MAX_TYPE_C_PORTS; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 22 | } |
23 | |||||
24 | uint8_t get_max_tbt_pcie_port(void) | ||||
25 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 26 | return CONFIG_MAX_TBT_ROOT_PORTS; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 27 | } |
28 | |||||
29 | uint8_t get_max_pcie_port(void) | ||||
30 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 31 | return CONFIG_MAX_ROOT_PORTS; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 32 | } |
33 | |||||
34 | uint8_t get_max_pcie_clock(void) | ||||
35 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 36 | return CONFIG_MAX_PCIE_CLOCK_SRC; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 37 | } |
38 | |||||
39 | uint8_t get_max_uart_port(void) | ||||
40 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 41 | return CONFIG_SOC_INTEL_UART_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 42 | } |
43 | |||||
44 | uint8_t get_max_i2c_port(void) | ||||
45 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 46 | return CONFIG_SOC_INTEL_I2C_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 47 | } |
48 | |||||
49 | uint8_t get_max_gspi_port(void) | ||||
50 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame] | 51 | return CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 52 | } |