Skip to content

Commit ec90637

Browse files
konradybcioandersson
authored andcommitted
soc: qcom: rpmpd: Hook up VDDMX as parent of SM6375 VDDGX
The GPU core clock requires that both VDDGX and VDDMX domains are scaled at the same rate at the same time (well, MX just before GX but you get the idea). Set MX as parent of GX to take care of that. Suggested-by: Bjorn Andersson <andersson@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230313-topic-rpmpd-v3-9-06a4f448ff90@linaro.org
1 parent decd6e7 commit ec90637

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/soc/qcom/rpmpd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,22 @@ static struct rpmpd gfx_s2b_vfc = {
216216
.key = KEY_FLOOR_CORNER,
217217
};
218218

219+
static struct rpmpd mx_rwmx0_lvl;
219220
static struct rpmpd gx_rwgx0_lvl_ao;
220221
static struct rpmpd gx_rwgx0_lvl = {
221222
.pd = { .name = "gx", },
222223
.peer = &gx_rwgx0_lvl_ao,
223224
.res_type = RPMPD_RWGX,
225+
.parent = &mx_rwmx0_lvl.pd,
224226
.res_id = 0,
225227
.key = KEY_LEVEL,
226228
};
227229

230+
static struct rpmpd mx_rwmx0_lvl_ao;
228231
static struct rpmpd gx_rwgx0_lvl_ao = {
229232
.pd = { .name = "gx_ao", },
230233
.peer = &gx_rwgx0_lvl,
234+
.parent = &mx_rwmx0_lvl_ao.pd,
231235
.active_only = true,
232236
.res_type = RPMPD_RWGX,
233237
.res_id = 0,

0 commit comments

Comments
 (0)