summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorJosh Kuo <joshk@nvidia.com>2016-11-10 21:13:00 -0500
committerBhanu Murthy V <bmurthyv@nvidia.com>2017-03-22 13:36:39 -0400
commitb58da711c608b1be3eb6b1e57881a2c706065558 (patch)
tree99f6e9a2983ffd14b289bd2ca12965e2b40d35cb /drivers/media/i2c
parent5f96844a8efad961fe95ad3ca18145adb26b7fca (diff)
drivers: imx274: Enable digital gain for 2x
Enable digital gain for 2x by default which brings the brightness of the image at 1ux. Bug 1753245 Bug 200182641 Change-Id: Ia2316d219192b9eaeea19d8ccda98b298e4fc707 Signed-off-by: Josh Kuo <joshk@nvidia.com> Reviewed-on: http://git-master/r/1251533 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/imx274_mode_tbls.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx274_mode_tbls.h b/drivers/media/i2c/imx274_mode_tbls.h
index 959fabc85..fcca28e31 100644
--- a/drivers/media/i2c/imx274_mode_tbls.h
+++ b/drivers/media/i2c/imx274_mode_tbls.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * imx274.c - imx274 sensor driver 2 * imx274.c - imx274 sensor driver
3 * 3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION, All Rights Reserved. 4 * Copyright (c) 2016-2017, NVIDIA CORPORATION, All Rights Reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -133,6 +133,8 @@ static const imx274_reg mode_3840X2160[] = {
133 {0x33A6, 0x01}, 133 {0x33A6, 0x01},
134 {0x306B, 0x05}, 134 {0x306B, 0x05},
135 135
136 /* d gain setting */
137 {0x3012, 0x01},
136 {0x300E, 0x01}, 138 {0x300E, 0x01},
137 139
138 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS}, 140 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS},
@@ -216,6 +218,8 @@ static const imx274_reg mode_3840X2160_60fps[] = {
216 {0x33A6, 0x01}, 218 {0x33A6, 0x01},
217 {0x306B, 0x05}, 219 {0x306B, 0x05},
218 220
221 /* d gain setting */
222 {0x3012, 0x01},
219 {0x300E, 0x00}, 223 {0x300E, 0x00},
220 224
221 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS}, 225 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS},
@@ -299,6 +303,8 @@ static imx274_reg mode_1920X1080[] = {
299 {0x33A6, 0x01}, 303 {0x33A6, 0x01},
300 {0x306B, 0x05}, 304 {0x306B, 0x05},
301 305
306 /* d gain setting */
307 {0x3012, 0x01},
302 {0x300E, 0x01}, 308 {0x300E, 0x01},
303 309
304 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS}, 310 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS},
@@ -382,6 +388,9 @@ static imx274_reg mode_1280X720[] = {
382 {0x33A6, 0x01}, 388 {0x33A6, 0x01},
383 {0x306B, 0x05}, 389 {0x306B, 0x05},
384 390
391 /* d gain setting */
392 {0x3012, 0x01},
393
385 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS}, 394 {IMX274_TABLE_WAIT_MS, IMX274_WAIT_MS},
386 {IMX274_TABLE_END, 0x0000} 395 {IMX274_TABLE_END, 0x0000}
387}; 396};