media: tegra: ov7695: apply 070213 tuning values
Jake Park [Wed, 3 Jul 2013 21:45:02 +0000 (14:45 -0700)]
Apply ov7695 quality tune register changes from OV,
'OV7695 reference setting_MIPI_24MCLK_o70213_nVidia.txt'.

Bug 1278482

Change-Id: If40629b7a4fe7c4c8bd731693f5b8e2cc66bb674
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/244866
(cherry picked from commit 9d08009023cacaef14137d3dab46b496dfcb4e39)
Reviewed-on: http://git-master/r/247286
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

drivers/media/video/tegra/ov7695.c

index 985ea9f..af432bb 100644 (file)
@@ -85,15 +85,24 @@ static struct ov7695_reg mode_640x480_30fps[] = {
        {0x5001, 0x3f},
        {0x5002, 0x48},
        {0x5910, 0x00},
-       {0x3a0f, 0x38},
-       {0x3a10, 0x30},
-       {0x3a1b, 0x3a},
-       {0x3a1e, 0x2e},
-       {0x3a11, 0x90},
-       {0x3a1f, 0x12},
+       {0x3a0f, 0x40},
+       {0x3a10, 0x38},
+       {0x3a1b, 0x42},
+       {0x3a1e, 0x36},
+       {0x3a11, 0x88},
+       {0x3a1f, 0x10},
        {0x3a18, 0x00},
        {0x3a19, 0xf8},
        {0x3503, 0x00},
+       {0x3a00, 0x7c},
+       {0x382a, 0x08},
+       {0x3a02, 0x03},
+       {0x3a03, 0x24},
+       {0x3a14, 0x03},
+       {0x3a15, 0x20},
+       {0x3a0d, 0x06},
+       {0x3a0e, 0x05},
+       {0x3a17, 0x03},
        {0x5100, 0x01},
        {0x5101, 0xbf},
        {0x5102, 0x00},
@@ -118,6 +127,7 @@ static struct ov7695_reg mode_640x480_30fps[] = {
        {0x5115, 0x05},
        {0x5116, 0xff},
        {0x5117, 0x0f},
+       {0x5201, 0xd0},
        {0x520a, 0xf4},
        {0x520b, 0xf4},
        {0x520c, 0xf4},
@@ -167,7 +177,6 @@ static struct ov7695_reg mode_640x480_30fps[] = {
        {0x5800, 0x02},
        {0x5803, 0x40},
        {0x5804, 0x34},
-       {0x5201, 0xD0},         /* AWB speed */
        {0x5200, 0x20},         /* Manual White Balance */
        {0x5204, 0x05},         /* R-gain */
        {0x5208, 0x07},         /* B-gain */