Message ID | 20200519231058.19945-11-sjg@chromium.org |
---|---|
State | Superseded |
Headers | show |
Series | x86: video: Speed up the framebuffer | expand |
On Tue, 19 May 2020 17:10:42 -0600 Simon Glass sjg at chromium.org wrote: > This framebuffer is separately mapped. Update the video post-probe > function to set this up. > > Signed-off-by: Simon Glass <sjg at chromium.org> Reviewed-by: Anatolij Gustschin <agust at denx.de>
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 9fbaa8db10..0c97377ea9 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -292,6 +292,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);
This framebuffer is separately mapped. Update the video post-probe function to set this up. Signed-off-by: Simon Glass <sjg at chromium.org> --- drivers/video/video-uclass.c | 3 +++ 1 file changed, 3 insertions(+)