diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap2-git/beagleboard/03-enable-overlay-opt.diff')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap2-git/beagleboard/03-enable-overlay-opt.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/03-enable-overlay-opt.diff b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/03-enable-overlay-opt.diff new file mode 100644 index 0000000000..9fa749f5fc --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/03-enable-overlay-opt.diff | |||
@@ -0,0 +1,27 @@ | |||
1 | From: Mans Rullgard <mans@mansr.com> | ||
2 | Date: Sun, 6 Jul 2008 13:15:36 +0000 (+0100) | ||
3 | Subject: omapfb: enable overlay optimisation when possible | ||
4 | X-Git-Tag: beagle-5~1 | ||
5 | X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=a63ac3abdf6781f863112321260fe7a5da757802 | ||
6 | |||
7 | omapfb: enable overlay optimisation when possible | ||
8 | --- | ||
9 | |||
10 | diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c | ||
11 | index 6aff476..3b36227 100644 | ||
12 | --- a/drivers/video/omap/dispc.c | ||
13 | +++ b/drivers/video/omap/dispc.c | ||
14 | @@ -582,11 +582,13 @@ static int omap_dispc_enable_plane(int plane, int enable) | ||
15 | const u32 at_reg[] = { DISPC_GFX_ATTRIBUTES, | ||
16 | DISPC_VID1_BASE + DISPC_VID_ATTRIBUTES, | ||
17 | DISPC_VID2_BASE + DISPC_VID_ATTRIBUTES }; | ||
18 | + unsigned overlay_opt = plane & !!enable & !dispc.color_key.key_type; | ||
19 | if ((unsigned int)plane > dispc.mem_desc.region_cnt) | ||
20 | return -EINVAL; | ||
21 | |||
22 | enable_lcd_clocks(1); | ||
23 | MOD_REG_FLD(at_reg[plane], 1, enable ? 1 : 0); | ||
24 | + MOD_REG_FLD(DISPC_CONTROL, 1<<12 | 1<<5, overlay_opt<<12 | 1<<5); | ||
25 | enable_lcd_clocks(0); | ||
26 | |||
27 | return 0; | ||