lkml.org 
[lkml]   [2023]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 13/13] PCI: qcom: Add support for SDX55 SoC
    Date
    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.

    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    ---
    drivers/pci/controller/dwc/pcie-qcom.c | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
    index 77e5dc7b88ad..659df73114dd 100644
    --- a/drivers/pci/controller/dwc/pcie-qcom.c
    +++ b/drivers/pci/controller/dwc/pcie-qcom.c
    @@ -182,7 +182,7 @@ struct qcom_pcie_resources_2_3_3 {

    /* 6 clocks typically, 7 for sm8250 */
    struct qcom_pcie_resources_2_7_0 {
    - struct clk_bulk_data clks[12];
    + struct clk_bulk_data clks[13];
    int num_clks;
    struct regulator_bulk_data supplies[2];
    struct reset_control *pci_reset;
    @@ -1208,6 +1208,7 @@ static int qcom_pcie_get_resources_2_7_0(struct qcom_pcie *pcie)
    res->clks[idx++].id = "noc_aggr_4";
    res->clks[idx++].id = "noc_aggr_south_sf";
    res->clks[idx++].id = "cnoc_qx";
    + res->clks[idx++].id = "sleep";

    num_opt_clks = idx - num_clks;
    res->num_clks = idx;
    @@ -1824,6 +1825,7 @@ static const struct of_device_id qcom_pcie_match[] = {
    { .compatible = "qcom,pcie-sc8180x", .data = &cfg_1_9_0 },
    { .compatible = "qcom,pcie-sc8280xp", .data = &cfg_1_9_0 },
    { .compatible = "qcom,pcie-sdm845", .data = &cfg_2_7_0 },
    + { .compatible = "qcom,pcie-sdx55", .data = &cfg_1_9_0 },
    { .compatible = "qcom,pcie-sm8150", .data = &cfg_1_9_0 },
    { .compatible = "qcom,pcie-sm8250", .data = &cfg_1_9_0 },
    { .compatible = "qcom,pcie-sm8450-pcie0", .data = &cfg_1_9_0 },
    --
    2.25.1
    \
     
     \ /
      Last update: 2023-03-27 00:34    [W:4.211 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site