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

Commit 1e4b18ee authored by Abhilash Kumar's avatar Abhilash Kumar Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: camif: Select epoch config to half of frame



Change epoch config to half of the frame for all devices
other than SDM845, SDM710 and SM6150.

Change-Id: Ideed4d9238a2f6192f14c0ba65313ce01ae429d0
Signed-off-by: default avatarAbhilash Kumar <krabhi@codeaurora.org>
parent d151504a
Loading
Loading
Loading
Loading
+9 −17
Original line number Diff line number Diff line
@@ -261,8 +261,15 @@ static int cam_vfe_camif_resource_start(

	/* epoch config */
	switch (soc_private->cpas_version) {
	case CAM_CPAS_TITAN_175_V101:
	case CAM_CPAS_TITAN_175_V100:
	case CAM_CPAS_TITAN_170_V100:
	case CAM_CPAS_TITAN_170_V110:
	case CAM_CPAS_TITAN_170_V120:
	case CAM_CPAS_TITAN_150_V100:
		cam_io_w_mb(rsrc_data->reg_data->epoch_line_cfg,
				rsrc_data->mem_base +
				rsrc_data->camif_reg->epoch_irq);
		break;
	default:
		epoch0_irq_mask = ((rsrc_data->last_line -
				rsrc_data->first_line) / 2) +
				rsrc_data->first_line;
@@ -280,21 +287,6 @@ static int cam_vfe_camif_resource_start(
				rsrc_data->last_line,
				computed_epoch_line_cfg);
		break;
	case CAM_CPAS_TITAN_170_V100:
	case CAM_CPAS_TITAN_170_V110:
	case CAM_CPAS_TITAN_170_V120:
	case CAM_CPAS_TITAN_150_V100:
		cam_io_w_mb(rsrc_data->reg_data->epoch_line_cfg,
				rsrc_data->mem_base +
				rsrc_data->camif_reg->epoch_irq);
		break;
	default:
		cam_io_w_mb(rsrc_data->reg_data->epoch_line_cfg,
				rsrc_data->mem_base +
				rsrc_data->camif_reg->epoch_irq);
		CAM_WARN(CAM_ISP, "Hardware version not proper: 0x%x",
			soc_private->cpas_version);
		break;
	}

	camif_res->res_state = CAM_ISP_RESOURCE_STATE_STREAMING;