Skip to content
Snippets Groups Projects
Commit 8d913fe4 authored by David C. Park's avatar David C. Park Committed by Pat Tjin
Browse files

camera: exclude fab code from chip id check for IMX179


The chip id consists of fab code (4bit) and sensor id (12bit).
For IMX179, chip id(0x8179): fab code(0x8) + sensor id(0x179)
However, the fab code can be changed according fab location,
therefore the fab code should be excluded from chip id check.

Signed-off-by: default avatarDavid C. Park <davidc.park@lge.com>
Change-Id: I3050362b869bbedcafa4b7535f58554b5fdd1dfe
parent 8399c4ea
Branches
Tags
No related merge requests found
......@@ -1250,6 +1250,10 @@ int32_t msm_sensor_match_id(struct msm_sensor_ctrl_t *s_ctrl)
CDBG("%s: read id: %x expected id %x:\n", __func__, chipid,
s_ctrl->sensordata->slave_info->sensor_id);
#ifdef CONFIG_IMX179
s_ctrl->sensordata->slave_info->sensor_id &= 0xfff;
chipid &= 0xfff;
#endif
if (chipid != s_ctrl->sensordata->slave_info->sensor_id) {
pr_err("msm_sensor_match_id chip id doesnot match\n");
return -ENODEV;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment