From: Trilok Soni <trilok_soni@yahoo.co.in>
To: Linux OMAP <linux-omap-open-source@linux.omap.com>
Cc: Sakari Ailus <sakari.ailus@nokia.com>
Subject: Re: [PATCH 2/2] ov9640: Add H4 board entries for platform data.
Date: Thu, 23 Aug 2007 05:31:14 -0700 (PDT) [thread overview]
Message-ID: <363692.6770.qm@web8504.mail.in.yahoo.com> (raw)
In-Reply-To: <5d5443650708180137g4258d331se0fb53bceecedc08@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
Hi,
--- Trilok Soni <soni.trilok@gmail.com> wrote:
> --
> --Trilok Soni
> > From b13634e7f7534523851df7cc5c108cf340240a4b Mon
> Sep 17 00:00:00 2001
> From: Trilok Soni <soni.trilok@gmail.com>
> Date: Fri, 17 Aug 2007 21:28:54 +0530
> Subject: [PATCH 2/2] ov9640: Add H4 board entries
> for platform data.
>
Attached incremental patch with v4l2_ifparm pdata
support for H4 with ov9640.
---Trilok Soni
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 273520847-0002-ov9640-Add-v4l2_ifparm-platform-data-in-board-h4.c.patch --]
[-- Type: text/x-patch; name="0002-ov9640-Add-v4l2_ifparm-platform-data-in-board-h4.c.patch", Size: 1640 bytes --]
>From b97cbdfb3bf8f1d73a422888bf491a1afccd8272 Mon Sep 17 00:00:00 2001
From: Trilok Soni <soni.trilok@gmail.com>
Date: Wed, 22 Aug 2007 17:07:31 +0530
Subject: [PATCH] ov9640: Add v4l2_ifparm platform data in board-h4.c
Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
---
arch/arm/mach-omap2/board-h4.c | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 3844825..e9957ac 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -25,6 +25,8 @@
#include <linux/spi/spi.h>
#include <linux/spi/tsc210x.h>
+#include <media/v4l2-int-device.h>
+
#include <asm/hardware.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -621,13 +623,33 @@ static int ov9640_sensor_power_set(int power)
return err;
}
+
+static struct v4l2_ifparm ifparm = {
+ .if_type = V4L2_IF_TYPE_PARALLEL,
+ .u = {
+ .parallel = {
+ .frame_start_on_rising_vs = 1,
+ .nobt_vs_inv = 1,
+ .mode = V4L2_IF_TYPE_PARALLEL_MODE_NOBT_8BIT,
+ },
+ },
+};
+
+static int ov9640_ifparm(struct v4l2_ifparm *p)
+{
+ *p = ifparm;
+
+ return 0;
+}
#else
static int ov9640_sensor_power_set(int power) { return 0; }
+static int ov9640_ifparm(struct v4l2_ifparm *p) { return 0; }
#endif
static struct ov9640_platform_data h4_ov9640_platform_data = {
- .power_set = ov9640_sensor_power_set,
- .default_regs = ov9640_common,
+ .power_set = ov9640_sensor_power_set,
+ .default_regs = ov9640_common,
+ .ifparm = ov9640_ifparm,
};
static struct i2c_board_info __initdata h4_i2c_board_info[] = {
--
1.5.0
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2007-08-23 12:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-18 8:37 [PATCH 2/2] ov9640: Add H4 board entries for platform data Trilok Soni
2007-08-23 12:31 ` Trilok Soni [this message]
2007-08-31 20:28 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=363692.6770.qm@web8504.mail.in.yahoo.com \
--to=trilok_soni@yahoo.co.in \
--cc=linux-omap-open-source@linux.omap.com \
--cc=sakari.ailus@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox