All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mohit Jalori <mjalori@ti.com>
To: video4linux-list@redhat.com
Subject: [Patch 4/4] sensor/lens driver for OMAP3 camera
Date: Fri, 25 Jul 2008 21:46:52 -0500	[thread overview]
Message-ID: <20080726024652.GA9991@dirac.dal.design.ti.com> (raw)

From: Mohit Jalori <mjalori@ti.com>

Lens driver support for OMAP3 camera and DW9710 lens 

Signed-off-by: Mohit Jalori <mjalori@ti.com>
---
 board-3430sdp.c |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+)

diff -purN c/arch/arm/mach-omap2/board-3430sdp.c d/arch/arm/mach-omap2/board-3430sdp.c
--- c/arch/arm/mach-omap2/board-3430sdp.c	2008-07-24 17:38:30.000000000 -0500
+++ d/arch/arm/mach-omap2/board-3430sdp.c	2008-07-24 17:53:23.000000000 -0500
@@ -50,6 +50,10 @@
 #endif
 #endif
 
+#ifdef CONFIG_VIDEO_DW9710
+#include <../drivers/media/video/dw9710.h>
+#endif
+
 #include <asm/io.h>
 #include <asm/delay.h>
 
@@ -212,6 +216,30 @@ static struct spi_board_info sdp3430_spi
 	},
 };
 
+#ifdef CONFIG_VIDEO_DW9710
+static int dw9710_lens_power_set(enum v4l2_power power)
+{
+
+	return 0;
+}
+
+static int dw9710_lens_set_prv_data(void *priv)
+{
+	struct omap34xxcam_hw_config *hwc = priv;
+
+	hwc->dev_index = 0;
+	hwc->dev_minor = 0;
+	hwc->dev_type = OMAP34XXCAM_SLAVE_LENS;
+
+	return 0;
+}
+
+static struct dw9710_platform_data sdp3430_dw9710_platform_data = {
+	.power_set      = dw9710_lens_power_set,
+	.priv_data_set  = dw9710_lens_set_prv_data,
+};
+#endif
+
 #if defined(CONFIG_VIDEO_MT9P012) || defined(CONFIG_VIDEO_MT9P012_MODULE)
 static void __iomem *fpga_map_addr;
 
@@ -382,7 +410,14 @@ static struct mt9p012_platform_data sdp3
 	.ifparm         = mt9p012_ifparm,
 };
 
+
 static struct i2c_board_info __initdata sdp3430_i2c_board_info[] = {
+#ifdef CONFIG_VIDEO_DW9710
+	{
+		I2C_BOARD_INFO(DW9710_NAME,  DW9710_AF_I2C_ADDR),
+		.platform_data = &sdp3430_dw9710_platform_data,
+	},
+#endif
 	{
 		I2C_BOARD_INFO("mt9p012", MT9P012_I2C_ADDR),
 		.platform_data = &sdp3430_mt9p012_platform_data,
@@ -391,6 +426,7 @@ static struct i2c_board_info __initdata 
 
 #endif
 
+
 static struct platform_device sdp3430_lcd_device = {
 	.name		= "sdp2430_lcd",
 	.id		= -1,

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

                 reply	other threads:[~2008-07-26  2:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080726024652.GA9991@dirac.dal.design.ti.com \
    --to=mjalori@ti.com \
    --cc=video4linux-list@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.