diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-02 21:12:21 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-07-09 12:33:24 +0800 |
commit | 6efa809dde1d33a3576743bafefc9ec5abdfa41c (patch) | |
tree | a5a0ca388c713ea449da2c57a8e568eaaba0bb9a /drivers | |
parent | 9beac5daf700bdee407f095586129d5622ead407 (diff) | |
download | u-boot-6efa809dde1d33a3576743bafefc9ec5abdfa41c.tar.gz u-boot-6efa809dde1d33a3576743bafefc9ec5abdfa41c.tar.bz2 u-boot-6efa809dde1d33a3576743bafefc9ec5abdfa41c.zip |
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 <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/video-uclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |