summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff')
-rw-r--r--meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff
new file mode 100644
index 0000000000..d3c9fffcda
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/05-fix-display-panning.diff
@@ -0,0 +1,45 @@
1From: Mans Rullgard <mans@mansr.com>
2Date: Mon, 7 Jul 2008 00:13:00 +0000 (+0100)
3Subject: omapfb: fix display panning
4X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=9fec252c96b0e69bcef0afd9cb9dd72b7179c239
5
6omapfb: fix display panning
7---
8
9diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c
10index 4e1a8e3..c17371c 100644
11--- a/drivers/video/omap/dispc.c
12+++ b/drivers/video/omap/dispc.c
13@@ -435,6 +435,8 @@ static inline int _setup_plane(int plane, int channel_out,
14
15 dispc_write_reg(ri_reg[plane], (screen_width - width) * bpp / 8 + 1);
16
17+ MOD_REG_FLD(DISPC_CONTROL, 1<<5, 1<<5);
18+
19 return height * screen_width * bpp / 8;
20 }
21
22diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
23index 1166a01..3e4959e 100644
24--- a/drivers/video/omap/omapfb_main.c
25+++ b/drivers/video/omap/omapfb_main.c
26@@ -206,8 +206,8 @@ static int ctrl_change_mode(struct fb_info *fbi)
27 struct omapfb_device *fbdev = plane->fbdev;
28 struct fb_var_screeninfo *var = &fbi->var;
29
30- offset = var->yoffset * fbi->fix.line_length +
31- var->xoffset * var->bits_per_pixel / 8;
32+ offset = (var->yoffset * var->xres_virtual + var->xoffset) *
33+ var->bits_per_pixel / 8;
34
35 if (fbdev->ctrl->sync)
36 fbdev->ctrl->sync();
37@@ -423,6 +423,8 @@ static void set_fb_fix(struct fb_info *fbi)
38 }
39 fix->accel = FB_ACCEL_OMAP1610;
40 fix->line_length = var->xres_virtual * bpp / 8;
41+ fix->xpanstep = 1;
42+ fix->ypanstep = 1;
43 }
44
45 static int set_color_mode(struct omapfb_plane_struct *plane,