msm: camera: Initial commit for qs_mt9p017
Initial support for qs_mt9p017 on 8960
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm8960.c b/arch/arm/mach-msm/board-msm8960.c
index 608a93d..4a1a45f 100644
--- a/arch/arm/mach-msm/board-msm8960.c
+++ b/arch/arm/mach-msm/board-msm8960.c
@@ -867,12 +867,37 @@
},
};
#endif
+
+static struct msm_camera_sensor_flash_data flash_qs_mt9p017 = {
+ .flash_type = MSM_CAMERA_FLASH_LED,
+};
+
+static struct msm_camera_sensor_info msm_camera_sensor_qs_mt9p017_data = {
+ .sensor_name = "qs_mt9p017",
+ .sensor_reset = 107,
+ .sensor_pwd = 85,
+ .vcm_pwd = 0,
+ .vcm_enable = 1,
+ .pdata = &msm_camera_csi0_device_data,
+ .flash_data = &flash_qs_mt9p017,
+ .sensor_platform_info = &sensor_board_info,
+ .csi_if = 1
+};
+
+struct platform_device msm8960_camera_sensor_qs_mt9p017 = {
+ .name = "msm_camera_qs_mt9p017",
+ .dev = {
+ .platform_data = &msm_camera_sensor_qs_mt9p017_data,
+ },
+};
+
static void __init msm8960_init_cam(void)
{
int i;
struct platform_device *cam_dev[] = {
&msm8960_camera_sensor_imx074,
&msm8960_camera_sensor_ov2720,
+ &msm8960_camera_sensor_qs_mt9p017,
};
for (i = 0; i < ARRAY_SIZE(cam_dev); i++) {
@@ -3118,6 +3143,9 @@
I2C_BOARD_INFO("ov2720", 0x6C),
},
#endif
+ {
+ I2C_BOARD_INFO("qs_mt9p017", 0x6C >> 1),
+ },
};
#endif