From 1b441dac644532d9d50c2dc8712a3cf0c5003856 Mon Sep 17 00:00:00 2001 From: Charlie Huang Date: Mon, 23 Apr 2012 19:09:15 -0700 Subject: 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 Reviewed-on: http://git-master/r/98330 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Wei Chen Reviewed-by: Frank Chen Reviewed-by: Jon Mayo --- include/media/ov5650.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/media') diff --git a/include/media/ov5650.h b/include/media/ov5650.h index 5c4a87cfbe8d..a8f70a592d89 100644 --- a/include/media/ov5650.h +++ b/include/media/ov5650.h @@ -32,6 +32,7 @@ #define OV5650_IOCTL_SET_GROUP_HOLD _IOW('o', 8, struct ov5650_ae) #define OV5650_IOCTL_SET_CAMERA_MODE _IOW('o', 10, __u32) #define OV5650_IOCTL_SYNC_SENSORS _IOW('o', 11, __u32) +#define OV5650_IOCTL_GET_SENSORDATA _IOR('o', 12, struct ov5650_sensordata) /* OV5650 registers */ #define OV5650_SRM_GRUP_ACCESS (0x3212) @@ -64,6 +65,11 @@ enum ov5650_test_pattern { TEST_PATTERN_CHECKERBOARD }; +struct ov5650_sensordata { + __u32 fuse_id_size; + __u8 fuse_id[16]; +}; + struct ov5650_mode { int xres; int yres; -- cgit v1.2.3