]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drivers/video: fsl-diu-fb: set correct framebuffer flags
authorTimur Tabi <timur@freescale.com>
Mon, 19 Dec 2011 22:26:15 +0000 (16:26 -0600)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 3 Jan 2012 15:59:08 +0000 (15:59 +0000)
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>
drivers/video/fsl-diu-fb.c

index 411a7b306b4a871388bfbb60d0a50bb58ffe5691..231752ef7e1cd1b61d78f31d2cd585ca1bfd4b25 100644 (file)
@@ -1231,7 +1231,8 @@ static int __devinit install_fb(struct fb_info *info)
 
        info->var.activate = FB_ACTIVATE_NOW;
        info->fbops = &fsl_diu_ops;
-       info->flags = FBINFO_DEFAULT;
+       info->flags = FBINFO_DEFAULT | FBINFO_VIRTFB | FBINFO_PARTIAL_PAN_OK |
+               FBINFO_READS_FAST;
        info->pseudo_palette = mfbi->pseudo_palette;
 
        rc = fb_alloc_cmap(&info->cmap, 16, 0);