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> | ||||
8 | #include <console/console.h> | ||||
9 | |||||
10 | uint8_t get_max_usb20_port(void) | ||||
11 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 12 | return CONFIG_SOC_INTEL_USB2_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 13 | } |
14 | |||||
15 | uint8_t get_max_usb30_port(void) | ||||
16 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 17 | return CONFIG_SOC_INTEL_USB3_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 18 | } |
19 | |||||
20 | uint8_t get_max_tcss_port(void) | ||||
21 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 22 | return MAX_TYPE_C_PORTS; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 23 | } |
24 | |||||
25 | uint8_t get_max_tbt_pcie_port(void) | ||||
26 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 27 | return CONFIG_MAX_TBT_ROOT_PORTS; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 28 | } |
29 | |||||
30 | uint8_t get_max_pcie_port(void) | ||||
31 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 32 | return CONFIG_MAX_ROOT_PORTS; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 33 | } |
34 | |||||
35 | uint8_t get_max_pcie_clock(void) | ||||
36 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 37 | return CONFIG_MAX_PCIE_CLOCK_SRC; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 38 | } |
39 | |||||
40 | uint8_t get_max_uart_port(void) | ||||
41 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 42 | return CONFIG_SOC_INTEL_UART_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 43 | } |
44 | |||||
45 | uint8_t get_max_i2c_port(void) | ||||
46 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 47 | return CONFIG_SOC_INTEL_I2C_DEV_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 48 | } |
49 | |||||
50 | uint8_t get_max_gspi_port(void) | ||||
51 | { | ||||
Tyler Wang | 785a7aa | 2024-03-08 10:39:57 +0800 | [diff] [blame^] | 52 | return CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX; |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 53 | } |