Skip to content

Commit d937794

Browse files
0xB0Dandersson
authored andcommitted
clk: qcom: camcc-x1e80100: Set titan_top_gdsc as the parent GDSC of subordinate GDSCs
The Titan TOP GDSC is the parent GDSC for all other GDSCs in the CAMCC block. None of the subordinate blocks will switch on without the parent GDSC switched on. Fixes: 76126a5 ("clk: qcom: Add camcc clock driver for x1e80100") Acked-by: Rajendra Nayak <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Bryan O'Donoghue <[email protected]> Reviewed-by: Vladimir Zapolskiy <[email protected]> Link: https://lore.kernel.org/r/20241227-b4-linux-next-24-12-16-titan-top-gdsc-v1-1-c96ef62fc307@linaro.org Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 1474149 commit d937794

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/clk/qcom/camcc-x1e80100.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,8 @@ static struct clk_branch cam_cc_sfe_0_fast_ahb_clk = {
22122212
},
22132213
};
22142214

2215+
static struct gdsc cam_cc_titan_top_gdsc;
2216+
22152217
static struct gdsc cam_cc_bps_gdsc = {
22162218
.gdscr = 0x10004,
22172219
.en_rest_wait_val = 0x2,
@@ -2221,6 +2223,7 @@ static struct gdsc cam_cc_bps_gdsc = {
22212223
.name = "cam_cc_bps_gdsc",
22222224
},
22232225
.pwrsts = PWRSTS_OFF_ON,
2226+
.parent = &cam_cc_titan_top_gdsc.pd,
22242227
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
22252228
};
22262229

@@ -2233,6 +2236,7 @@ static struct gdsc cam_cc_ife_0_gdsc = {
22332236
.name = "cam_cc_ife_0_gdsc",
22342237
},
22352238
.pwrsts = PWRSTS_OFF_ON,
2239+
.parent = &cam_cc_titan_top_gdsc.pd,
22362240
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
22372241
};
22382242

@@ -2245,6 +2249,7 @@ static struct gdsc cam_cc_ife_1_gdsc = {
22452249
.name = "cam_cc_ife_1_gdsc",
22462250
},
22472251
.pwrsts = PWRSTS_OFF_ON,
2252+
.parent = &cam_cc_titan_top_gdsc.pd,
22482253
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
22492254
};
22502255

@@ -2257,6 +2262,7 @@ static struct gdsc cam_cc_ipe_0_gdsc = {
22572262
.name = "cam_cc_ipe_0_gdsc",
22582263
},
22592264
.pwrsts = PWRSTS_OFF_ON,
2265+
.parent = &cam_cc_titan_top_gdsc.pd,
22602266
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
22612267
};
22622268

@@ -2269,6 +2275,7 @@ static struct gdsc cam_cc_sfe_0_gdsc = {
22692275
.name = "cam_cc_sfe_0_gdsc",
22702276
},
22712277
.pwrsts = PWRSTS_OFF_ON,
2278+
.parent = &cam_cc_titan_top_gdsc.pd,
22722279
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
22732280
};
22742281

0 commit comments

Comments
 (0)