Change-Id: I57cbdb7aec24a1dd8942e8fa341a735fdacf08e5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
}
/* Serial number is BE. */
- info->otp_data.serial_num = __be32_to_cpu(info->otp_data.serial_num);
+ info->otp_data.module_serial_num =
+ __be32_to_cpu(info->otp_data.module_serial_num);
/* Read the CRC and compared to computed. */
i = offsetof(struct ov5650_otp_data, crc);
};
struct ov5650_otp_data {
- __u8 reserved1[6];
+ /* Only the first 5 bytes are actually used. */
+ __u8 sensor_serial_num[6];
__u8 part_num[8];
__u8 lens_id[1];
__u8 manufacture_id[2];
__u8 manufacture_date[9];
__u8 manufacture_line[2];
- __u32 serial_num;
- __u8 focuser_cal[16];
+ __u32 module_serial_num;
+ __u8 focuser_liftoff[2];
+ __u8 focuser_macro[2];
+ __u8 reserved1[12];
__u8 shutter_cal[16];
__u8 reserved2[183];
+ /* Big-endian. CRC16 over 0x00-0x41 (inclusive) */
__u16 crc;
__u8 reserved3[3];
__u8 auto_load[2];
struct ov5650_mode {
int xres;
int yres;
- u32 frame_length;
- u32 coarse_time;
- u16 gain;
+ __u32 frame_length;
+ __u32 coarse_time;
+ __u16 gain;
};
#ifdef __KERNEL__
struct ov5650_platform_data {