Martin Roth | 26bcee0 | 2024-02-16 10:51:37 -0700 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Gerd Hoffmann | 00cc7f43 | 2013-06-07 15:46:23 +0200 | [diff] [blame] | 3 | if BOARD_EMULATION_QEMU_X86_I440FX |
Jens Rottmann | 9a684fc | 2010-08-30 16:36:51 +0000 | [diff] [blame] | 4 | |
Elyes HAOUAS | f0c5be2 | 2018-11-27 20:36:44 +0100 | [diff] [blame] | 5 | config BOARD_SPECIFIC_OPTIONS |
Jens Rottmann | 9a684fc | 2010-08-30 16:36:51 +0000 | [diff] [blame] | 6 | def_bool y |
Gerd Hoffmann | aa588e0 | 2013-05-31 09:26:55 +0200 | [diff] [blame] | 7 | select CPU_QEMU_X86 |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 8 | select NO_ECAM_MMCONF_SUPPORT |
Patrick Georgi | 892b091 | 2009-09-24 09:03:06 +0000 | [diff] [blame] | 9 | select SOUTHBRIDGE_INTEL_I82371EB |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 10 | select HAVE_OPTION_TABLE |
Antonello Dettori | 7378d92 | 2016-08-17 22:38:17 +0200 | [diff] [blame] | 11 | select HAVE_CMOS_DEFAULT |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 12 | select HAVE_PIRQ_TABLE |
Stefan Reinauer | 597ff87 | 2013-01-07 13:21:22 -0800 | [diff] [blame] | 13 | select HAVE_ACPI_TABLES |
Simon Glass | e0ab086 | 2021-11-23 10:31:52 -0700 | [diff] [blame] | 14 | select BOARD_ROMSIZE_KB_4096 if !VBOOT |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 15 | select BOARD_ROMSIZE_KB_16384 if VBOOT |
Gerd Hoffmann | 414b947 | 2013-06-18 23:41:21 +0200 | [diff] [blame] | 16 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
Nico Huber | 26ce9af | 2017-05-22 13:22:09 +0200 | [diff] [blame] | 17 | select MAINBOARD_FORCE_NATIVE_VGA_INIT |
Harshit Sharma | c29c123 | 2020-08-06 19:33:32 -0700 | [diff] [blame] | 18 | select HAVE_ASAN_IN_ROMSTAGE |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 19 | select NO_SMM |
Arthur Heymans | 927be09 | 2021-04-30 15:57:38 +0200 | [diff] [blame] | 20 | select BOOT_DEVICE_NOT_SPI_FLASH |
Julian Stecklina | 15235b2 | 2021-11-18 17:16:45 +0100 | [diff] [blame] | 21 | select BOOT_DEVICE_MEMORY_MAPPED |
Patrick Georgi | 892b091 | 2009-09-24 09:03:06 +0000 | [diff] [blame] | 22 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 23 | config VBOOT |
| 24 | select VBOOT_MUST_REQUEST_DISPLAY |
| 25 | select VBOOT_STARTS_IN_BOOTBLOCK |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 26 | select VBOOT_VBNV_CMOS |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 27 | select GBB_FLAG_DISABLE_LID_SHUTDOWN |
| 28 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
| 29 | select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC |
| 30 | select GBB_FLAG_DISABLE_FWMP |
| 31 | |
Patrick Rudolph | 82e111c | 2021-01-07 14:12:38 +0100 | [diff] [blame] | 32 | if ARCH_BOOTBLOCK_X86_64 |
Arthur Heymans | ee83be4 | 2024-02-02 18:49:53 +0100 | [diff] [blame^] | 33 | |
| 34 | config PAGE_TABLES_IN_CBFS |
| 35 | bool |
| 36 | default y |
| 37 | |
Patrick Rudolph | 82e111c | 2021-01-07 14:12:38 +0100 | [diff] [blame] | 38 | # Need to install page tables in DRAM as the virtual MMU has problems translating paging |
| 39 | # request when the page table resides in emulated ROM. This causes undefined behaviour |
| 40 | # when handling data requests, as well as fetching and decoding instructions |
| 41 | # Real hardware didn't show any problems until now. |
| 42 | config ARCH_X86_64_PGTBL_LOC |
| 43 | default 0x8000 |
| 44 | endif |
| 45 | |
Patrick Rudolph | 9764bc1 | 2019-11-10 16:48:23 +0100 | [diff] [blame] | 46 | if VBOOT |
| 47 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 48 | config VBOOT_SLOTS_RW_A |
| 49 | default y |
| 50 | |
Patrick Rudolph | 9764bc1 | 2019-11-10 16:48:23 +0100 | [diff] [blame] | 51 | endif |
| 52 | |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 53 | config FMDFILE |
Patrick Georgi | b8fba86 | 2020-06-17 21:06:53 +0200 | [diff] [blame] | 54 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwa-16M.fmd" if VBOOT_SLOTS_RW_A |
Patrick Rudolph | f8251b9 | 2019-09-13 12:56:14 +0200 | [diff] [blame] | 55 | |
| 56 | config VBOOT_VBNV_OFFSET |
| 57 | hex |
| 58 | default 0x2c |
| 59 | |
Patrick Georgi | 892b091 | 2009-09-24 09:03:06 +0000 | [diff] [blame] | 60 | config MAINBOARD_DIR |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 61 | default "emulation/qemu-i440fx" |
Patrick Georgi | 892b091 | 2009-09-24 09:03:06 +0000 | [diff] [blame] | 62 | |
| 63 | config MAINBOARD_PART_NUMBER |
Gerd Hoffmann | 00cc7f43 | 2013-06-07 15:46:23 +0200 | [diff] [blame] | 64 | default "QEMU x86 i440fx/piix4" |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 65 | |
| 66 | config IRQ_SLOT_COUNT |
| 67 | int |
| 68 | default 6 |
Jens Rottmann | 9a684fc | 2010-08-30 16:36:51 +0000 | [diff] [blame] | 69 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 70 | # Skip the first 64KiB as coreboot table pointer is installed |
| 71 | # at address 0 |
Stefan Reinauer | 597ff87 | 2013-01-07 13:21:22 -0800 | [diff] [blame] | 72 | config DCACHE_RAM_BASE |
| 73 | hex |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 74 | default 0x10000 |
Stefan Reinauer | 597ff87 | 2013-01-07 13:21:22 -0800 | [diff] [blame] | 75 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 76 | # Memory at 0xa0000 decodes to VGA |
Stefan Reinauer | 597ff87 | 2013-01-07 13:21:22 -0800 | [diff] [blame] | 77 | config DCACHE_RAM_SIZE |
| 78 | hex |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 79 | default 0x90000 |
| 80 | |
| 81 | config C_ENV_BOOTBLOCK_SIZE |
| 82 | hex |
Kyösti Mälkki | e76ce87 | 2020-05-25 08:52:07 +0300 | [diff] [blame] | 83 | default 0x10000 |
Stefan Reinauer | 597ff87 | 2013-01-07 13:21:22 -0800 | [diff] [blame] | 84 | |
Patrick Rudolph | d72d52a | 2018-11-12 19:26:54 +0100 | [diff] [blame] | 85 | config DCACHE_BSP_STACK_SIZE |
| 86 | hex |
| 87 | default 0x4000 |
| 88 | |
Daniele Forsi | b8e96ed | 2014-07-29 12:13:12 +0200 | [diff] [blame] | 89 | endif # BOARD_EMULATION_QEMU_X86_I440FX |