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 Wadekar <vwadekar@nvidia.com>
Mon, 14 May 2012 12:28:08 +0000 (17:28 +0530)
commiteb0e103d1410e884561b41755367d2875ef4d454
tree99d01d19e8c2fa880c8feef8f7e185699bb02a52
parentb50d49d4d72d77368f7c32f4b3239a3efdbb01ef
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