Skip to content

Commit 4b10693

Browse files
committed
Revert "media: i2c: imx477: Clean up duplicated registers"
This reverts commit 9a42cf3.
1 parent 5a29f32 commit 4b10693

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

drivers/media/i2c/imx477.c

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ static const struct imx477_reg mode_common_regs[] = {
548548
{0xb21f, 0x04},
549549
{0xb35c, 0x00},
550550
{0xb35e, 0x08},
551+
{0x0112, 0x0c},
552+
{0x0113, 0x0c},
551553
{0x0114, 0x01},
552554
{0x0350, 0x00},
553555
{0xbcf1, 0x02},
@@ -556,8 +558,8 @@ static const struct imx477_reg mode_common_regs[] = {
556558

557559
/* 12 mpix 10fps */
558560
static const struct imx477_reg mode_4056x3040_regs[] = {
559-
{0x0112, 0x0c},
560-
{0x0113, 0x0c},
561+
{0x0342, 0x5d},
562+
{0x0343, 0xc0},
561563
{0x0344, 0x00},
562564
{0x0345, 0x00},
563565
{0x0346, 0x00},
@@ -666,8 +668,8 @@ static const struct imx477_reg mode_4056x3040_regs[] = {
666668

667669
/* 2x2 binned. 40fps */
668670
static const struct imx477_reg mode_2028x1520_regs[] = {
669-
{0x0112, 0x0c},
670-
{0x0113, 0x0c},
671+
{0x0342, 0x31},
672+
{0x0343, 0xc4},
671673
{0x0344, 0x00},
672674
{0x0345, 0x00},
673675
{0x0346, 0x00},
@@ -765,8 +767,8 @@ static const struct imx477_reg mode_2028x1520_regs[] = {
765767

766768
/* 1080p cropped mode */
767769
static const struct imx477_reg mode_2028x1080_regs[] = {
768-
{0x0112, 0x0c},
769-
{0x0113, 0x0c},
770+
{0x0342, 0x31},
771+
{0x0343, 0xc4},
770772
{0x0344, 0x00},
771773
{0x0345, 0x00},
772774
{0x0346, 0x01},
@@ -864,8 +866,6 @@ static const struct imx477_reg mode_2028x1080_regs[] = {
864866

865867
/* 4x4 binned. 120fps */
866868
static const struct imx477_reg mode_1332x990_regs[] = {
867-
{0x0112, 0x0a},
868-
{0x0113, 0x0a},
869869
{0x420b, 0x01},
870870
{0x990c, 0x00},
871871
{0x990d, 0x08},
@@ -878,6 +878,13 @@ static const struct imx477_reg mode_1332x990_regs[] = {
878878
{0x9a4b, 0x06},
879879
{0x9a4c, 0x06},
880880
{0x9a4d, 0x06},
881+
{0x0112, 0x0a},
882+
{0x0113, 0x0a},
883+
{0x0114, 0x01},
884+
{0x0342, 0x1a},
885+
{0x0343, 0x08},
886+
{0x0340, 0x04},
887+
{0x0341, 0x1a},
881888
{0x0344, 0x00},
882889
{0x0345, 0x00},
883890
{0x0346, 0x02},

0 commit comments

Comments
 (0)