msm: eva: prepare enable video_cc_mvs1_clk_src
prepare and enable video_cc_mvs1_clk_src in power on core sequence; and disable and unprepare in power off core sequence. Change-Id: I5558516bb54a7886e9faf9739a0743d8ad59d81b Signed-off-by: Yu SI <ysi@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

szülő
5a3b831097
commit
4b4bb300cf
@@ -3702,6 +3702,14 @@ static int __power_on_core(struct iris_hfi_device *device)
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc = msm_cvp_prepare_enable_clk(device, "video_cc_mvs1_clk_src");
|
||||
if (rc) {
|
||||
dprintk(CVP_ERR, "Failed to enable video_cc_mvs1_clk_src:%d\n",
|
||||
rc);
|
||||
__disable_regulator(device, "cvp-core");
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc = msm_cvp_prepare_enable_clk(device, "core_clk");
|
||||
if (rc) {
|
||||
dprintk(CVP_ERR, "Failed to enable core_clk: %d\n", rc);
|
||||
@@ -3939,6 +3947,7 @@ static int __power_off_core(struct iris_hfi_device *device)
|
||||
}
|
||||
__disable_regulator(device, "cvp-core");
|
||||
msm_cvp_disable_unprepare_clk(device, "core_clk");
|
||||
msm_cvp_disable_unprepare_clk(device, "video_cc_mvs1_clk_src");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -4019,6 +4028,7 @@ static int __power_off_core(struct iris_hfi_device *device)
|
||||
|
||||
__disable_regulator(device, "cvp-core");
|
||||
msm_cvp_disable_unprepare_clk(device, "core_clk");
|
||||
msm_cvp_disable_unprepare_clk(device, "video_cc_mvs1_clk_src");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user