1## SPDX-License-Identifier: GPL-2.0-only 2 3if BOARD_EMULATION_QEMU_X86_Q35 4 5config BOARD_SPECIFIC_OPTIONS 6 def_bool y 7 select CPU_QEMU_X86 8 select SOUTHBRIDGE_INTEL_I82801IX 9 select HAVE_CMOS_DEFAULT 10 select HAVE_OPTION_TABLE 11# select HAVE_PIRQ_TABLE 12 select HAVE_ACPI_TABLES 13 select BOARD_ROMSIZE_KB_16384 14 select MAINBOARD_HAS_NATIVE_VGA_INIT 15 select MAINBOARD_FORCE_NATIVE_VGA_INIT if !CHROMEOS 16 select MEMORY_MAPPED_TPM 17 select MAINBOARD_HAS_CHROMEOS 18 select BOOT_DEVICE_NOT_SPI_FLASH 19 select BOOT_DEVICE_MEMORY_MAPPED 20 21config VBOOT 22 select VBOOT_MUST_REQUEST_DISPLAY 23 select VBOOT_STARTS_IN_BOOTBLOCK 24 select VBOOT_VBNV_CMOS 25 select GBB_FLAG_DISABLE_LID_SHUTDOWN 26 select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC 27 select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC 28 select GBB_FLAG_DISABLE_FWMP 29 30config FMDFILE 31 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwa-16M.fmd" if VBOOT_SLOTS_RW_A && !VBOOT_SLOTS_RW_AB 32 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab-16M.fmd" if VBOOT_SLOTS_RW_AB 33 34if ARCH_BOOTBLOCK_X86_64 35 36config PAGE_TABLES_IN_CBFS 37 bool 38 default y 39 40# Need to install page tables in DRAM as the virtual MMU has problems translating paging 41# request when the page table resides in emulated ROM. This causes undefined behaviour 42# when handling data requests, as well as fetching and decoding instructions 43# Real hardware didn't show any problems until now. 44config ARCH_X86_64_PGTBL_LOC 45 default 0x8000 46endif 47 48if VBOOT 49 50config VBOOT_SLOTS_RW_A 51 default y 52 53endif 54 55config VBOOT_VBNV_OFFSET 56 hex 57 default 0x2c 58 59config MAINBOARD_DIR 60 default "emulation/qemu-q35" 61 62config MAINBOARD_PART_NUMBER 63 default "QEMU x86 q35/ich9" 64 65config ECAM_MMCONF_BASE_ADDRESS 66 default 0xb0000000 67 68config ECAM_MMCONF_BUS_NUMBER 69 int 70 default 256 71 72# fw_cfg tables can be larger than the default when TPM is enabled 73config MAX_ACPI_TABLE_SIZE_KB 74 int 75 default 224 76 77# Skip the first 64KiB as coreboot table pointer is installed 78# at address 0 79config DCACHE_RAM_BASE 80 hex 81 default 0x10000 82 83# Memory at 0xa0000 decodes to VGA 84config DCACHE_RAM_SIZE 85 hex 86 default 0x90000 87 88# Do not show IFD/blob options since QEMU doesn't care 89config HAVE_INTEL_FIRMWARE 90 bool 91 default n 92 93config DCACHE_BSP_STACK_SIZE 94 hex 95 default 0x4000 96 97endif # BOARD_EMULATION_QEMU_X86_Q35 98