0002-x86-Avoid-clearing-the-VESA-display.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From a6b9e69a21970951252419b5b5fa9c04fabbf1a4 Mon Sep 17 00:00:00 2001
  2. From: Simon Glass <sjg@chromium.org>
  3. Date: Tue, 12 Nov 2024 06:59:02 -0700
  4. Subject: [PATCH 1/2] x86: Avoid clearing the VESA display
  5. U-Boot clears the display when it starts up, so there is no need to ask
  6. the VESA driver to do this. Fix this and add a comment explaining the
  7. flags.
  8. Signed-off-by: Simon Glass <sjg@chromium.org>
  9. ---
  10. arch/x86/lib/bios.c | 6 +++++-
  11. 1 file changed, 5 insertions(+), 1 deletion(-)
  12. diff --git a/arch/x86/lib/bios.c b/arch/x86/lib/bios.c
  13. index 03f7360032..374f4f20b8 100644
  14. --- a/arch/x86/lib/bios.c
  15. +++ b/arch/x86/lib/bios.c
  16. @@ -228,7 +228,11 @@ static void vbe_set_graphics(int vesa_mode, struct vesa_state *mode_info)
  17. {
  18. unsigned char *framebuffer;
  19. - mode_info->video_mode = (1 << 14) | vesa_mode;
  20. + /*
  21. + * bit 14 is linear-framebuffer mode
  22. + * bit 15 means don't clear the display
  23. + */
  24. + mode_info->video_mode = (1 << 14) | (1 << 15) | vesa_mode;
  25. vbe_get_mode_info(mode_info);
  26. framebuffer = (unsigned char *)(ulong)mode_info->vesa.phys_base_ptr;
  27. --
  28. 2.39.5