===================================================================
@@ -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
===================================================================
@@ -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)