Skip to content

Commit

Permalink
drivers/video: fsl-diu-fb: set correct framebuffer flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Timur Tabi authored and Florian Tobias Schandinat committed Jan 3, 2012
1 parent f934fbd commit 934dbee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 934dbee

Please sign in to comment.