msm: camera: Add VX6953 camera support on 8660 dragon board
Add VX6953 related data structure into msm8x60 board file
since 8660 dragon board is using this camera module. And
since this camera module is used in some msm7x30 platform,
and the mount angle on such platform is 0 degree which is
different from that on 8660 dragon board (270 degree),
the mount angle needs to be specified in both board file
and passed into vx6953 camera driver.
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c
index bec0213..15e0b7f 100644
--- a/arch/arm/mach-msm/board-msm7x30.c
+++ b/arch/arm/mach-msm/board-msm7x30.c
@@ -1182,6 +1182,10 @@
#endif
#ifdef CONFIG_VX6953
+static struct msm_camera_sensor_platform_info vx6953_sensor_7630_info = {
+ .mount_angle = 0
+};
+
static struct msm_camera_sensor_flash_data flash_vx6953 = {
.flash_type = MSM_CAMERA_FLASH_LED,
.flash_src = &msm_flash_src_pwm
@@ -1195,6 +1199,7 @@
.pdata = &msm_camera_device_data,
.resource = msm_camera_resources,
.num_resources = ARRAY_SIZE(msm_camera_resources),
+ .sensor_platform_info = &vx6953_sensor_7630_info,
.flash_data = &flash_vx6953,
.csi_if = 1
};