aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-11-17 04:14:05 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-11-17 04:14:05 +0000
commit4c944fa10c87e8cffc4cd8a608f503e4c498f0b6 (patch)
treee18893c58aa1b2fea1b5e81672256d139cc1c32b
parent43661f8524f634763902173380771e5710cdb120 (diff)
parent0110eb508dbaa2c88557e39b1dfaac35b3962c86 (diff)
downloadimx-v4.9-o-mr1-iot-preview-6.tar.gz
Snap for 4456800 from 0110eb508dbaa2c88557e39b1dfaac35b3962c86 to oc-mr1-iot-releaseandroid-o-mr1-iot-preview-6o-mr1-iot-preview-6
Change-Id: I8e2e74a83abd960522c7df513c3b6be8e2be4c7f
-rw-r--r--drivers/media/platform/mxc/subdev/ov5645_mipi.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/drivers/media/platform/mxc/subdev/ov5645_mipi.c b/drivers/media/platform/mxc/subdev/ov5645_mipi.c
index d29c87eb6d13..3e379b470b17 100644
--- a/drivers/media/platform/mxc/subdev/ov5645_mipi.c
+++ b/drivers/media/platform/mxc/subdev/ov5645_mipi.c
@@ -49,7 +49,8 @@ enum ov5645_mode {
ov5645_mode_720P_1280_720 = 2,
ov5645_mode_1080P_1920_1080 = 3,
ov5645_mode_QSXGA_2592_1944 = 4,
- ov5645_mode_MAX = 5,
+ ov5645_mode_QCIF_176_144 = 5,
+ ov5645_mode_MAX = 6,
ov5645_mode_INIT = 0xff, /*only for sensor init*/
};
@@ -343,6 +344,28 @@ static struct reg_value ov5645_setting_15fps_QSXGA_2592_1944[] = {
{0x4202, 0x00, 0, 0}, /* stream on the sensor */
};
+static struct reg_value ov5645_setting_30fps_QCIF_176_144[] = {
+ {0x3008, 0x42, 0, 0},
+ {0x3035, 0x14, 0, 0}, {0x3036, 0x38, 0, 0}, {0x3c07, 0x08, 0, 0},
+ {0x3c09, 0x1c, 0, 0}, {0x3c0a, 0x9c, 0, 0}, {0x3c0b, 0x40, 0, 0},
+ {0x3820, 0x41, 0, 0}, {0x3821, 0x07, 0, 0}, {0x3814, 0x31, 0, 0},
+ {0x3815, 0x31, 0, 0}, {0x3800, 0x00, 0, 0}, {0x3801, 0x00, 0, 0},
+ {0x3802, 0x00, 0, 0}, {0x3803, 0x04, 0, 0}, {0x3804, 0x0a, 0, 0},
+ {0x3805, 0x3f, 0, 0}, {0x3806, 0x07, 0, 0}, {0x3807, 0x9b, 0, 0},
+ {0x3808, 0x00, 0, 0}, {0x3809, 0xb0, 0, 0}, {0x380a, 0x00, 0, 0},
+ {0x380b, 0x90, 0, 0}, {0x380c, 0x07, 0, 0}, {0x380d, 0x68, 0, 0},
+ {0x380e, 0x03, 0, 0}, {0x380f, 0xd8, 0, 0}, {0x3810, 0x00, 0, 0},
+ {0x3811, 0x10, 0, 0}, {0x3812, 0x00, 0, 0}, {0x3813, 0x06, 0, 0},
+ {0x3618, 0x00, 0, 0}, {0x3612, 0x29, 0, 0}, {0x3708, 0x64, 0, 0},
+ {0x3709, 0x52, 0, 0}, {0x370c, 0x03, 0, 0}, {0x3a02, 0x03, 0, 0},
+ {0x3a03, 0xd8, 0, 0}, {0x3a08, 0x01, 0, 0}, {0x3a09, 0x27, 0, 0},
+ {0x3a0a, 0x00, 0, 0}, {0x3a0b, 0xf6, 0, 0}, {0x3a0e, 0x03, 0, 0},
+ {0x3a0d, 0x04, 0, 0}, {0x3a14, 0x03, 0, 0}, {0x3a15, 0xd8, 0, 0},
+ {0x4001, 0x02, 0, 0}, {0x4004, 0x02, 0, 0}, {0x4713, 0x03, 0, 0},
+ {0x4407, 0x04, 0, 0}, {0x460b, 0x35, 0, 0}, {0x460c, 0x22, 0, 0},
+ {0x3824, 0x02, 0, 0}, {0x5001, 0xa3, 0, 0},
+};
+
static struct ov5645_mode_info ov5645_mode_info_data[2][ov5645_mode_MAX + 1] = {
{
{ov5645_mode_VGA_640_480, -1, 0, 0, NULL, 0},
@@ -352,6 +375,7 @@ static struct ov5645_mode_info ov5645_mode_info_data[2][ov5645_mode_MAX + 1] = {
{ov5645_mode_QSXGA_2592_1944, SCALING, 2592, 1944,
ov5645_setting_15fps_QSXGA_2592_1944,
ARRAY_SIZE(ov5645_setting_15fps_QSXGA_2592_1944)},
+ {ov5645_mode_QCIF_176_144, -1, 0, 0, NULL, 0},
},
{
{ov5645_mode_VGA_640_480, SUBSAMPLING, 640, 480,
@@ -367,6 +391,9 @@ static struct ov5645_mode_info ov5645_mode_info_data[2][ov5645_mode_MAX + 1] = {
ov5645_setting_30fps_1080P_1920_1080,
ARRAY_SIZE(ov5645_setting_30fps_1080P_1920_1080)},
{ov5645_mode_QSXGA_2592_1944, -1, 0, 0, NULL, 0},
+ {ov5645_mode_QCIF_176_144, SUBSAMPLING, 176, 144,
+ ov5645_setting_30fps_QCIF_176_144,
+ ARRAY_SIZE(ov5645_setting_30fps_QCIF_176_144)},
},
};