Skip to content

Commit 37cf953

Browse files
Vladimir Zapolskiyandersson
authored andcommitted
clk: qcom: camcc-sm7150: Specify Titan GDSC power domain as a parent to IPEx and BPS
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 SM7150 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-5-vladimir.zapolskiy@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent ee2867c commit 37cf953

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/clk/qcom/camcc-sm7150.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,7 @@ static struct gdsc camcc_bps_gdsc = {
18461846
.name = "camcc_bps_gdsc",
18471847
},
18481848
.flags = HW_CTRL | POLL_CFG_GDSCR,
1849+
.parent = &camcc_titan_top_gdsc.pd,
18491850
.pwrsts = PWRSTS_OFF_ON,
18501851
};
18511852

@@ -1875,6 +1876,7 @@ static struct gdsc camcc_ipe_0_gdsc = {
18751876
.name = "camcc_ipe_0_gdsc",
18761877
},
18771878
.flags = HW_CTRL | POLL_CFG_GDSCR,
1879+
.parent = &camcc_titan_top_gdsc.pd,
18781880
.pwrsts = PWRSTS_OFF_ON,
18791881
};
18801882

@@ -1884,6 +1886,7 @@ static struct gdsc camcc_ipe_1_gdsc = {
18841886
.name = "camcc_ipe_1_gdsc",
18851887
},
18861888
.flags = HW_CTRL | POLL_CFG_GDSCR,
1889+
.parent = &camcc_titan_top_gdsc.pd,
18871890
.pwrsts = PWRSTS_OFF_ON,
18881891
};
18891892

0 commit comments

Comments
 (0)