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

Commit c169c511 authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj
Browse files

msm: camera: cpas: new soc id for SDM712 target



New soc id is assigned for sdm712 target. Add support
for the same.

Change-Id: If89ead70045a5009d9ac29062840326edbb68d82
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent 44bdb591
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -525,9 +525,10 @@ static int cam_cpastop_poweron(struct cam_hw_info *cpas_hw)
		}
	}

	if ((soc_private && ((soc_private->soc_id == SDM710_SOC_ID) ||
	if (soc_private && ((soc_private->soc_id == SDM710_SOC_ID) ||
		(soc_private->soc_id == SDM712_SOC_ID) ||
		((soc_private->soc_id == SDM670_SOC_ID) &&
		(soc_private->hw_rev == SDM670_V1_1))))) {
		(soc_private->hw_rev == SDM670_V1_1)))) {

		struct cam_cpas_reg *reg_info;
		int tcsr_index;
@@ -585,9 +586,10 @@ static int cam_cpastop_poweroff(struct cam_hw_info *cpas_hw)
		}
	}

	if ((soc_private && ((soc_private->soc_id == SDM710_SOC_ID)
	if (soc_private && ((soc_private->soc_id == SDM710_SOC_ID)
		|| (soc_private->soc_id == SDM712_SOC_ID)
		|| ((soc_private->soc_id == SDM670_SOC_ID) &&
		(soc_private->hw_rev == SDM670_V1_1))))) {
		(soc_private->hw_rev == SDM670_V1_1)))) {

		struct cam_cpas_reg *reg_info;
		int tcsr_index;
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@
/* soc id */
#define SDM670_SOC_ID 336
#define SDM710_SOC_ID 360
#define SDM712_SOC_ID 393

/* Minor Version */
#define SDM670_V1_1 0x1