Skip to content

Commit f387ecd

Browse files
Abel VesaUlf Hansson
authored andcommitted
pmdomain: qcom: rpmhpd: Add Eliza RPMh Power Domains
Add RPMh Power Domains support for the Eliza platform. The list of power domains is taken from downstream. Even though the cmd-db does list MMCX and MXC, they are not used, so they should not be describe. Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 6c70e42 commit f387ecd

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

drivers/pmdomain/qcom/rpmhpd.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,25 @@ static struct rpmhpd gmxc = {
217217
.res_name = "gmxc.lvl",
218218
};
219219

220+
/* Eliza RPMH powerdomains */
221+
static struct rpmhpd *eliza_rpmhpds[] = {
222+
[RPMHPD_CX] = &cx,
223+
[RPMHPD_CX_AO] = &cx_ao,
224+
[RPMHPD_EBI] = &ebi,
225+
[RPMHPD_GFX] = &gfx,
226+
[RPMHPD_LCX] = &lcx,
227+
[RPMHPD_LMX] = &lmx,
228+
[RPMHPD_MSS] = &mss,
229+
[RPMHPD_MX] = &mx,
230+
[RPMHPD_MX_AO] = &mx_ao,
231+
[RPMHPD_NSP] = &nsp,
232+
};
233+
234+
static const struct rpmhpd_desc eliza_desc = {
235+
.rpmhpds = eliza_rpmhpds,
236+
.num_pds = ARRAY_SIZE(eliza_rpmhpds),
237+
};
238+
220239
/* Milos RPMH powerdomains */
221240
static struct rpmhpd *milos_rpmhpds[] = {
222241
[RPMHPD_CX] = &cx,
@@ -795,6 +814,7 @@ static const struct rpmhpd_desc qcs615_desc = {
795814
};
796815

797816
static const struct of_device_id rpmhpd_match_table[] = {
817+
{ .compatible = "qcom,eliza-rpmhpd", .data = &eliza_desc },
798818
{ .compatible = "qcom,glymur-rpmhpd", .data = &glymur_desc },
799819
{ .compatible = "qcom,kaanapali-rpmhpd", .data = &kaanapali_desc },
800820
{ .compatible = "qcom,milos-rpmhpd", .data = &milos_desc },

0 commit comments

Comments
 (0)