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