Skip to content

Commit 4c2aeca

Browse files
Jagadeesh Konastorulf
authored andcommitted
clk: qcom: videocc: Use HW_CTRL_TRIGGER for SM8250, SC7280 vcodec GDSC's
For Venus V6 variant SoCs(sm8250, sc7280), the venus driver uses the newly introduced dev_pm_genpd_set_hwmode() API to switch the vcodec GDSC to HW/SW control modes at runtime. Hence use HW_CTRL_TRIGGER flag for vcodec GDSC's on sm8250, sc7280 to register the set_hwmode_dev & get_hwmode_dev callbacks for vcodec GDSC and allow the GDSC mode to be changed using dev_pm_genpd_set_hwmode() API. Signed-off-by: Jagadeesh Kona <[email protected]> Signed-off-by: Abel Vesa <[email protected]> Reviewed-by: Taniya Das <[email protected]> Acked-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent f7ccdaa commit 4c2aeca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/clk/qcom/videocc-sc7280.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static struct gdsc mvs0_gdsc = {
236236
.name = "mvs0_gdsc",
237237
},
238238
.pwrsts = PWRSTS_OFF_ON,
239-
.flags = HW_CTRL | RETAIN_FF_ENABLE,
239+
.flags = HW_CTRL_TRIGGER | RETAIN_FF_ENABLE,
240240
};
241241

242242
static struct gdsc mvsc_gdsc = {

drivers/clk/qcom/videocc-sm8250.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static struct gdsc mvs0_gdsc = {
293293
.pd = {
294294
.name = "mvs0_gdsc",
295295
},
296-
.flags = HW_CTRL,
296+
.flags = HW_CTRL_TRIGGER,
297297
.pwrsts = PWRSTS_OFF_ON,
298298
};
299299

@@ -302,7 +302,7 @@ static struct gdsc mvs1_gdsc = {
302302
.pd = {
303303
.name = "mvs1_gdsc",
304304
},
305-
.flags = HW_CTRL,
305+
.flags = HW_CTRL_TRIGGER,
306306
.pwrsts = PWRSTS_OFF_ON,
307307
};
308308

0 commit comments

Comments
 (0)