xref: /aosp_15_r20/external/coreboot/src/soc/intel/meteorlake/soc_info.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
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 
get_max_usb20_port(void)9 uint8_t get_max_usb20_port(void)
10 {
11 	return CONFIG_SOC_INTEL_USB2_DEV_MAX;
12 }
13 
get_max_usb30_port(void)14 uint8_t get_max_usb30_port(void)
15 {
16 	return CONFIG_SOC_INTEL_USB3_DEV_MAX;
17 }
18 
get_max_tcss_port(void)19 uint8_t get_max_tcss_port(void)
20 {
21 	return MAX_TYPE_C_PORTS;
22 }
23 
get_max_tbt_pcie_port(void)24 uint8_t get_max_tbt_pcie_port(void)
25 {
26 	return CONFIG_MAX_TBT_ROOT_PORTS;
27 }
28 
get_max_pcie_port(void)29 uint8_t get_max_pcie_port(void)
30 {
31 	return CONFIG_MAX_ROOT_PORTS;
32 }
33 
get_max_pcie_clock(void)34 uint8_t get_max_pcie_clock(void)
35 {
36 	return CONFIG_MAX_PCIE_CLOCK_SRC;
37 }
38 
get_max_uart_port(void)39 uint8_t get_max_uart_port(void)
40 {
41 	return CONFIG_SOC_INTEL_UART_DEV_MAX;
42 }
43 
get_max_i2c_port(void)44 uint8_t get_max_i2c_port(void)
45 {
46 	return CONFIG_SOC_INTEL_I2C_DEV_MAX;
47 }
48 
get_max_gspi_port(void)49 uint8_t get_max_gspi_port(void)
50 {
51 	return CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX;
52 }
53