Skip to content

Commit ee2867c

Browse files
Vladimir Zapolskiyandersson
authored andcommitted
clk: qcom: camcc-sdm845: Specify Titan GDSC power domain as a parent to other
When a consumer turns on/off a power domain dependent on another power domain in hardware, the parent power domain shall be turned on/off by the power domain provider as well, and to get it the power domain hardware hierarchy shall be properly described in the power domain provider driver. Establish the power domain hierarchy with a Titan GDSC set as a parent of other GDSC power domains provided by the SDM845 camera clock controller, including IPE0/1 and BPS ones. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Link: https://lore.kernel.org/r/20251021234450.2271279-4-vladimir.zapolskiy@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent a76ce61 commit ee2867c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/clk/qcom/camcc-sdm845.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,7 @@ static struct gdsc bps_gdsc = {
15431543
.name = "bps_gdsc",
15441544
},
15451545
.flags = HW_CTRL | POLL_CFG_GDSCR,
1546+
.parent = &titan_top_gdsc.pd,
15461547
.pwrsts = PWRSTS_OFF_ON,
15471548
};
15481549

@@ -1552,6 +1553,7 @@ static struct gdsc ipe_0_gdsc = {
15521553
.name = "ipe_0_gdsc",
15531554
},
15541555
.flags = HW_CTRL | POLL_CFG_GDSCR,
1556+
.parent = &titan_top_gdsc.pd,
15551557
.pwrsts = PWRSTS_OFF_ON,
15561558
};
15571559

@@ -1561,6 +1563,7 @@ static struct gdsc ipe_1_gdsc = {
15611563
.name = "ipe_1_gdsc",
15621564
},
15631565
.flags = HW_CTRL | POLL_CFG_GDSCR,
1566+
.parent = &titan_top_gdsc.pd,
15641567
.pwrsts = PWRSTS_OFF_ON,
15651568
};
15661569

0 commit comments

Comments
 (0)