Skip to content

Commit fc3985b

Browse files
Vladimir Zapolskiyandersson
authored andcommitted
clk: qcom: camcc-sm8250: Specify Titan GDSC power domain as a parent to IPE/BPS/SBI
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 described in the CAMCC driver. Establish the power domain hierarchy with a Titan GDSC set as a parent of other GDSC power domains provided by the SM8250 camera clock controller, including IPE, BPS and SBI 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-6-vladimir.zapolskiy@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 37cf953 commit fc3985b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/clk/qcom/camcc-sm8250.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,6 +2213,7 @@ static struct gdsc bps_gdsc = {
22132213
.name = "bps_gdsc",
22142214
},
22152215
.flags = HW_CTRL | POLL_CFG_GDSCR,
2216+
.parent = &titan_top_gdsc.pd,
22162217
.pwrsts = PWRSTS_OFF_ON,
22172218
};
22182219

@@ -2222,6 +2223,7 @@ static struct gdsc ipe_0_gdsc = {
22222223
.name = "ipe_0_gdsc",
22232224
},
22242225
.flags = HW_CTRL | POLL_CFG_GDSCR,
2226+
.parent = &titan_top_gdsc.pd,
22252227
.pwrsts = PWRSTS_OFF_ON,
22262228
};
22272229

@@ -2231,6 +2233,7 @@ static struct gdsc sbi_gdsc = {
22312233
.name = "sbi_gdsc",
22322234
},
22332235
.flags = HW_CTRL | POLL_CFG_GDSCR,
2236+
.parent = &titan_top_gdsc.pd,
22342237
.pwrsts = PWRSTS_OFF_ON,
22352238
};
22362239

0 commit comments

Comments
 (0)