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

Commit 175247ee authored by Ravikishore Pampana's avatar Ravikishore Pampana Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: cpas: Add sm6150 camera hw version support



Camera hardware version will be read at run time. This changes
add support to sm6150 camera version ie 150.

Change-Id: I77293d1f234e798f5b86c7ffd48281ead824f468
Signed-off-by: default avatarRavikishore Pampana <rpampana@codeaurora.org>
parent f6d7fcbe
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -105,6 +105,13 @@ static int cam_cpastop_get_hw_info(struct cam_hw_info *cpas_hw,
			(hw_caps->cpas_version.minor == 0) &&
			(hw_caps->cpas_version.incr == 1))
			soc_info->hw_version = CAM_CPAS_TITAN_175_V101;
	} else if ((hw_caps->camera_version.major == 1) &&
		(hw_caps->camera_version.minor == 5) &&
		(hw_caps->camera_version.incr == 0)) {
		if ((hw_caps->cpas_version.major == 1) &&
			(hw_caps->cpas_version.minor == 0) &&
			(hw_caps->cpas_version.incr == 0))
			soc_info->hw_version = CAM_CPAS_TITAN_150_V100;
	}

	CAM_DBG(CAM_CPAS, "CPAS HW VERSION %x", soc_info->hw_version);