Skip to content

Commit 7394d0a

Browse files
Mani-SadhasivamLorenzo Pieralisi
authored andcommitted
PCI: qcom: Add support for SDX55 SoC
Add support for SDX55 SoC reusing the 1.9.0 config. The PCIe controller is of version 1.10.0 but it is compatible with the 1.9.0 config. This SoC also requires "sleep" clock which is added as an optional clock in the driver, since it is not required on other SoCs. Link: https://lore.kernel.org/r/20230308082424.140224-14-manivannan.sadhasivam@linaro.org Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
1 parent e12b689 commit 7394d0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/pci/controller/dwc/pcie-qcom.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ struct qcom_pcie_resources_2_4_0 {
193193
int num_resets;
194194
};
195195

196-
#define QCOM_PCIE_2_7_0_MAX_CLOCKS 12
196+
#define QCOM_PCIE_2_7_0_MAX_CLOCKS 13
197197
#define QCOM_PCIE_2_7_0_MAX_SUPPLIES 2
198198
struct qcom_pcie_resources_2_7_0 {
199199
struct clk_bulk_data clks[QCOM_PCIE_2_7_0_MAX_CLOCKS];
@@ -879,6 +879,7 @@ static int qcom_pcie_get_resources_2_7_0(struct qcom_pcie *pcie)
879879
res->clks[idx++].id = "noc_aggr_4";
880880
res->clks[idx++].id = "noc_aggr_south_sf";
881881
res->clks[idx++].id = "cnoc_qx";
882+
res->clks[idx++].id = "sleep";
882883

883884
num_opt_clks = idx - num_clks;
884885
res->num_clks = idx;
@@ -1611,6 +1612,7 @@ static const struct of_device_id qcom_pcie_match[] = {
16111612
{ .compatible = "qcom,pcie-sc8180x", .data = &cfg_1_9_0 },
16121613
{ .compatible = "qcom,pcie-sc8280xp", .data = &cfg_1_9_0 },
16131614
{ .compatible = "qcom,pcie-sdm845", .data = &cfg_2_7_0 },
1615+
{ .compatible = "qcom,pcie-sdx55", .data = &cfg_1_9_0 },
16141616
{ .compatible = "qcom,pcie-sm8150", .data = &cfg_1_9_0 },
16151617
{ .compatible = "qcom,pcie-sm8250", .data = &cfg_1_9_0 },
16161618
{ .compatible = "qcom,pcie-sm8350", .data = &cfg_1_9_0 },

0 commit comments

Comments
 (0)