blob: b5333bd01a4742529352e15cd75939a24cab7d0b [file] [log] [blame]
Ravi Sarawadi91ffac82022-05-07 16:37:09 -07001/* 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
10uint8_t get_max_usb20_port(void)
11{
12 uint8_t usb20_port = CONFIG_SOC_INTEL_USB2_DEV_MAX;
13 printk(BIOS_DEBUG, "soc_info: max_usb20_port:%d\n", usb20_port);
14 return usb20_port;
15}
16
17uint8_t get_max_usb30_port(void)
18{
19 uint8_t usb30_port = CONFIG_SOC_INTEL_USB3_DEV_MAX;
20 printk(BIOS_DEBUG, "soc_info: max_usb30_port:%d\n", usb30_port);
21 return usb30_port;
22}
23
24uint8_t get_max_tcss_port(void)
25{
26 uint8_t tcss_port = MAX_TYPE_C_PORTS;
27 printk(BIOS_DEBUG, "soc_info: tcss_port:%d\n", tcss_port);
28 return tcss_port;
29}
30
31uint8_t get_max_tbt_pcie_port(void)
32{
33 uint8_t tbt_pcie_port = CONFIG_MAX_TBT_ROOT_PORTS;
34 printk(BIOS_DEBUG, "soc_info: max_tbt_pcie_port:%d\n", tbt_pcie_port);
35 return tbt_pcie_port;
36}
37
38uint8_t get_max_pcie_port(void)
39{
40 uint8_t pcie_port = CONFIG_MAX_ROOT_PORTS;
41 printk(BIOS_DEBUG, "soc_info: max_pcie_port:%d\n", pcie_port);
42 return pcie_port;
43}
44
45uint8_t get_max_pcie_clock(void)
46{
47 uint8_t pcie_clock = CONFIG_MAX_PCIE_CLOCK_SRC;
48 printk(BIOS_DEBUG, "soc_info: max_pcie_clock:%d\n", pcie_clock);
49 return pcie_clock;
50}
51
52uint8_t get_max_uart_port(void)
53{
54 uint8_t uart_port = CONFIG_SOC_INTEL_UART_DEV_MAX;
55 printk(BIOS_DEBUG, "soc_info: max_uart_port:%d\n", uart_port);
56 return uart_port;
57}
58
59uint8_t get_max_i2c_port(void)
60{
61 uint8_t i2c_port = CONFIG_SOC_INTEL_I2C_DEV_MAX;
62 printk(BIOS_DEBUG, "soc_info: max_i2c_port:%d\n", i2c_port);
63 return i2c_port;
64}
65
66uint8_t get_max_gspi_port(void)
67{
68 uint8_t gspi_port = CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX;
69 printk(BIOS_DEBUG, "soc_info: max_gspi_port:%d\n", gspi_port);
70 return gspi_port;
71}