summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
blob: 4a17542b9b841e4a1953ac81f28b9b4477275bd5 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
From 5c6d1392f4781e7b86bb0335461ef2fda0349fdf Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Thu, 15 Jul 2010 23:41:32 -0500
Subject: [PATCH 61/71] mt9t112: Prepare for 24MHz EXTCLK and 30 fps

Set Aptina recommended values to get 30 FPS with VGA, which
are achievable given the new PLL divider settings, considering
an input of 24MHz in the master clock.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 drivers/media/video/mt9t112.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c
index 46d1bd6..44234e4 100644
--- a/drivers/media/video/mt9t112.c
+++ b/drivers/media/video/mt9t112.c
@@ -144,7 +144,7 @@ const static struct mt9t112_frame_size mt9t112_sizes[] = {
 
 ************************************************************************/
 const struct v4l2_fract mt9t112_frameintervals[] = {
-	{  .numerator = 1, .denominator = 10 }
+	{  .numerator = 1, .denominator = 30 }
 };
 
 /************************************************************************
@@ -932,9 +932,9 @@ static int mt9t112_v4l2_int_g_parm(struct v4l2_int_device *s,
 	a->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
 
 	cparm->capability = V4L2_CAP_TIMEPERFRAME;
-	/* FIXME: Is 10 fps really the only option? */
+	/* FIXME: Is 30 fps really the only option? */
 	cparm->timeperframe.numerator = 1;
-	cparm->timeperframe.denominator = 10;
+	cparm->timeperframe.denominator = 30;
 
 	return 0;
 }
@@ -1195,14 +1195,14 @@ static int mt9t112_probe(struct i2c_client *client,
 	priv->pdata = client->dev.platform_data;
 
 	/* Revisit: Init Sensor info settings */
-	priv->info.divider.m = 25;
-	priv->info.divider.n = 2;
+	priv->info.divider.m = 24;
+	priv->info.divider.n = 1;
 	priv->info.divider.p1 = 0;
-	priv->info.divider.p2 = 9;
+	priv->info.divider.p2 = 8;
 	priv->info.divider.p3 = 0;
-	priv->info.divider.p4 = 13;
-	priv->info.divider.p5 = 13;
-	priv->info.divider.p6 = 9;
+	priv->info.divider.p4 = 11;
+	priv->info.divider.p5 = 11;
+	priv->info.divider.p6 = 8;
 	priv->info.divider.p7 = 0;
 	priv->info.flags = MT9T112_FLAG_PCLK_RISING_EDGE;
 
-- 
1.6.6.1