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 |
| 7 | select IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS |
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 |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 17 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 18 | config VBOOT |
| 19 | select VBOOT_MUST_REQUEST_DISPLAY |
| 20 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 21 | select VBOOT_SEPARATE_VERSTAGE |
| 22 | select VBOOT_VBNV_CMOS |
Duncan Laurie | 14cf324 | 2020-03-17 18:54:39 -0700 | [diff] [blame] | 23 | select VBOOT_NO_BOARD_SUPPORT if !CHROMEOS |
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 |
| 30 | string |
Duncan Laurie | 14cf324 | 2020-03-17 18:54:39 -0700 | [diff] [blame] | 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 |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 33 | |
Patrick Rudolph | 9764bc1 | 2019-11-10 16:48:23 +0100 | [diff] [blame] | 34 | if VBOOT |
| 35 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 36 | config VBOOT_SLOTS_RW_A |
| 37 | default y |
| 38 | |
Patrick Rudolph | 9764bc1 | 2019-11-10 16:48:23 +0100 | [diff] [blame] | 39 | endif |
| 40 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 41 | config VBOOT_VBNV_OFFSET |
| 42 | hex |
| 43 | default 0x2c |
| 44 | |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 45 | config MAINBOARD_DIR |
| 46 | string |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 47 | default "emulation/qemu-q35" |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 48 | |
| 49 | config MAINBOARD_PART_NUMBER |
| 50 | string |
| 51 | default "QEMU x86 q35/ich9" |
| 52 | |
Kyösti Mälkki | b9646a2 | 2013-07-03 08:06:32 +0300 | [diff] [blame] | 53 | config MMCONF_BASE_ADDRESS |
| 54 | hex |
| 55 | default 0xb0000000 |
| 56 | |
Duncan Laurie | 9f5c850 | 2020-03-17 18:35:21 -0700 | [diff] [blame] | 57 | # fw_cfg tables can be larger than the default when TPM is enabled |
| 58 | config MAX_ACPI_TABLE_SIZE_KB |
| 59 | int |
| 60 | default 224 |
| 61 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 62 | # Skip the first 64KiB as coreboot table pointer is installed |
| 63 | # at address 0 |
Gerd Hoffmann | df8d273 | 2013-06-18 11:09:29 +0200 | [diff] [blame] | 64 | config DCACHE_RAM_BASE |
| 65 | hex |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 66 | default 0x10000 |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 67 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 68 | # Memory at 0xa0000 decodes to VGA |
Gerd Hoffmann | df8d273 | 2013-06-18 11:09:29 +0200 | [diff] [blame] | 69 | config DCACHE_RAM_SIZE |
| 70 | hex |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 71 | default 0x90000 |
Gerd Hoffmann | ee941b38 | 2013-06-07 16:03:44 +0200 | [diff] [blame] | 72 | |
Stefan Tauner | ef8b957 | 2018-09-06 00:34:28 +0200 | [diff] [blame] | 73 | # Do not show IFD/blob options since QEMU doesn't care |
| 74 | config HAVE_INTEL_FIRMWARE |
| 75 | bool |
| 76 | default n |
| 77 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 78 | config C_ENV_BOOTBLOCK_SIZE |
| 79 | hex |
| 80 | default 0x4000 |
| 81 | |
Patrick Rudolph | d72d52a | 2018-11-12 19:26:54 +0100 | [diff] [blame] | 82 | config DCACHE_BSP_STACK_SIZE |
| 83 | hex |
| 84 | default 0x4000 |
| 85 | |
Daniele Forsi | b8e96ed | 2014-07-29 12:13:12 +0200 | [diff] [blame] | 86 | endif # BOARD_EMULATION_QEMU_X86_Q35 |