soc/intel/alderlake: rename CONFIG_MAX_PCIE_CLOCKS to CONFIG_MAX_PCIE_CLOCK_SRC

CONFIG_MAX_PCIE_CLOCKS renamed to MAX_PCIE_CLOCK_SRC to make it clear that this config
is for the number of PCIe Clock sources available which is different from PCIe clock reqs.
This is more relevant in alderlake, as the number clock source and clock reqs differ.
However since this is a better name, renaming it throughout the soc/intel tree.

Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Change-Id: I747c94331b68c4ec0b6b5a04149856a4bb384829
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52194
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Rizwan Qureshi 2021-04-08 20:31:47 +05:30 committed by Patrick Georgi
parent a50f190fd4
commit a979460614
10 changed files with 14 additions and 14 deletions

View File

@ -205,7 +205,7 @@ config MAX_ROOT_PORTS
default 24 if SOC_INTEL_CANNONLAKE_PCH_H default 24 if SOC_INTEL_CANNONLAKE_PCH_H
default 16 default 16
config MAX_PCIE_CLOCKS config MAX_PCIE_CLOCK_SRC
int int
default 16 if SOC_INTEL_CANNONLAKE_PCH_H default 16 if SOC_INTEL_CANNONLAKE_PCH_H
default 6 default 6

View File

@ -156,10 +156,10 @@ struct soc_intel_cannonlake_config {
/* PCIe output clocks type to PCIe devices. /* PCIe output clocks type to PCIe devices.
* 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use, * 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use,
* 0xFF: not used */ * 0xFF: not used */
uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCK_SRC];
/* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to /* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to
* clksrc. */ * clksrc. */
uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCK_SRC];
/* PCIe LTR(Latency Tolerance Reporting) mechanism */ /* PCIe LTR(Latency Tolerance Reporting) mechanism */
uint8_t PcieRpLtrEnable[CONFIG_MAX_ROOT_PORTS]; uint8_t PcieRpLtrEnable[CONFIG_MAX_ROOT_PORTS];
/* Implemented as slot or built-in? */ /* Implemented as slot or built-in? */

View File

@ -200,7 +200,7 @@ static void pcie_rtd3_acpi_fill_ssdt(const struct device *dev)
__func__, scope); __func__, scope);
return; return;
} }
if (config->srcclk_pin > CONFIG_MAX_PCIE_CLOCKS) { if (config->srcclk_pin > CONFIG_MAX_PCIE_CLOCK_SRC) {
printk(BIOS_ERR, "%s: Invalid clock pin %u for %s.\n", __func__, printk(BIOS_ERR, "%s: Invalid clock pin %u for %s.\n", __func__,
config->srcclk_pin, scope); config->srcclk_pin, scope);
return; return;

View File

@ -109,7 +109,7 @@ config MAX_ROOT_PORTS
int int
default 7 default 7
config MAX_PCIE_CLOCKS config MAX_PCIE_CLOCK_SRC
int int
default 6 default 6

View File

@ -108,10 +108,10 @@ struct soc_intel_elkhartlake_config {
/* PCIe output clocks type to PCIe devices. /* PCIe output clocks type to PCIe devices.
* 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use, * 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use,
* 0xFF: not used */ * 0xFF: not used */
uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCK_SRC];
/* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to /* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to
* clksrc. */ * clksrc. */
uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCK_SRC];
/* Probe CLKREQ# signal before enabling CLKREQ# based power management.*/ /* Probe CLKREQ# signal before enabling CLKREQ# based power management.*/
uint8_t PcieRpClkReqDetect[CONFIG_MAX_ROOT_PORTS]; uint8_t PcieRpClkReqDetect[CONFIG_MAX_ROOT_PORTS];

View File

@ -110,7 +110,7 @@ config MAX_ROOT_PORTS
int int
default 8 default 8
config MAX_PCIE_CLOCKS config MAX_PCIE_CLOCK_SRC
int int
default 6 default 6

View File

@ -106,10 +106,10 @@ struct soc_intel_jasperlake_config {
/* PCIe output clocks type to PCIe devices. /* PCIe output clocks type to PCIe devices.
* 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use, * 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use,
* 0xFF: not used */ * 0xFF: not used */
uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCK_SRC];
/* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to /* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to
* clksrc. */ * clksrc. */
uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCK_SRC];
/* Probe CLKREQ# signal before enabling CLKREQ# based power management.*/ /* Probe CLKREQ# signal before enabling CLKREQ# based power management.*/
uint8_t PcieRpClkReqDetect[CONFIG_MAX_ROOT_PORTS]; uint8_t PcieRpClkReqDetect[CONFIG_MAX_ROOT_PORTS];

View File

@ -129,7 +129,7 @@ config MAX_ROOT_PORTS
int int
default 12 default 12
config MAX_PCIE_CLOCKS config MAX_PCIE_CLOCK_SRC
int int
default 7 default 7

View File

@ -240,10 +240,10 @@ struct soc_intel_tigerlake_config {
/* PCIe output clocks type to PCIe devices. /* PCIe output clocks type to PCIe devices.
* 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use, * 0-23: PCH rootport, 0x70: LAN, 0x80: unspecified but in use,
* 0xFF: not used */ * 0xFF: not used */
uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcUsage[CONFIG_MAX_PCIE_CLOCK_SRC];
/* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to /* PCIe ClkReq-to-ClkSrc mapping, number of clkreq signal assigned to
* clksrc. */ * clksrc. */
uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCKS]; uint8_t PcieClkSrcClkReq[CONFIG_MAX_PCIE_CLOCK_SRC];
/* Probe CLKREQ# signal before enabling CLKREQ# based power management.*/ /* Probe CLKREQ# signal before enabling CLKREQ# based power management.*/
uint8_t PcieRpClkReqDetect[CONFIG_MAX_ROOT_PORTS]; uint8_t PcieRpClkReqDetect[CONFIG_MAX_ROOT_PORTS];

View File

@ -56,7 +56,7 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
memcpy(m_cfg->PcieClkSrcUsage, config->PcieClkSrcUsage, memcpy(m_cfg->PcieClkSrcUsage, config->PcieClkSrcUsage,
sizeof(config->PcieClkSrcUsage)); sizeof(config->PcieClkSrcUsage));
for (i = 0; i < CONFIG_MAX_PCIE_CLOCKS; i++) { for (i = 0; i < CONFIG_MAX_PCIE_CLOCK_SRC; i++) {
if (config->PcieClkSrcUsage[i] == 0) if (config->PcieClkSrcUsage[i] == 0)
m_cfg->PcieClkSrcUsage[i] = 0xff; m_cfg->PcieClkSrcUsage[i] = 0xff;
} }