/* init VGA 640*480 */
static struct reginfo sensor_init_data[] =
{
-#if 1
{0x3078, 0x02},
{0x304d, 0x45},
{0x30a7, 0x5e},
#else
//{0x307c, 0x13}, // flip && mirror
- {0x307c, 0x11}, // flip && mirror ,by FAE.
- {0x3090, 0xc8},
+ {0x307c, 0x10}, // flip && mirror ,by FAE.
+ {0x3090, 0xc0},
#endif
-#else
-//640 480 ;XGA->XGA;;
- {0x3012, 0x10},
- {0x3023, 0x06},
- {0x3026, 0x03},
- {0x3027, 0x04},
- {0x302a, 0x03},
- {0x302b, 0x10},
- {0x3075, 0x24},
- {0x300d, 0x01},
- {0x30d7, 0x90},
- {0x3069, 0x04},
- {0x303e, 0x00},
- {0x303f, 0xc0},
- {0x3302, 0xef},
- {0x335f, 0x34},
- {0x3360, 0x0c},
- {0x3361, 0x04},
- {0x3362, 0x34},
- {0x3363, 0x08},
- {0x3364, 0x04},
- {0x3403, 0x42},
- {0x3088, 0x04},
- {0x3089, 0x00},
- {0x308a, 0x03},
- {0x308b, 0x00},
- {0x300e, 0x32},
- {0x300f, 0x21},
- {0x3010, 0x20},
- {0x3011, 0x01},
- {0x304c, 0x82},
-
-//;XGA->VGA
- {0x3302, 0xef},
- {0x335f, 0x34},
- {0x3360, 0x0c},
- {0x3361, 0x04},
- {0x3362, 0x12},
- {0x3363, 0x88},
- {0x3364, 0xe4},
- {0x3403, 0x42},
- {0x3088, 0x12},
- {0x3089, 0x80},
- {0x308a, 0x01},
- {0x308b, 0xe0},
- {0x304c, 0x85},
-#endif
+ {0x3012, 0x10},
+ {0x3366, 0x15},
+ {0x3023, 0x06},
+ {0x3026, 0x03},
+ {0x3027, 0x04},
+ {0x302a, 0x03},
+ {0x302b, 0x39},
+ {0x3075, 0x24},
+ {0x300d, 0x01},
+ {0x30d7, 0x90},
+ {0x3069, 0x04},
+ {0x303e, 0x00},
+ {0x303f, 0xc0},
+ {0x300e, 0x32},
+ {0x300f, 0x21},
+ {0x3010, 0x20},
+ {0x3011, 0x01},
+ // XGA-VGA
+ {0x3302, 0xef},
+ {0x335f, 0x34},
+ {0x3360, 0x0c},
+ {0x3361, 0x04},
+ {0x3362, 0x12},
+ {0x3363, 0x88},
+ {0x3364, 0xe4},
+ {0x3403, 0x42},
+ {0x3088, 0x02},
+ {0x3089, 0x88},// 0x80, by FAE.
+ {0x308a, 0x01},
+ {0x308b, 0xe4},// 0xe0, by FAE.
+ {0x304c, 0x84}, //0x83, by FAE.
+
{0x0000 ,0x00},
};
}
static const struct sensor_datafmt sensor_colour_fmts[] = {
- {V4L2_MBUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_JPEG},
- {V4L2_MBUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG}
+ {V4L2_MBUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG} ,
+ {V4L2_MBUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_JPEG}
};
enum sensor_wq_cmd
{