mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
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>
This commit is contained in:
parent
9beac5daf7
commit
6efa809dde
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue