Compare commits

..

1 Commits
x86a ... vid

Author SHA1 Message Date
Simon Glass
1816350de8 video: bochs: Support a copy buffer
Provide support for using CONFIG_VIDEO_COPY with bochs, since this can
help to reduce flicker with QEMU

Signed-off-by: Simon Glass <sjg@chromium.org>
Series-to: u-boot
Series-links: 1:458274
2025-05-24 08:15:41 -06:00
2 changed files with 5 additions and 7 deletions

View File

@@ -48,17 +48,11 @@
};
#elif defined(CONFIG_SPL)
u-boot-spl-with-ucode-ptr {
no-expanded;
offset = <CONFIG_X86_OFFSET_SPL>;
};
# ifdef CONFIG_HAVE_MICROCODE
u-boot-dtb-with-ucode2 {
type = "u-boot-dtb-with-ucode";
};
#else
u-boot-spl-dtb {
};
# endif
u-boot {
offset = <CONFIG_X86_OFFSET_U_BOOT>;
};

View File

@@ -81,7 +81,11 @@ static int bochs_init_fb(struct udevice *dev)
/* disable blanking */
bochs_vga_write(mmio, VGA_ATT_W - VGA_INDEX, VGA_AR_ENABLE_DISPLAY);
plat->base = fb;
/* Use double buffering if enabled */
if (IS_ENABLED(CONFIG_VIDEO_COPY) && plat->base)
plat->copy_base = fb;
else
plat->base = fb;
return 0;
}