From 8ef05352508f99b9e69feeca17a49671cc3d0ccf Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 3 Aug 2017 12:47:01 -0400 Subject: 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 --- drivers/video/cfb_console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/video/cfb_console.c') diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 6c5425c195..74cc20d653 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -2081,7 +2081,8 @@ static int cfg_video_init(void) } eorx = fgx ^ bgx; - video_clear(); + if (!CONFIG_IS_ENABLED(NO_FB_CLEAR)) + video_clear(); #ifdef CONFIG_VIDEO_LOGO /* Plot the logo and get start point of console */ -- cgit v1.2.1