mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-14 11:16:58 +02:00
x86: Avoid clearing the VESA display
U-Boot clears the display when it starts up, so there is no need to ask the VESA driver to do this. Fix this and add a comment explaining the flags. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a9ba0080db
commit
899ab6cd52
@ -231,7 +231,11 @@ static void vbe_set_graphics(int vesa_mode, struct vesa_state *mode_info)
|
||||
{
|
||||
unsigned char *framebuffer;
|
||||
|
||||
mode_info->video_mode = (1 << 14) | vesa_mode;
|
||||
/*
|
||||
* bit 14 is linear-framebuffer mode
|
||||
* bit 15 means don't clear the display
|
||||
*/
|
||||
mode_info->video_mode = (1 << 14) | (1 << 15) | vesa_mode;
|
||||
vbe_get_mode_info(mode_info);
|
||||
|
||||
framebuffer = (unsigned char *)(ulong)mode_info->vesa.phys_base_ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user