diff options
author | Rob Clark <robdclark@gmail.com> | 2017-08-03 16:47:01 (GMT) |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2017-09-12 11:40:47 (GMT) |
commit | 8ef05352508f99b9e69feeca17a49671cc3d0ccf (patch) | |
tree | 2d306cda8e7d18c70881e1b816f344d73d33809c /drivers/video/video-uclass.c | |
parent | 971d7e64245d5970ae9fe9a1f418e2900663248a (diff) | |
download | u-boot-8ef05352508f99b9e69feeca17a49671cc3d0ccf.tar.xz |
video: add config option to skip framebuffer clear
The use-case is that the thing that loaded u-boot already put a splash
image on screen. And we want to preserve that until grub boot menu
takes over.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/video/video-uclass.c')
-rw-r--r-- | drivers/video/video-uclass.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 3036e3a..dfa39b0 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -199,7 +199,9 @@ static int video_post_probe(struct udevice *dev) #else priv->colour_bg = 0xffffff; #endif - video_clear(dev); + + if (!CONFIG_IS_ENABLED(NO_FB_CLEAR)) + video_clear(dev); /* * Create a text console device. For now we always do this, although |