aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0035-omap3isp-Fix-bad-YUV_BT-checks-in-datapath_config.patch
blob: e0be1a823987d84bf1d73506277f45af2bb3e6cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From d9c512d63c23d8f60e897357263bef4668660b13 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Sat, 10 Jul 2010 09:51:16 -0500
Subject: [PATCH 35/75] omap3isp: Fix bad YUV_BT checks in datapath_config

The use of an external write enable signals (from ISP point of
view) shouldn't depend on the sensor parallel interface type.

Also, the bit shift selection should NOT be other than 9_0 by
default (i.e. No shift).

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 drivers/media/video/isp/ispccdc.c |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/drivers/media/video/isp/ispccdc.c b/drivers/media/video/isp/ispccdc.c
index 137a5e6..ea6d87c 100644
--- a/drivers/media/video/isp/ispccdc.c
+++ b/drivers/media/video/isp/ispccdc.c
@@ -602,16 +602,11 @@ static int ispccdc_config_datapath(struct isp_ccdc_device *isp_ccdc,
 		syn_mode &= ~ISPCCDC_SYN_MODE_VP2SDR;
 		syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;
 		syn_mode |= ISPCCDC_SYN_MODE_WEN;
-		if (pipe->ccdc_in == CCDC_YUV_BT) {
-			syn_mode &= ~ISPCCDC_SYN_MODE_EXWEN;
-			isp_reg_and(isp_ccdc->dev, OMAP3_ISP_IOMEM_CCDC,
-					ISPCCDC_CFG, ~ISPCCDC_CFG_WENLOG);
-		} else {
-			syn_mode |= ISPCCDC_SYN_MODE_EXWEN;
-			isp_reg_or(isp_ccdc->dev, OMAP3_ISP_IOMEM_CCDC,
-					ISPCCDC_CFG, ISPCCDC_CFG_WENLOG);
-		}
-		vpcfg.bitshift_sel = BIT11_2;
+		syn_mode &= ~ISPCCDC_SYN_MODE_EXWEN;
+
+		isp_reg_and(isp_ccdc->dev, OMAP3_ISP_IOMEM_CCDC,
+				ISPCCDC_CFG, ~ISPCCDC_CFG_WENLOG);
+		vpcfg.bitshift_sel = BIT9_0;
 		vpcfg.freq_sel = PIXCLKBY2;
 		ispccdc_config_vp(isp_ccdc, vpcfg);
 		ispccdc_enable_vp(isp_ccdc, 0);
-- 
1.6.6.1