media: video: tegra: ov5650: read sensor fuse id
authorCharlie Huang <chahuang@nvidia.com>
Tue, 24 Apr 2012 02:09:15 +0000 (19:09 -0700)
committerVarun Colbert <vcolbert@nvidia.com>
Fri, 4 May 2012 17:46:08 +0000 (10:46 -0700)
commit1b441dac644532d9d50c2dc8712a3cf0c5003856
treefd192b81bd54564f5d4d589311b5ef7bce2c6296
parent7a909302fe39d29ed83426e1b4520775392b71cc
media: video: tegra: ov5650: read sensor fuse id

The sequence of read fuse id is:

1. write to OTP index register 0x3d00.
2. read out byte from ox3d04.
3. repeat step 1 to the next byte with its index respectively.

also fixed ov5650_read_reg always fail issue.

bug 957657

Change-Id: I649a7765320d0d4be8111a7f523d8487b872b620
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/98330
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wei Chen <wechen@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
drivers/media/video/tegra/ov5650.c
include/media/ov5650.h