From 5171098814e0f19c27cf2ae998116cab2af4cc53 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Tue, 5 Dec 2023 12:55:31 +0300 Subject: [PATCH] drivers/qemu/bochs: Allow building for non-x86 architectures The Bochs display driver uses port I/O functions to initialize the VGA device, so it could only have been built on x86 architectures so far, but its supported devices can be used just fine on others on the QEMU side as long as the emulated platform supports PCI. A previous commit adds port I/O functions for more including ARM* and RISC-V, which should enable this driver to be successfully built and used on these as well. Allow the Bochs display driver to be built for non-x86 QEMU boards by changing the Kconfig dependencies. Make VGA text framebuffer support depend on x86, because it isn't usable at the standard 0xB8000 address on other architectures. Add a dependency on PCI since this is a PCI device and vexpress-a9 (qemu-armv7) doesn't have the (emulated) hardware for PCI. Change-Id: I7f72d7ea13e54ecf89d067394c02b572c5f92d24 Signed-off-by: Alper Nebi Yasak Reviewed-on: https://review.coreboot.org/c/coreboot/+/80376 Tested-by: build bot (Jenkins) Reviewed-by: Alicja Michalska Reviewed-by: David Hendricks Reviewed-by: Matt DeVillier --- src/drivers/emulation/qemu/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/drivers/emulation/qemu/Kconfig b/src/drivers/emulation/qemu/Kconfig index cab06948f2..f319768bb6 100644 --- a/src/drivers/emulation/qemu/Kconfig +++ b/src/drivers/emulation/qemu/Kconfig @@ -3,9 +3,10 @@ config DRIVERS_EMULATION_QEMU_BOCHS bool "bochs dispi interface vga driver" default y - depends on CPU_QEMU_X86 + depends on PCI + depends on VENDOR_EMULATION depends on MAINBOARD_DO_NATIVE_VGA_INIT - select HAVE_VGA_TEXT_FRAMEBUFFER + select HAVE_VGA_TEXT_FRAMEBUFFER if CPU_QEMU_X86 select HAVE_LINEAR_FRAMEBUFFER select VGA help