Skip to content

Commit 664e835

Browse files
6by9pelwell
authored andcommitted
media: i2c: ov5647: Tidy up mode registers to make the order common
To make comparisons of the mode registers easier, put the registers for the binned and VGA modes in the same order as the others. Signed-off-by: Dave Stevenson <[email protected]>
1 parent cc0c868 commit 664e835

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

drivers/media/i2c/ov5647.c

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ static struct regval_list ov5647_2x2binned_10bpp[] = {
344344
{0x3036, 0x62},
345345
{0x303c, 0x11},
346346
{0x3106, 0xf5},
347+
{0x3821, 0x01},
348+
{0x3820, 0x41},
347349
{0x3827, 0xec},
348350
{0x370c, 0x03},
349351
{0x3612, 0x59},
@@ -416,8 +418,6 @@ static struct regval_list ov5647_2x2binned_10bpp[] = {
416418
{0x4837, 0x16},
417419
{0x4800, 0x24},
418420
{0x3503, 0x03},
419-
{0x3820, 0x41},
420-
{0x3821, 0x01},
421421
{0x350a, 0x00},
422422
{0x350b, 0x10},
423423
{0x3500, 0x00},
@@ -430,20 +430,27 @@ static struct regval_list ov5647_2x2binned_10bpp[] = {
430430
static struct regval_list ov5647_640x480_10bpp[] = {
431431
{0x0100, 0x00},
432432
{0x0103, 0x01},
433-
{0x3035, 0x11},
433+
{0x3034, 0x1a},
434+
{0x3035, 0x21},
434435
{0x3036, 0x46},
435436
{0x303c, 0x11},
437+
{0x3106, 0xf5},
436438
{0x3821, 0x01},
437439
{0x3820, 0x41},
440+
{0x3827, 0xec},
438441
{0x370c, 0x03},
439442
{0x3612, 0x59},
440443
{0x3618, 0x00},
441444
{0x5000, 0x06},
442445
{0x5003, 0x08},
443446
{0x5a00, 0x08},
444-
{0x3000, 0xff},
445-
{0x3001, 0xff},
446-
{0x3002, 0xff},
447+
{0x3000, 0x00},
448+
{0x3001, 0x00},
449+
{0x3002, 0x00},
450+
{0x3016, 0x08},
451+
{0x3017, 0xe0},
452+
{0x3018, 0x44},
453+
{0x301c, 0xf8},
447454
{0x301d, 0xf0},
448455
{0x3a18, 0x00},
449456
{0x3a19, 0xf8},
@@ -469,6 +476,7 @@ static struct regval_list ov5647_640x480_10bpp[] = {
469476
{0x3632, 0xe2},
470477
{0x3633, 0x23},
471478
{0x3634, 0x44},
479+
{0x3636, 0x06},
472480
{0x3620, 0x64},
473481
{0x3621, 0xe0},
474482
{0x3600, 0x37},
@@ -497,19 +505,6 @@ static struct regval_list ov5647_640x480_10bpp[] = {
497505
{0x4001, 0x02},
498506
{0x4004, 0x02},
499507
{0x4000, 0x09},
500-
{0x3000, 0x00},
501-
{0x3001, 0x00},
502-
{0x3002, 0x00},
503-
{0x3017, 0xe0},
504-
{0x301c, 0xfc},
505-
{0x3636, 0x06},
506-
{0x3016, 0x08},
507-
{0x3827, 0xec},
508-
{0x3018, 0x44},
509-
{0x3035, 0x21},
510-
{0x3106, 0xf5},
511-
{0x3034, 0x1a},
512-
{0x301c, 0xf8},
513508
{0x4800, 0x34},
514509
{0x3503, 0x03},
515510
{0x0100, 0x01},

0 commit comments

Comments
 (0)