soc: qcom: rpmhpd: Add SM8550 power domains
authorAbel Vesa <abel.vesa@linaro.org>
Wed, 16 Nov 2022 11:17:45 +0000 (13:17 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 5 Dec 2022 21:11:05 +0000 (15:11 -0600)
Add the power domains exposed by RPMH in the Qualcomm SM8550 platform.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221116111745.2633074-3-abel.vesa@linaro.org
drivers/soc/qcom/rpmhpd.c

index 7af68cd720f56af7f3b5a1320c54ca47227995dc..4c2d2c296790ed0f4074133408a66b223d2dbfaf 100644 (file)
@@ -372,6 +372,29 @@ static const struct rpmhpd_desc sm8450_desc = {
        .num_pds = ARRAY_SIZE(sm8450_rpmhpds),
 };
 
+/* SM8550 RPMH powerdomains */
+static struct rpmhpd *sm8550_rpmhpds[] = {
+       [SM8550_CX] = &cx,
+       [SM8550_CX_AO] = &cx_ao,
+       [SM8550_EBI] = &ebi,
+       [SM8550_GFX] = &gfx,
+       [SM8550_LCX] = &lcx,
+       [SM8550_LMX] = &lmx,
+       [SM8550_MMCX] = &mmcx_w_cx_parent,
+       [SM8550_MMCX_AO] = &mmcx_ao_w_cx_parent,
+       [SM8550_MSS] = &mss,
+       [SM8550_MX] = &mx,
+       [SM8550_MX_AO] = &mx_ao,
+       [SM8550_MXC] = &mxc,
+       [SM8550_MXC_AO] = &mxc_ao,
+       [SM8550_NSP] = &nsp,
+};
+
+static const struct rpmhpd_desc sm8550_desc = {
+       .rpmhpds = sm8550_rpmhpds,
+       .num_pds = ARRAY_SIZE(sm8550_rpmhpds),
+};
+
 /* QDU1000/QRU1000 RPMH powerdomains */
 static struct rpmhpd *qdu1000_rpmhpds[] = {
        [QDU1000_CX] = &cx,
@@ -477,6 +500,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
        { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
        { .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc },
        { .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc },
+       { .compatible = "qcom,sm8550-rpmhpd", .data = &sm8550_desc },
        { }
 };
 MODULE_DEVICE_TABLE(of, rpmhpd_match_table);