Alper Nebi Yasak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/80370?usp=email )
Change subject: mainboard/qemu-aarch64: Enable QEMU fw_cfg driver ......................................................................
mainboard/qemu-aarch64: Enable QEMU fw_cfg driver
Enable the QEMU firmware configuration device driver for AArch64 QEMU virtual machines. The device address is from QEMU source code [1].
[1] https://gitlab.com/qemu-project/qemu/-/blob/v8.2.1/hw/arm/virt.c#L150
Change-Id: I580ac207502ab1b441ab60e708f52883f1c69749 Signed-off-by: Alper Nebi Yasak alpernebiyasak@gmail.com --- M src/mainboard/emulation/qemu-aarch64/Kconfig M src/mainboard/emulation/qemu-aarch64/include/mainboard/addressmap.h 2 files changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/80370/1
diff --git a/src/mainboard/emulation/qemu-aarch64/Kconfig b/src/mainboard/emulation/qemu-aarch64/Kconfig index dcb4f23..dcfad59 100644 --- a/src/mainboard/emulation/qemu-aarch64/Kconfig +++ b/src/mainboard/emulation/qemu-aarch64/Kconfig @@ -16,6 +16,7 @@ select BOOTBLOCK_CUSTOM select BOOT_DEVICE_NOT_SPI_FLASH select DRIVERS_UART_PL011 + select DRIVERS_EMULATION_QEMU_FW_CFG select HAVE_LINEAR_FRAMEBUFFER select MAINBOARD_FORCE_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT @@ -23,6 +24,9 @@ select ARM64_USE_ARM_TRUSTED_FIRMWARE select PCI
+config QEMU_FW_CFG_BASE_ADDRESS + default 0x09020000 + config ECAM_MMCONF_BASE_ADDRESS default 0x4010000000
diff --git a/src/mainboard/emulation/qemu-aarch64/include/mainboard/addressmap.h b/src/mainboard/emulation/qemu-aarch64/include/mainboard/addressmap.h index 70acac8..3f28c09 100644 --- a/src/mainboard/emulation/qemu-aarch64/include/mainboard/addressmap.h +++ b/src/mainboard/emulation/qemu-aarch64/include/mainboard/addressmap.h @@ -22,6 +22,7 @@ */ #define VIRT_UART_BASE 0x09000000 #define VIRT_RTC_BASE 0x09010000 +#define VIRT_FW_CFG_BASE 0x09020000 #define VIRT_GPIO_BASE 0x09030000 #define VIRT_SECURE_UART_BASE 0x09040000 #define VIRT_SMMU_BASE 0x09050000