]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-bsp/linux/linux-omap-psp-2.6.32/porches.patch
BSP: rename beagleboard to TI
[glsdk/meta-ti-glsdk.git] / recipes-bsp / linux / linux-omap-psp-2.6.32 / porches.patch
1 From 00a84122fd2c1974f6dc79fce11a34154caab848 Mon Sep 17 00:00:00 2001
2 From: Tasslehoff Kjappfot <tasskjapp@gmail.com>
3 Date: Wed, 8 Sep 2010 12:46:14 +0200
4 Subject: [PATCH] OMAP: DSS2: OMAPFB: swap front and back porches for both hsync and vsync
6 Framebuffer's left and right margins are relative to the active pixel
7 area. Front and back porches are relative to the sync area.
9 Left margin was wrongly assigned to front porch (and right to back),
10 this patch fixes it.
12 Signed-off-by: tasskjapp@gmail.com
13 Reviewed-by: Russ.Dill@gmail.com
14 Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
15 ---
16  drivers/video/omap2/omapfb/omapfb-main.c |   16 ++++++++--------
17  1 files changed, 8 insertions(+), 8 deletions(-)
19 diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
20 index 39f53b1..bddfca6 100644
21 --- a/drivers/video/omap2/omapfb/omapfb-main.c
22 +++ b/drivers/video/omap2/omapfb/omapfb-main.c
23 @@ -714,10 +714,10 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var)
24                 var->pixclock = timings.pixel_clock != 0 ?
25                         KHZ2PICOS(timings.pixel_clock) :
26                         0;
27 -               var->left_margin = timings.hfp;
28 -               var->right_margin = timings.hbp;
29 -               var->upper_margin = timings.vfp;
30 -               var->lower_margin = timings.vbp;
31 +               var->left_margin = timings.hbp;
32 +               var->right_margin = timings.hfp;
33 +               var->upper_margin = timings.vbp;
34 +               var->lower_margin = timings.vfp;
35                 var->hsync_len = timings.hsw;
36                 var->vsync_len = timings.vsw;
37         } else {
38 @@ -2059,10 +2059,10 @@ static int omapfb_mode_to_timings(const char *mode_str,
39  
40         if (r != 0) {
41                 timings->pixel_clock = PICOS2KHZ(var.pixclock);
42 -               timings->hfp = var.left_margin;
43 -               timings->hbp = var.right_margin;
44 -               timings->vfp = var.upper_margin;
45 -               timings->vbp = var.lower_margin;
46 +               timings->hbp = var.left_margin;
47 +               timings->hfp = var.right_margin;
48 +               timings->vbp = var.upper_margin;
49 +               timings->vfp = var.lower_margin;
50                 timings->hsw = var.hsync_len;
51                 timings->vsw = var.vsync_len;
52                 timings->x_res = var.xres;
53 -- 
54 1.6.1