aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-12-19 17:26:15 -0500
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-01-03 10:59:08 -0500
commit934dbeebed7764de683f8048cd94973d47c57f7b (patch)
tree0e9b186de3cba8bbad4d6ca46e510e281c8c4f19 /drivers
parentf934fbd6ba5af5d9328e642794be2842e538d1c6 (diff)
drivers/video: fsl-diu-fb: set correct framebuffer flags
The DIU uses system RAM for the framebuffer, so FBINFO_VIRTFB should be set. Since the framebuffer is in system RAM, it can be read from more quickly than written to, so FBINFO_READS_FAST should be set. We can also set FBINFO_PARTIAL_PAN_OK for the same reasons. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fsl-diu-fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c
index 411a7b306b4a..231752ef7e1c 100644
--- a/drivers/video/fsl-diu-fb.c
+++ b/drivers/video/fsl-diu-fb.c
@@ -1231,7 +1231,8 @@ static int __devinit install_fb(struct fb_info *info)
1231 1231
1232 info->var.activate = FB_ACTIVATE_NOW; 1232 info->var.activate = FB_ACTIVATE_NOW;
1233 info->fbops = &fsl_diu_ops; 1233 info->fbops = &fsl_diu_ops;
1234 info->flags = FBINFO_DEFAULT; 1234 info->flags = FBINFO_DEFAULT | FBINFO_VIRTFB | FBINFO_PARTIAL_PAN_OK |
1235 FBINFO_READS_FAST;
1235 info->pseudo_palette = mfbi->pseudo_palette; 1236 info->pseudo_palette = mfbi->pseudo_palette;
1236 1237
1237 rc = fb_alloc_cmap(&info->cmap, 16, 0); 1238 rc = fb_alloc_cmap(&info->cmap, 16, 0);