Alper Nebi Yasak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/82065?usp=email )
Change subject: drivers/qemu/cirrus: Allow building for non-x86 architectures ......................................................................
drivers/qemu/cirrus: Allow building for non-x86 architectures
The Cirrus display driver uses port I/O functions and VGA support code for initialization, so it could only have been built on x86 so far, but the device can be used just fine on other architectures on the QEMU side as long as the emulated platform supports PCI. Previous commits add port I/O functions and enable building VGA code for more architectures including ARM* and RISC-V, which should allow this driver to be successfully built and used on these as well.
Allow the Cirrus 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 architectrures. 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: I168d3bf9b27d5eefa1d4844b861d73ec8437ee16 Signed-off-by: Alper Nebi Yasak alpernebiyasak@gmail.com --- M src/drivers/emulation/qemu/Kconfig 1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/82065/1
diff --git a/src/drivers/emulation/qemu/Kconfig b/src/drivers/emulation/qemu/Kconfig index f176563..2c49eaa 100644 --- a/src/drivers/emulation/qemu/Kconfig +++ b/src/drivers/emulation/qemu/Kconfig @@ -17,9 +17,10 @@ config DRIVERS_EMULATION_QEMU_CIRRUS bool "cirrus svga 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