* [Patch 4/4] sensor/lens driver for OMAP3 camera
@ 2008-07-26 2:46 Mohit Jalori
0 siblings, 0 replies; only message in thread
From: Mohit Jalori @ 2008-07-26 2:46 UTC (permalink / raw)
To: video4linux-list
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-26 2:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-26 2:46 [Patch 4/4] sensor/lens driver for OMAP3 camera Mohit Jalori
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.