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

Commit cce99f8e authored by Ayush Kumar's avatar Ayush Kumar
Browse files

msm: camera: cpas: Add version map entry for 680 titan version



This change add cpas hw version map entry for 680 titan
version. And remove cpas version check for ubwc support.

CRs-Fixed: 2825675
Change-Id: I858838a5a774c964a1a09d96114442f69058670a
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent d12abfb4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -131,6 +131,15 @@ static const uint32_t cam_cpas_hw_version_map
		0,
		CAM_CPAS_TITAN_570_V200,
	},
	/* for camera_680 */
	{
		CAM_CPAS_TITAN_680_V100,
		0,
		0,
		0,
		0,
		0,
	},
	/* for camera_165 */
	{
		CAM_CPAS_TITAN_165_V100,
+21 −26
Original line number Diff line number Diff line
@@ -58,11 +58,11 @@ static int cam_vfe_get_dt_properties(struct cam_hw_soc_info *soc_info)
		goto pid;
	}

	switch (soc_info->hw_version) {
	case CAM_CPAS_TITAN_480_V100:
	case CAM_CPAS_TITAN_580_V100:
	case CAM_CPAS_TITAN_570_V200:
	case CAM_CPAS_TITAN_165_V100:
	if (!of_property_read_bool(of_node, "ubwc-static-cfg")) {
		CAM_DBG(CAM_ISP, "ubwc-static-cfg not supported");
		goto pid;
	}

	num_ubwc_cfg = of_property_count_u32_elems(of_node,
		"ubwc-static-cfg");

@@ -80,13 +80,8 @@ static int cam_vfe_get_dt_properties(struct cam_hw_soc_info *soc_info)
		if (rc < 0) {
			CAM_ERR(CAM_ISP,
				"unable to read ubwc static config");
				break;
		}
	}
		break;
	default:
		break;
	}
pid:
	/* set some default values */
	vfe_soc_private->num_pid = 0;