sensor/lens driver for OMAP3 camera
Subsystems (4)
PATCH 4/4 sensor/lens driver for OMAP3 camera
From: Mohit Jalori <[email protected]>
Lens driver support for OMAP3 camera and DW9710 lens
Signed-off-by Mohit Jalori <[email protected]>
--- board-3430sdp.c | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+)
arch/arm/mach-omap2/board-3430sdp.c +36 -0
@@ -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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list