Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f66e56ea authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: ife: Re-enable auto clock gating" into camera-kernel.lnx.4.0

parents 2601946e 2b5f7766
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -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");
	/**
	 * 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_0, 0xFFFFFFFF);
		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->core_cgc_ovd_1, 0xFF);
		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->ahb_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, 0x1);
		common_data.common_reg->noc_cgc_ovd, 0x0);

	return 0;
}