Commit ec90637c authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson
Browse files

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: default avatarBjorn Andersson <andersson@kernel.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230313-topic-rpmpd-v3-9-06a4f448ff90@linaro.org
parent decd6e77
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -216,18 +216,22 @@ static struct rpmpd gfx_s2b_vfc = {
	.key = KEY_FLOOR_CORNER,
	.key = KEY_FLOOR_CORNER,
};
};


static struct rpmpd mx_rwmx0_lvl;
static struct rpmpd gx_rwgx0_lvl_ao;
static struct rpmpd gx_rwgx0_lvl_ao;
static struct rpmpd gx_rwgx0_lvl = {
static struct rpmpd gx_rwgx0_lvl = {
	.pd = { .name = "gx", },
	.pd = { .name = "gx", },
	.peer = &gx_rwgx0_lvl_ao,
	.peer = &gx_rwgx0_lvl_ao,
	.res_type = RPMPD_RWGX,
	.res_type = RPMPD_RWGX,
	.parent = &mx_rwmx0_lvl.pd,
	.res_id = 0,
	.res_id = 0,
	.key = KEY_LEVEL,
	.key = KEY_LEVEL,
};
};


static struct rpmpd mx_rwmx0_lvl_ao;
static struct rpmpd gx_rwgx0_lvl_ao = {
static struct rpmpd gx_rwgx0_lvl_ao = {
	.pd = { .name = "gx_ao", },
	.pd = { .name = "gx_ao", },
	.peer = &gx_rwgx0_lvl,
	.peer = &gx_rwgx0_lvl,
	.parent = &mx_rwmx0_lvl_ao.pd,
	.active_only = true,
	.active_only = true,
	.res_type = RPMPD_RWGX,
	.res_type = RPMPD_RWGX,
	.res_id = 0,
	.res_id = 0,