From e69bfef7c0eabda20c322eea7fadc347d0ed5076 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 13 Mar 2026 13:41:54 +0100 Subject: [PATCH] mb/emu/qemu-sbsa: Set io_port_mmio_base for PCI I/O port support The QEMU sbsa-ref machine maps PCI I/O port space at 0x7fff0000. Set io_port_mmio_base so that PCI I/O port accesses are correctly translated to MMIO on aarch64. This is needed for PCI device drivers that may use I/O port BARs, such as the QEMU bochs display driver which already compiles and links for this target via the existing DRIVERS_EMULATION_QEMU_BOCHS Kconfig. Change-Id: I6a06c4c3a48c5d3409009f10b089a3537ccec8a6 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/91667 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/emulation/qemu-sbsa/mmio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainboard/emulation/qemu-sbsa/mmio.c b/src/mainboard/emulation/qemu-sbsa/mmio.c index 6b50856b94..5ac2d7bcf6 100644 --- a/src/mainboard/emulation/qemu-sbsa/mmio.c +++ b/src/mainboard/emulation/qemu-sbsa/mmio.c @@ -3,6 +3,8 @@ #include #include +uintptr_t io_port_mmio_base = SBSA_PCIE_PIO_BASE; + uintptr_t uart_platform_base(unsigned int idx) { return SBSA_UART_BASE;