* [OMAPZOOM][PATCH v2 3/3] LV8093: Add support to zoom2 board file.
@ 2009-02-13 20:54 Dominic Curran
0 siblings, 0 replies; only message in thread
From: Dominic Curran @ 2009-02-13 20:54 UTC (permalink / raw)
To: linux-omap; +Cc: linux-media
From: Dominic Curran <dcurran@ti.com>
Subject: [OMAPZOOM][PATCH v2 3/3] LV8093: Add support to zoom2 board file.
Add support for the LV8093 to the OMAP3430 Zoom2 board file.
The LV8093 is the lens driver for the Sony IMX046 camera.
Signed-off-by: Kraig Proehl <kraig.proehl@hp.com>
Signed-off-by: Dominic Curran <dcurran@ti.com>
---
arch/arm/configs/omap_zoom2_defconfig | 1 +
arch/arm/mach-omap2/board-zoom2.c | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
Index: omapzoom04/arch/arm/configs/omap_zoom2_defconfig
===================================================================
--- omapzoom04.orig/arch/arm/configs/omap_zoom2_defconfig
+++ omapzoom04/arch/arm/configs/omap_zoom2_defconfig
@@ -995,6 +995,7 @@ CONFIG_VIDEO_CAPTURE_DRIVERS=y
# CONFIG_VIDEO_DW9710 is not set
# CONFIG_VIDEO_OV3640 is not set
CONFIG_VIDEO_IMX046=y
+CONFIG_VIDEO_LV8093=y
# CONFIG_VIDEO_SAA711X is not set
# CONFIG_VIDEO_SAA717X is not set
# CONFIG_VIDEO_TVP5150 is not set
Index: omapzoom04/arch/arm/mach-omap2/board-zoom2.c
===================================================================
--- omapzoom04.orig/arch/arm/mach-omap2/board-zoom2.c
+++ omapzoom04/arch/arm/mach-omap2/board-zoom2.c
@@ -75,6 +75,10 @@
#endif
#endif
+#if defined(CONFIG_VIDEO_LV8093) || defined(CONFIG_VIDEO_LV8093_MODULE)
+#include <../drivers/media/video/lv8093.h>
+#endif
+
#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS
#define OMAP_SYNAPTICS_GPIO 163
#endif
@@ -326,6 +330,24 @@ static struct twl4030_keypad_data ldp_kp
.irq = TWL4030_MODIRQ_KEYPAD,
};
+#if defined(CONFIG_VIDEO_LV8093) || defined(CONFIG_VIDEO_LV8093_MODULE)
+static int lv8093_lens_set_prv_data(void *priv)
+{
+ struct omap34xxcam_hw_config *hwc = priv;
+
+ hwc->dev_index = 2;
+ hwc->dev_minor = 5;
+ hwc->dev_type = OMAP34XXCAM_SLAVE_LENS;
+ hwc->interface_type = ISP_CSIA;
+ return 0;
+}
+
+static struct lv8093_platform_data zoom2_lv8093_platform_data = {
+ .power_set = NULL,
+ .priv_data_set = lv8093_lens_set_prv_data,
+};
+#endif
+
#if defined(CONFIG_VIDEO_IMX046) || defined(CONFIG_VIDEO_IMX046_MODULE)
static struct omap34xxcam_sensor_config imx046_hwc = {
@@ -716,6 +738,12 @@ static struct i2c_board_info __initdata
.platform_data = &zoom2_imx046_platform_data,
},
#endif
+#if defined(CONFIG_VIDEO_LV8093) || defined(CONFIG_VIDEO_LV8093_MODULE)
+ {
+ I2C_BOARD_INFO(LV8093_NAME, LV8093_AF_I2C_ADDR),
+ .platform_data = &zoom2_lv8093_platform_data,
+ },
+#endif
};
static int __init omap_i2c_init(void)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-13 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 20:54 [OMAPZOOM][PATCH v2 3/3] LV8093: Add support to zoom2 board file Dominic Curran
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.