Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 1 | if BOARD_EMULATION_QEMU_X86_Q35 |
| 2 | |
Elyes HAOUAS | f0c5be2 | 2018-11-27 20:36:44 +0100 | [diff] [blame] | 3 | config BOARD_SPECIFIC_OPTIONS |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 4 | def_bool y |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 5 | select CPU_QEMU_X86 |
| 6 | select SOUTHBRIDGE_INTEL_I82801IX |
Nico Huber | e9605bb | 2020-04-12 00:07:26 +0200 | [diff] [blame] | 7 | select HAVE_CMOS_DEFAULT |
Paul Menzel | 2b2f895 | 2018-05-13 18:39:58 +0200 | [diff] [blame] | 8 | select HAVE_OPTION_TABLE |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 9 | # select HAVE_PIRQ_TABLE |
| 10 | select HAVE_ACPI_TABLES |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 11 | select BOARD_ROMSIZE_KB_2048 if !VBOOT |
| 12 | select BOARD_ROMSIZE_KB_16384 if VBOOT |
Gerd Hoffmann | 414b947 | 2013-06-18 23:41:21 +0200 | [diff] [blame] | 13 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
Duncan Laurie | 14cf324 | 2020-03-17 18:54:39 -0700 | [diff] [blame] | 14 | select MAINBOARD_FORCE_NATIVE_VGA_INIT if !CHROMEOS |
Duncan Laurie | 516967c | 2020-03-17 18:49:39 -0700 | [diff] [blame] | 15 | select MAINBOARD_HAS_LPC_TPM |
Duncan Laurie | 14cf324 | 2020-03-17 18:54:39 -0700 | [diff] [blame] | 16 | select MAINBOARD_HAS_CHROMEOS |
Angel Pons | 2399ada | 2021-01-28 12:06:39 +0100 | [diff] [blame] | 17 | select SOUTHBRIDGE_INTEL_COMMON_ACPI_MADT |
Arthur Heymans | 927be09 | 2021-04-30 15:57:38 +0200 | [diff] [blame] | 18 | select BOOT_DEVICE_NOT_SPI_FLASH |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 19 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 20 | config VBOOT |
| 21 | select VBOOT_MUST_REQUEST_DISPLAY |
| 22 | select VBOOT_STARTS_IN_BOOTBLOCK |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 23 | select VBOOT_VBNV_CMOS |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 24 | select GBB_FLAG_DISABLE_LID_SHUTDOWN |
| 25 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
| 26 | select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC |
| 27 | select GBB_FLAG_DISABLE_FWMP |
| 28 | |
| 29 | config FMDFILE |
Patrick Georgi | b8fba86 | 2020-06-17 21:06:53 +0200 | [diff] [blame] | 30 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwa-16M.fmd" if VBOOT_SLOTS_RW_A && !VBOOT_SLOTS_RW_AB |
| 31 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab-16M.fmd" if VBOOT_SLOTS_RW_AB |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 32 | |
Patrick Rudolph | 82e111c | 2021-01-07 14:12:38 +0100 | [diff] [blame] | 33 | if ARCH_BOOTBLOCK_X86_64 |
| 34 | # Need to install page tables in DRAM as the virtual MMU has problems translating paging |
| 35 | # request when the page table resides in emulated ROM. This causes undefined behaviour |
| 36 | # when handling data requests, as well as fetching and decoding instructions |
| 37 | # Real hardware didn't show any problems until now. |
| 38 | config ARCH_X86_64_PGTBL_LOC |
| 39 | default 0x8000 |
| 40 | endif |
| 41 | |
Patrick Rudolph | 9764bc1 | 2019-11-10 16:48:23 +0100 | [diff] [blame] | 42 | if VBOOT |
| 43 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 44 | config VBOOT_SLOTS_RW_A |
| 45 | default y |
| 46 | |
Patrick Rudolph | 9764bc1 | 2019-11-10 16:48:23 +0100 | [diff] [blame] | 47 | endif |
| 48 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 49 | config VBOOT_VBNV_OFFSET |
| 50 | hex |
| 51 | default 0x2c |
| 52 | |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 53 | config MAINBOARD_DIR |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 54 | default "emulation/qemu-q35" |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 55 | |
| 56 | config MAINBOARD_PART_NUMBER |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 57 | default "QEMU x86 q35/ich9" |
| 58 | |
Kyösti Mälkki | b9646a2 | 2013-07-03 08:06:32 +0300 | [diff] [blame] | 59 | config MMCONF_BASE_ADDRESS |
Kyösti Mälkki | b9646a2 | 2013-07-03 08:06:32 +0300 | [diff] [blame] | 60 | default 0xb0000000 |
| 61 | |
Angel Pons | cba669c | 2021-01-28 11:56:45 +0100 | [diff] [blame] | 62 | config MMCONF_BUS_NUMBER |
| 63 | int |
| 64 | default 256 |
| 65 | |
Duncan Laurie | 9f5c850 | 2020-03-17 18:35:21 -0700 | [diff] [blame] | 66 | # fw_cfg tables can be larger than the default when TPM is enabled |
| 67 | config MAX_ACPI_TABLE_SIZE_KB |
| 68 | int |
| 69 | default 224 |
| 70 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 71 | # Skip the first 64KiB as coreboot table pointer is installed |
| 72 | # at address 0 |
Gerd Hoffmann | df8d273 | 2013-06-18 11:09:29 +0200 | [diff] [blame] | 73 | config DCACHE_RAM_BASE |
| 74 | hex |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 75 | default 0x10000 |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 76 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 77 | # Memory at 0xa0000 decodes to VGA |
Gerd Hoffmann | df8d273 | 2013-06-18 11:09:29 +0200 | [diff] [blame] | 78 | config DCACHE_RAM_SIZE |
| 79 | hex |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 80 | default 0x90000 |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 81 | |
Stefan Tauner | ef8b957 | 2018-09-06 00:34:28 +0200 | [diff] [blame] | 82 | # Do not show IFD/blob options since QEMU doesn't care |
| 83 | config HAVE_INTEL_FIRMWARE |
| 84 | bool |
| 85 | default n |
| 86 | |
Patrick Rudolph | d72d52a | 2018-11-12 19:26:54 +0100 | [diff] [blame] | 87 | config DCACHE_BSP_STACK_SIZE |
| 88 | hex |
| 89 | default 0x4000 |
| 90 | |
Daniele Forsi | b8e96ed | 2014-07-29 12:13:12 +0200 | [diff] [blame] | 91 | endif # BOARD_EMULATION_QEMU_X86_Q35 |