Debian Codegraph @

src/mainboard/emulation/qemu-i440fx/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 if BOARD_EMULATION_QEMU_X86_I440FX
4
5 config BOARD_SPECIFIC_OPTIONS
6 def_bool y
7 select CPU_QEMU_X86
8 select NO_ECAM_MMCONF_SUPPORT
9 select SOUTHBRIDGE_INTEL_I82371EB
10 select HAVE_OPTION_TABLE
11 select HAVE_CMOS_DEFAULT
12 select HAVE_PIRQ_TABLE
13 select HAVE_ACPI_TABLES
14 select BOARD_ROMSIZE_KB_4096 if !VBOOT
15 select BOARD_ROMSIZE_KB_8192 if VBOOT
16 select MAINBOARD_HAS_NATIVE_VGA_INIT
17 select MAINBOARD_FORCE_NATIVE_VGA_INIT
18 select HAVE_ASAN_IN_ROMSTAGE
19 select NO_SMM
20 select BOOT_DEVICE_NOT_SPI_FLASH
21 select BOOT_DEVICE_MEMORY_MAPPED
22 select BOOT_DEVICE_SUPPORTS_WRITES
23 select DRIVERS_EMULATION_QEMU_FW_CFG
24
25 config VBOOT
26 select VBOOT_MUST_REQUEST_DISPLAY
27 select VBOOT_STARTS_IN_BOOTBLOCK
28 select VBOOT_VBNV_CMOS
29 select GBB_FLAG_DISABLE_LID_SHUTDOWN
30 select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
31 select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
32 select GBB_FLAG_DISABLE_FWMP
33
34 if ARCH_BOOTBLOCK_X86_64
35
36 config 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.
44 config ARCH_X86_64_PGTBL_LOC
45 default 0x8000
46 endif
47
48 if VBOOT
49
50 config VBOOT_SLOTS_RW_A
51 default y
52
53 endif
54
55 config FMDFILE
56 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwa-8M.fmd" if VBOOT_SLOTS_RW_A
57
58 config VBOOT_VBNV_OFFSET
59 hex
60 default 0x2c
61
62 config MAINBOARD_DIR
63 default "emulation/qemu-i440fx"
64
65 config MAINBOARD_PART_NUMBER
66 default "QEMU x86 i440fx/piix4"
67
68 config IRQ_SLOT_COUNT
69 int
70 default 6
71
72 # Skip the first 64KiB as coreboot table pointer is installed
73 # at address 0
74 config DCACHE_RAM_BASE
75 hex
76 default 0x10000
77
78 # Memory at 0xa0000 decodes to VGA
79 config DCACHE_RAM_SIZE
80 hex
81 default 0x90000
82
83 config C_ENV_BOOTBLOCK_SIZE
84 hex
85 default 0x10000
86
87 config DCACHE_BSP_STACK_SIZE
88 hex
89 default 0x4000
90
91 endif # BOARD_EMULATION_QEMU_X86_I440FX