summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/skylake/Kconfig5
-rw-r--r--src/soc/intel/skylake/chip.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
index 7591d66f50..1960a9a285 100644
--- a/src/soc/intel/skylake/Kconfig
+++ b/src/soc/intel/skylake/Kconfig
@@ -239,4 +239,9 @@ config SPI_FLASH_INCLUDE_ALL_DRIVERS
bool
default n
+config MAX_ROOT_PORTS
+ int
+ default 24 if PLATFORM_USES_FSP2_0
+ default 20 if PLATFORM_USES_FSP1_1
+
endif
diff --git a/src/soc/intel/skylake/chip.h b/src/soc/intel/skylake/chip.h
index 5a4e85bf00..207c360476 100644
--- a/src/soc/intel/skylake/chip.h
+++ b/src/soc/intel/skylake/chip.h
@@ -161,9 +161,9 @@ struct soc_intel_skylake_config {
u8 EnableTraceHub;
/* Pcie Root Ports */
- u8 PcieRpEnable[20];
- u8 PcieRpClkReqSupport[20];
- u8 PcieRpClkReqNumber[20];
+ u8 PcieRpEnable[CONFIG_MAX_ROOT_PORTS];
+ u8 PcieRpClkReqSupport[CONFIG_MAX_ROOT_PORTS];
+ u8 PcieRpClkReqNumber[CONFIG_MAX_ROOT_PORTS];
/* USB related */
struct usb2_port_config usb2_ports[16];