msm: camera: Fix camera switch issue
Reset CSI1 clock branches at the time of VFE_RESET to
get START_ACK from VFE block to avoid camera switch
issue from front to back.
Change-Id: I3b097e748544c28450ca772b08e8aa43eca8f769
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-msm7x27a.c b/arch/arm/mach-msm/devices-msm7x27a.c
index 917500c..1391981 100644
--- a/arch/arm/mach-msm/devices-msm7x27a.c
+++ b/arch/arm/mach-msm/devices-msm7x27a.c
@@ -608,6 +608,7 @@
};
#ifdef CONFIG_MSM_CAMERA_V4L2
+static int apps_reset;
static struct resource msm_csic0_resources[] = {
{
.name = "csic",
@@ -665,6 +666,9 @@
.id = 0,
.resource = msm_clkctl_resources,
.num_resources = ARRAY_SIZE(msm_clkctl_resources),
+ .dev = {
+ .platform_data = &apps_reset,
+ },
};
struct platform_device msm7x27a_device_vfe = {