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

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

Merge "msm: camera: isp: Disable clk gating in IFE top" into camera-kernel.lnx.4.0

parents 6addc5d8 0181a16f
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -366,23 +366,20 @@ int cam_vfe_top_ver3_init_hw(void *device_priv,

	top_priv->hw_clk_rate = 0;

	/**
	 * Auto clock gating is enabled by default, but no harm
	 * in setting the value we expect.
	 */
	CAM_DBG(CAM_ISP, "Enabling clock gating at IFE top");
	/* Disable clock gating at IFE top */
	CAM_DBG(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, 0x0);
		common_data.common_reg->core_cgc_ovd_0, 0xFFFFFFFF);

	cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
		common_data.common_reg->core_cgc_ovd_1, 0x0);
		common_data.common_reg->core_cgc_ovd_1, 0xFF);

	cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
		common_data.common_reg->ahb_cgc_ovd, 0x0);
		common_data.common_reg->ahb_cgc_ovd, 0x1);

	cam_soc_util_w_mb(common_data.soc_info, VFE_CORE_BASE_IDX,
		common_data.common_reg->noc_cgc_ovd, 0x0);
		common_data.common_reg->noc_cgc_ovd, 0x1);

	top_priv->top_common.hw_version =
		cam_io_r_mb(common_data.soc_info->reg_map[0].mem_base +