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

Commit 78f32eb3 authored by Viswanadha Raju Thotakura's avatar Viswanadha Raju Thotakura
Browse files

msm: camera: sensor: Update the config setting for csiphy



CSIPhy configuration is updated for combo mode support for 20nm device.

Change-Id: I83834476e2fd994047a6e2b71775dd0cae3351c0
Signed-off-by: default avatarViswanadha Raju Thotakura <viswanad@codeaurora.org>
parent acdce027
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ static int msm_csiphy_lane_config(struct csiphy_device *csiphy_dev,
	if (csiphy_dev->hw_version >= CSIPHY_VERSION_V30) {
		val = msm_camera_io_r(csiphy_dev->clk_mux_base);
		if (csiphy_params->combo_mode &&
			(csiphy_params->lane_mask & 0x18)) {
			(csiphy_params->lane_mask & 0x18) == 0x18) {
			val &= ~0xf0;
			val |= csiphy_params->csid_core << 4;
		} else {
@@ -166,6 +166,18 @@ static int msm_csiphy_lane_config(struct csiphy_device *csiphy_dev,
			} else if (j == 1) {
				lane_val = 0x4;
			}
			if (csiphy_params->combo_mode == 1) {
				/*
				* In the case of combo mode, the clock is always
				* 4th lane for the second sensor.
				* So check whether the sensor is of one lane
				* sensor and curr_lane for 0.
				*/
				if (curr_lane == 0 &&
					((csiphy_params->lane_mask &
						0x18) == 0x18))
					lane_val = 0x4;
			}
			msm_camera_io_w(lane_val, csiphybase +
				csiphy_dev->ctrl_reg->csiphy_reg.
				mipi_csiphy_lnn_misc1_addr + 0x40*j);