soc: qcom: rpmhpd: Add SDX55 power domains
authorVinod Koul <vkoul@kernel.org>
Thu, 26 Nov 2020 09:27:11 +0000 (14:57 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Nov 2020 17:50:31 +0000 (11:50 -0600)
This adds the power domains found in SDX55 SoC. Downstream code tells me
that we have 3 power domains so add them

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20201126092711.1084518-2-vkoul@kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/rpmhpd.c

index 6bab57aa6d488a18deee6a1d38928439a2981023..7ce06356d24c9dadae50b0fd38d2aa25b52735d5 100644 (file)
@@ -135,6 +135,18 @@ static const struct rpmhpd_desc sdm845_desc = {
        .num_pds = ARRAY_SIZE(sdm845_rpmhpds),
 };
 
+/* SDX55 RPMH powerdomains */
+static struct rpmhpd *sdx55_rpmhpds[] = {
+       [SDX55_MSS] = &sdm845_mss,
+       [SDX55_MX] = &sdm845_mx,
+       [SDX55_CX] = &sdm845_cx,
+};
+
+static const struct rpmhpd_desc sdx55_desc = {
+       .rpmhpds = sdx55_rpmhpds,
+       .num_pds = ARRAY_SIZE(sdx55_rpmhpds),
+};
+
 /* SM8150 RPMH powerdomains */
 
 static struct rpmhpd sm8150_mmcx_ao;
@@ -208,6 +220,7 @@ static const struct rpmhpd_desc sc7180_desc = {
 static const struct of_device_id rpmhpd_match_table[] = {
        { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
        { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
+       { .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
        { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
        { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
        { }