summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/alderlake/romstage/fsp_params.c8
-rw-r--r--src/soc/intel/meteorlake/romstage/fsp_params.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/src/soc/intel/alderlake/romstage/fsp_params.c b/src/soc/intel/alderlake/romstage/fsp_params.c
index d917e6cdfe..a63b64c966 100644
--- a/src/soc/intel/alderlake/romstage/fsp_params.c
+++ b/src/soc/intel/alderlake/romstage/fsp_params.c
@@ -71,10 +71,12 @@ static void pcie_rp_init(FSP_M_CONFIG *m_cfg, uint32_t en_mask, enum pcie_rp_typ
printk(BIOS_WARNING, "Missing root port clock structure definition\n");
continue;
}
- if (clk_req_mapping & (1 << cfg[i].clk_req))
- printk(BIOS_WARNING, "Found overlapped clkreq assignment on clk req %d\n"
- , cfg[i].clk_req);
+
if (!(cfg[i].flags & PCIE_RP_CLK_REQ_UNUSED)) {
+ if (clk_req_mapping & (1 << cfg[i].clk_req))
+ printk(BIOS_WARNING,
+ "Found overlapped clkreq assignment on clk req %d\n",
+ cfg[i].clk_req);
m_cfg->PcieClkSrcClkReq[cfg[i].clk_src] = cfg[i].clk_req;
clk_req_mapping |= 1 << cfg[i].clk_req;
}
diff --git a/src/soc/intel/meteorlake/romstage/fsp_params.c b/src/soc/intel/meteorlake/romstage/fsp_params.c
index 9734c63d5f..055fec7fad 100644
--- a/src/soc/intel/meteorlake/romstage/fsp_params.c
+++ b/src/soc/intel/meteorlake/romstage/fsp_params.c
@@ -52,10 +52,12 @@ static void pcie_rp_init(FSP_M_CONFIG *m_cfg, uint32_t en_mask,
printk(BIOS_WARNING, "Missing root port clock structure definition\n");
continue;
}
- if (clk_req_mapping & (1 << cfg[i].clk_req))
- printk(BIOS_WARNING, "Found overlapped clkreq assignment on clk req %d\n"
- , cfg[i].clk_req);
+
if (!(cfg[i].flags & PCIE_RP_CLK_REQ_UNUSED)) {
+ if (clk_req_mapping & (1 << cfg[i].clk_req))
+ printk(BIOS_WARNING,
+ "Found overlapped clkreq assignment on clk req %d\n",
+ cfg[i].clk_req);
m_cfg->PcieClkSrcClkReq[cfg[i].clk_src] = cfg[i].clk_req;
clk_req_mapping |= 1 << cfg[i].clk_req;
}