Skip to content

Commit 596ca99

Browse files
fenglinw-qcomUlf Hansson
authored andcommitted
pmdomain: qcom: rpmhpd: Add power domains for Hawi SoC
Add the RPMh power domains required for the Hawi SoC. This includes new definitions for domains supplying specific hardware components: - DCX: supplies VDD_DISP - GBX: supplies VDD_GFX_BX Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent deba8c5 commit 596ca99

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

drivers/pmdomain/qcom/rpmhpd.c

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,21 @@ static struct rpmhpd cx_ao_w_mx_parent = {
102102
.res_name = "cx.lvl",
103103
};
104104

105+
static struct rpmhpd dcx = {
106+
.pd = { .name = "dcx", },
107+
.res_name = "dcx.lvl",
108+
};
109+
105110
static struct rpmhpd ebi = {
106111
.pd = { .name = "ebi", },
107112
.res_name = "ebi.lvl",
108113
};
109114

115+
static struct rpmhpd gbx = {
116+
.pd = { .name = "gbx", },
117+
.res_name = "gbx.lvl",
118+
};
119+
110120
static struct rpmhpd gfx = {
111121
.pd = { .name = "gfx", },
112122
.res_name = "gfx.lvl",
@@ -641,6 +651,33 @@ static const struct rpmhpd_desc kaanapali_desc = {
641651
.num_pds = ARRAY_SIZE(kaanapali_rpmhpds),
642652
};
643653

654+
/* Hawi RPMH powerdomains */
655+
static struct rpmhpd *hawi_rpmhpds[] = {
656+
[RPMHPD_CX] = &cx,
657+
[RPMHPD_CX_AO] = &cx_ao,
658+
[RPMHPD_DCX] = &dcx,
659+
[RPMHPD_EBI] = &ebi,
660+
[RPMHPD_GBX] = &gbx,
661+
[RPMHPD_GFX] = &gfx,
662+
[RPMHPD_GMXC] = &gmxc,
663+
[RPMHPD_LCX] = &lcx,
664+
[RPMHPD_LMX] = &lmx,
665+
[RPMHPD_MMCX] = &mmcx,
666+
[RPMHPD_MMCX_AO] = &mmcx_ao,
667+
[RPMHPD_MX] = &mx,
668+
[RPMHPD_MX_AO] = &mx_ao,
669+
[RPMHPD_MXC] = &mxc,
670+
[RPMHPD_MXC_AO] = &mxc_ao,
671+
[RPMHPD_MSS] = &mss,
672+
[RPMHPD_NSP] = &nsp,
673+
[RPMHPD_NSP2] = &nsp2,
674+
};
675+
676+
static const struct rpmhpd_desc hawi_desc = {
677+
.rpmhpds = hawi_rpmhpds,
678+
.num_pds = ARRAY_SIZE(hawi_rpmhpds),
679+
};
680+
644681
/* QDU1000/QRU1000 RPMH powerdomains */
645682
static struct rpmhpd *qdu1000_rpmhpds[] = {
646683
[QDU1000_CX] = &cx,
@@ -816,6 +853,7 @@ static const struct rpmhpd_desc qcs615_desc = {
816853
static const struct of_device_id rpmhpd_match_table[] = {
817854
{ .compatible = "qcom,eliza-rpmhpd", .data = &eliza_desc },
818855
{ .compatible = "qcom,glymur-rpmhpd", .data = &glymur_desc },
856+
{ .compatible = "qcom,hawi-rpmhpd", .data = &hawi_desc },
819857
{ .compatible = "qcom,kaanapali-rpmhpd", .data = &kaanapali_desc },
820858
{ .compatible = "qcom,milos-rpmhpd", .data = &milos_desc },
821859
{ .compatible = "qcom,qcs615-rpmhpd", .data = &qcs615_desc },

0 commit comments

Comments
 (0)