diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-14 06:29:46 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-28 01:03:16 +0300 |
commit | 7d70116fc752a2b97a67ee839be16239074614ce (patch) | |
tree | 5e6d60b7c4659a4ba0795d565844e6373ea87f9e /drivers/video | |
parent | 02d7a53ce6e31dc8f9f45949209468c16a025638 (diff) | |
download | u-boot-7d70116fc752a2b97a67ee839be16239074614ce.tar.xz |
video: Allow syncing the entire framebuffer to the copy
In some cases so much of the framebuffer is updated that it is not worth
copying the changes piece by piece to the copy framebuffer. Add a function
to copy the whole thing.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/video-uclass.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index a1d527529f..91d078a9d5 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -290,6 +290,16 @@ int video_sync_copy(struct udevice *dev, void *from, void *to) return 0; } + +int video_sync_copy_all(struct udevice *dev) +{ + struct video_priv *priv = dev_get_uclass_priv(dev); + + video_sync_copy(dev, priv->fb, priv->fb + priv->fb_size); + + return 0; +} + #endif /* Set up the colour map */ |