]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Set up the copy framebuffer when enabled
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2020 03:12:21 +0000 (21:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
This framebuffer is separately mapped. Update the video post-probe
function to set this up.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/video/video-uclass.c

index 341db68e387cd6285f262eaa4dcd6fa82dddcf88..0c80fd5bfec4821985695a603689e8ad4f10d9ad 100644 (file)
@@ -293,6 +293,9 @@ static int video_post_probe(struct udevice *dev)
 
        priv->fb_size = priv->line_length * priv->ysize;
 
+       if (IS_ENABLED(CONFIG_VIDEO_COPY) && plat->copy_base)
+               priv->copy_fb = map_sysmem(plat->copy_base, plat->size);
+
        /* Set up colors  */
        video_set_default_colors(dev, false);