From: Simon Glass Date: Fri, 3 Jul 2020 03:12:21 +0000 (-0600) Subject: video: Set up the copy framebuffer when enabled X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=6efa809dde1d33a3576743bafefc9ec5abdfa41c;p=u-boot.git video: Set up the copy framebuffer when enabled This framebuffer is separately mapped. Update the video post-probe function to set this up. Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin Tested-by: Bin Meng --- diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 341db68e38..0c80fd5bfe 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -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);