Commit 1f614f40 authored by Erik Andrén's avatar Erik Andrén Committed by Mauro Carvalho Chehab

V4L/DVB (10040): m5602 - ov9650: Activate variopixel

Signed-off-by: default avatarErik Andrén <erik.andren@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 03f46de9
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#define OV9650_PID 0x0a #define OV9650_PID 0x0a
#define OV9650_VER 0x0b #define OV9650_VER 0x0b
#define OV9650_COM3 0x0c #define OV9650_COM3 0x0c
#define OV9650_COM4 0x0d
#define OV9650_COM5 0x0e #define OV9650_COM5 0x0e
#define OV9650_COM6 0x0f #define OV9650_COM6 0x0f
#define OV9650_AECH 0x10 #define OV9650_AECH 0x10
...@@ -109,6 +110,8 @@ ...@@ -109,6 +110,8 @@
#define OV9650_SYSTEM_CLK_SEL (1 << 7) #define OV9650_SYSTEM_CLK_SEL (1 << 7)
#define OV9650_SLAM_MODE (1 << 4) #define OV9650_SLAM_MODE (1 << 4)
#define OV9650_QVGA_VARIOPIXEL (1 << 7)
#define OV9650_VFLIP (1 << 4) #define OV9650_VFLIP (1 << 4)
#define OV9650_HFLIP (1 << 5) #define OV9650_HFLIP (1 << 5)
...@@ -427,6 +430,10 @@ static const unsigned char init_ov9650[][3] = ...@@ -427,6 +430,10 @@ static const unsigned char init_ov9650[][3] =
/* Set the high bits of the exposure value */ /* Set the high bits of the exposure value */
{SENSOR, OV9650_AECH, ((EXPOSURE_DEFAULT & 0xff00) >> 8)}, {SENSOR, OV9650_AECH, ((EXPOSURE_DEFAULT & 0xff00) >> 8)},
/* Enable VARIOPIXEL */
{SENSOR, OV9650_COM3, OV9650_VARIOPIXEL},
{SENSOR, OV9650_COM4, OV9650_QVGA_VARIOPIXEL},
/* Set the low bits of the exposure value */ /* Set the low bits of the exposure value */
{SENSOR, OV9650_COM1, (EXPOSURE_DEFAULT & 0xff)}, {SENSOR, OV9650_COM1, (EXPOSURE_DEFAULT & 0xff)},
{SENSOR, OV9650_GAIN, GAIN_DEFAULT}, {SENSOR, OV9650_GAIN, GAIN_DEFAULT},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment