]> git.ipfire.org Git - thirdparty/openwrt.git/blob
3f0a34e4646281ff1cecae4e6252384dd8f7d01f
[thirdparty/openwrt.git] /
1 From 664e835fd4886332ec3b3813de47102fe45e4fc3 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 15 Oct 2024 16:05:57 +0100
4 Subject: [PATCH 1327/1350] media: i2c: ov5647: Tidy up mode registers to make
5 the order common
6
7 To make comparisons of the mode registers easier, put the registers
8 for the binned and VGA modes in the same order as the others.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 drivers/media/i2c/ov5647.c | 33 ++++++++++++++-------------------
13 1 file changed, 14 insertions(+), 19 deletions(-)
14
15 --- a/drivers/media/i2c/ov5647.c
16 +++ b/drivers/media/i2c/ov5647.c
17 @@ -344,6 +344,8 @@ static struct regval_list ov5647_2x2binn
18 {0x3036, 0x62},
19 {0x303c, 0x11},
20 {0x3106, 0xf5},
21 + {0x3821, 0x01},
22 + {0x3820, 0x41},
23 {0x3827, 0xec},
24 {0x370c, 0x03},
25 {0x3612, 0x59},
26 @@ -416,8 +418,6 @@ static struct regval_list ov5647_2x2binn
27 {0x4837, 0x16},
28 {0x4800, 0x24},
29 {0x3503, 0x03},
30 - {0x3820, 0x41},
31 - {0x3821, 0x01},
32 {0x350a, 0x00},
33 {0x350b, 0x10},
34 {0x3500, 0x00},
35 @@ -430,20 +430,27 @@ static struct regval_list ov5647_2x2binn
36 static struct regval_list ov5647_640x480_10bpp[] = {
37 {0x0100, 0x00},
38 {0x0103, 0x01},
39 - {0x3035, 0x11},
40 + {0x3034, 0x1a},
41 + {0x3035, 0x21},
42 {0x3036, 0x46},
43 {0x303c, 0x11},
44 + {0x3106, 0xf5},
45 {0x3821, 0x01},
46 {0x3820, 0x41},
47 + {0x3827, 0xec},
48 {0x370c, 0x03},
49 {0x3612, 0x59},
50 {0x3618, 0x00},
51 {0x5000, 0x06},
52 {0x5003, 0x08},
53 {0x5a00, 0x08},
54 - {0x3000, 0xff},
55 - {0x3001, 0xff},
56 - {0x3002, 0xff},
57 + {0x3000, 0x00},
58 + {0x3001, 0x00},
59 + {0x3002, 0x00},
60 + {0x3016, 0x08},
61 + {0x3017, 0xe0},
62 + {0x3018, 0x44},
63 + {0x301c, 0xf8},
64 {0x301d, 0xf0},
65 {0x3a18, 0x00},
66 {0x3a19, 0xf8},
67 @@ -469,6 +476,7 @@ static struct regval_list ov5647_640x480
68 {0x3632, 0xe2},
69 {0x3633, 0x23},
70 {0x3634, 0x44},
71 + {0x3636, 0x06},
72 {0x3620, 0x64},
73 {0x3621, 0xe0},
74 {0x3600, 0x37},
75 @@ -497,19 +505,6 @@ static struct regval_list ov5647_640x480
76 {0x4001, 0x02},
77 {0x4004, 0x02},
78 {0x4000, 0x09},
79 - {0x3000, 0x00},
80 - {0x3001, 0x00},
81 - {0x3002, 0x00},
82 - {0x3017, 0xe0},
83 - {0x301c, 0xfc},
84 - {0x3636, 0x06},
85 - {0x3016, 0x08},
86 - {0x3827, 0xec},
87 - {0x3018, 0x44},
88 - {0x3035, 0x21},
89 - {0x3106, 0xf5},
90 - {0x3034, 0x1a},
91 - {0x301c, 0xf8},
92 {0x4800, 0x34},
93 {0x3503, 0x03},
94 {0x0100, 0x01},