Commit 46b655ce authored by Thomas Zimmermann's avatar Thomas Zimmermann

fbdev/sh_mobile_lcdcfb: Set FBINFO_VIRTFB flag

The sh_mobile_lcdcfb driver operates on DMA-able system memory. Mark
the framebuffer accordingly. Helpers operating on the framebuffer memory
will test for the presence of this flag.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-13-tzimmermann@suse.de
parent bc4e9077
...@@ -1567,6 +1567,7 @@ sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl) ...@@ -1567,6 +1567,7 @@ sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl)
info->fbops = &sh_mobile_lcdc_overlay_ops; info->fbops = &sh_mobile_lcdc_overlay_ops;
info->device = priv->dev; info->device = priv->dev;
info->flags |= FBINFO_VIRTFB;
info->screen_buffer = ovl->fb_mem; info->screen_buffer = ovl->fb_mem;
info->par = ovl; info->par = ovl;
...@@ -2053,6 +2054,7 @@ sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch, ...@@ -2053,6 +2054,7 @@ sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch,
info->fbops = &sh_mobile_lcdc_ops; info->fbops = &sh_mobile_lcdc_ops;
info->device = priv->dev; info->device = priv->dev;
info->flags |= FBINFO_VIRTFB;
info->screen_buffer = ch->fb_mem; info->screen_buffer = ch->fb_mem;
info->pseudo_palette = &ch->pseudo_palette; info->pseudo_palette = &ch->pseudo_palette;
info->par = ch; info->par = ch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment