1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
From e1df34acacf936ec2d8f2822fed88d78d29449ad Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Mon, 19 Jul 2010 17:30:29 -0500
Subject: [PATCH 70/71] mt9t112: Adjust 50/60Hz flickering settings
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
drivers/media/video/mt9t112.c | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c
index c1a9b41..8528417 100644
--- a/drivers/media/video/mt9t112.c
+++ b/drivers/media/video/mt9t112.c
@@ -694,19 +694,23 @@ static int mt9t112_init_setting(const struct i2c_client *client)
/* RX FIFO Watermark (B) */
mt9t112_mcu_write(ret, client, VAR(18, 142), 0x0080);
- /* MCLK: 16MHz
+ /* MCLK: 24MHz
* PCLK: 73MHz
* CorePixCLK: 36.5 MHz
*/
- mt9t112_mcu_write(ret, client, VAR8(18, 0x0044), 133);
- mt9t112_mcu_write(ret, client, VAR8(18, 0x0045), 110);
- mt9t112_mcu_write(ret, client, VAR8(18, 0x008c), 130);
- mt9t112_mcu_write(ret, client, VAR8(18, 0x008d), 108);
-
- mt9t112_mcu_write(ret, client, VAR8(18, 0x00A5), 27);
- mt9t112_mcu_write(ret, client, VAR8(18, 0x00a6), 30);
- mt9t112_mcu_write(ret, client, VAR8(18, 0x00a7), 32);
- mt9t112_mcu_write(ret, client, VAR8(18, 0x00a8), 35);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x0044), 11);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x012F), 1);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x0045), 222);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x012D), 0);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x008c), 161);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x0130), 0);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x008d), 134);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x012E), 0);
+
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x00A5), 36);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x00a6), 38);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x00a7), 43);
+ mt9t112_mcu_write(ret, client, VAR8(18, 0x00a8), 45);
return ret;
}
--
1.6.6.1
|