mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
msm: camera: ife: Re-enable auto clock gating
Auto clock gating was disabled to aid in certain debug scenarios. However, for normal operation the expectation is for auto clock gating to be enabled. The writes could be removed as enabled is the default, but no harm in being explicit. CRs-Fixed: 2584631 Change-Id: I63336d12b94f270c4962281e14e879a6207ea386 Signed-off-by: Fernando Pacheco <fpacheco@codeaurora.org>
This commit is contained in:
parent
ede10a2048
commit
2b5f776630
1 changed files with 10 additions and 6 deletions
|
|
@ -323,19 +323,23 @@ int cam_vfe_top_ver3_init_hw(void *device_priv,
|
|||
|
||||
top_priv->hw_clk_rate = 0;
|
||||
|
||||
/* Disable clock gating at IFE top */
|
||||
CAM_INFO(CAM_ISP, "Disable clock gating at IFE top");
|
||||
cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
|
||||
common_data.common_reg->core_cgc_ovd_0, 0xFFFFFFFF);
|
||||
/**
|
||||
* Auto clock gating is enabled by default, but no harm
|
||||
* in setting the value we expect.
|
||||
*/
|
||||
CAM_INFO(CAM_ISP, "Enabling clock gating at IFE top");
|
||||
|
||||
cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
|
||||
common_data.common_reg->core_cgc_ovd_1, 0xFF);
|
||||
common_data.common_reg->core_cgc_ovd_0, 0x0);
|
||||
|
||||
cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
|
||||
common_data.common_reg->ahb_cgc_ovd, 0x1);
|
||||
common_data.common_reg->core_cgc_ovd_1, 0x0);
|
||||
|
||||
cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
|
||||
common_data.common_reg->noc_cgc_ovd, 0x1);
|
||||
common_data.common_reg->ahb_cgc_ovd, 0x0);
|
||||
|
||||
cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
|
||||
common_data.common_reg->noc_cgc_ovd, 0x0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue