diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0032-DSS2-Fix-DISPC_VID_FIR-value-for-omap34xx.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0032-DSS2-Fix-DISPC_VID_FIR-value-for-omap34xx.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0032-DSS2-Fix-DISPC_VID_FIR-value-for-omap34xx.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0032-DSS2-Fix-DISPC_VID_FIR-value-for-omap34xx.patch new file mode 100644 index 0000000000..4959a760b1 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0032-DSS2-Fix-DISPC_VID_FIR-value-for-omap34xx.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From ed7a9223f6785be03951c55f3b0695b0d5635c80 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?utf-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@nokia.com> | ||
3 | Date: Thu, 9 Apr 2009 15:04:44 +0200 | ||
4 | Subject: [PATCH] DSS2: Fix DISPC_VID_FIR value for omap34xx | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=utf-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | The msbs of the DISPC_VID_FIR fields were incorrectly masked out on | ||
10 | omap34xx and thus 4:1 downscale did not work correctly. | ||
11 | |||
12 | Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com> | ||
13 | --- | ||
14 | drivers/video/omap2/dss/dispc.c | 5 ++++- | ||
15 | 1 files changed, 4 insertions(+), 1 deletions(-) | ||
16 | |||
17 | diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c | ||
18 | index 076d3d4..b8a3329 100644 | ||
19 | --- a/drivers/video/omap2/dss/dispc.c | ||
20 | +++ b/drivers/video/omap2/dss/dispc.c | ||
21 | @@ -994,7 +994,10 @@ static void _dispc_set_fir(enum omap_plane plane, int hinc, int vinc) | ||
22 | |||
23 | BUG_ON(plane == OMAP_DSS_GFX); | ||
24 | |||
25 | - val = FLD_VAL(vinc, 27, 16) | FLD_VAL(hinc, 11, 0); | ||
26 | + if (cpu_is_omap24xx()) | ||
27 | + val = FLD_VAL(vinc, 27, 16) | FLD_VAL(hinc, 11, 0); | ||
28 | + else | ||
29 | + val = FLD_VAL(vinc, 28, 16) | FLD_VAL(hinc, 12, 0); | ||
30 | dispc_write_reg(fir_reg[plane-1], val); | ||
31 | } | ||
32 | |||
33 | -- | ||
34 | 1.5.6.5 | ||
35 | |||