]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
soc: qcom: rpmhpd: Add SDX75 power domains
authorRohit Agarwal <quic_rohiagar@quicinc.com>
Mon, 31 Jul 2023 11:30:07 +0000 (17:00 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 31 Jul 2023 21:16:38 +0000 (14:16 -0700)
Add the power domains exposed by RPMH in the Qualcomm SDX75 platform.

Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
Link: https://lore.kernel.org/r/1690803007-8640-3-git-send-email-quic_rohiagar@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/rpmhpd.c

index 6641d5228bc6b761cde07e45e828243ebecbb60c..a87e336d5e33b9a5e84bca6624ca1f9e649131a7 100644 (file)
@@ -307,6 +307,21 @@ static const struct rpmhpd_desc sdx65_desc = {
        .num_pds = ARRAY_SIZE(sdx65_rpmhpds),
 };
 
+/* SDX75 RPMH powerdomains */
+static struct rpmhpd *sdx75_rpmhpds[] = {
+       [RPMHPD_CX] = &cx,
+       [RPMHPD_CX_AO] = &cx_ao,
+       [RPMHPD_MSS] = &mss,
+       [RPMHPD_MX] = &mx,
+       [RPMHPD_MX_AO] = &mx_ao,
+       [RPMHPD_MXC] = &mxc,
+};
+
+static const struct rpmhpd_desc sdx75_desc = {
+       .rpmhpds = sdx75_rpmhpds,
+       .num_pds = ARRAY_SIZE(sdx75_rpmhpds),
+};
+
 /* SM6350 RPMH powerdomains */
 static struct rpmhpd *sm6350_rpmhpds[] = {
        [SM6350_CX] = &cx_w_mx_parent,
@@ -545,6 +560,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
        { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
        { .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
        { .compatible = "qcom,sdx65-rpmhpd", .data = &sdx65_desc},
+       { .compatible = "qcom,sdx75-rpmhpd", .data = &sdx75_desc},
        { .compatible = "qcom,sm6350-rpmhpd", .data = &sm6350_desc },
        { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
        { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },