summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
new file mode 100644
index 00000000..af30cb73
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0061-mt9t112-Prepare-for-24MHz-EXTCLK-and-30-fps.patch
@@ -0,0 +1,63 @@
1From 8da9ec7ae90f238bd9b245bc80a1c6559df61f59 Mon Sep 17 00:00:00 2001
2From: Sergio Aguirre <saaguirre@ti.com>
3Date: Thu, 15 Jul 2010 23:41:32 -0500
4Subject: [PATCH 61/75] mt9t112: Prepare for 24MHz EXTCLK and 30 fps
5
6Set Aptina recommended values to get 30 FPS with VGA, which
7are achievable given the new PLL divider settings, considering
8an input of 24MHz in the master clock.
9
10Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
11---
12 drivers/media/video/mt9t112.c | 18 +++++++++---------
13 1 files changed, 9 insertions(+), 9 deletions(-)
14
15diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c
16index 46d1bd6..44234e4 100644
17--- a/drivers/media/video/mt9t112.c
18+++ b/drivers/media/video/mt9t112.c
19@@ -144,7 +144,7 @@ const static struct mt9t112_frame_size mt9t112_sizes[] = {
20
21 ************************************************************************/
22 const struct v4l2_fract mt9t112_frameintervals[] = {
23- { .numerator = 1, .denominator = 10 }
24+ { .numerator = 1, .denominator = 30 }
25 };
26
27 /************************************************************************
28@@ -932,9 +932,9 @@ static int mt9t112_v4l2_int_g_parm(struct v4l2_int_device *s,
29 a->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
30
31 cparm->capability = V4L2_CAP_TIMEPERFRAME;
32- /* FIXME: Is 10 fps really the only option? */
33+ /* FIXME: Is 30 fps really the only option? */
34 cparm->timeperframe.numerator = 1;
35- cparm->timeperframe.denominator = 10;
36+ cparm->timeperframe.denominator = 30;
37
38 return 0;
39 }
40@@ -1195,14 +1195,14 @@ static int mt9t112_probe(struct i2c_client *client,
41 priv->pdata = client->dev.platform_data;
42
43 /* Revisit: Init Sensor info settings */
44- priv->info.divider.m = 25;
45- priv->info.divider.n = 2;
46+ priv->info.divider.m = 24;
47+ priv->info.divider.n = 1;
48 priv->info.divider.p1 = 0;
49- priv->info.divider.p2 = 9;
50+ priv->info.divider.p2 = 8;
51 priv->info.divider.p3 = 0;
52- priv->info.divider.p4 = 13;
53- priv->info.divider.p5 = 13;
54- priv->info.divider.p6 = 9;
55+ priv->info.divider.p4 = 11;
56+ priv->info.divider.p5 = 11;
57+ priv->info.divider.p6 = 8;
58 priv->info.divider.p7 = 0;
59 priv->info.flags = MT9T112_FLAG_PCLK_RISING_EDGE;
60
61--
621.6.6.1
63