Debian Codegraph @

src/mainboard/emulation/qemu-q35/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 if BOARD_EMULATION_QEMU_X86_Q35
4
5 config BOARD_SPECIFIC_OPTIONS
6 def_bool y
7 select CPU_QEMU_X86
8 select SOUTHBRIDGE_INTEL_I82801IX
9 select HAVE_CMOS_DEFAULT
10 select HAVE_OPTION_TABLE
11 # select HAVE_PIRQ_TABLE
12 select HAVE_ACPI_TABLES
13 select BOARD_ROMSIZE_KB_8192
14 select MAINBOARD_HAS_NATIVE_VGA_INIT
15 select MAINBOARD_FORCE_NATIVE_VGA_INIT if !CHROMEOS
16 select MEMORY_MAPPED_TPM
17 select MAINBOARD_HAS_CHROMEOS
18 select BOOT_DEVICE_NOT_SPI_FLASH
19 select BOOT_DEVICE_MEMORY_MAPPED
20 select BOOT_DEVICE_SUPPORTS_WRITES
21 select DRIVERS_EMULATION_QEMU_FW_CFG
22
23 config VBOOT
24 select VBOOT_MUST_REQUEST_DISPLAY
25 select VBOOT_STARTS_IN_BOOTBLOCK
26 select VBOOT_VBNV_CMOS
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
32 config FMDFILE
33 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwa-8M.fmd" if VBOOT_SLOTS_RW_A && !VBOOT_SLOTS_RW_AB
34 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab-8M.fmd" if VBOOT_SLOTS_RW_AB
35
36 if ARCH_BOOTBLOCK_X86_64
37
38 config PAGE_TABLES_IN_CBFS
39 bool
40 default y
41
42 # Need to install page tables in DRAM as the virtual MMU has problems translating paging
43 # request when the page table resides in emulated ROM. This causes undefined behaviour
44 # when handling data requests, as well as fetching and decoding instructions
45 # Real hardware didn't show any problems until now.
46 config ARCH_X86_64_PGTBL_LOC
47 default 0x8000
48 endif
49
50 if VBOOT
51
52 config VBOOT_SLOTS_RW_A
53 default y
54
55 endif
56
57 config VBOOT_VBNV_OFFSET
58 hex
59 default 0x2c
60
61 config MAINBOARD_DIR
62 default "emulation/qemu-q35"
63
64 config MAINBOARD_PART_NUMBER
65 default "QEMU x86 q35/ich9"
66
67 config ECAM_MMCONF_BASE_ADDRESS
68 default 0xb0000000
69
70 config ECAM_MMCONF_BUS_NUMBER
71 int
72 default 256
73
74 # fw_cfg tables can be larger than the default when TPM is enabled
75 config MAX_ACPI_TABLE_SIZE_KB
76 int
77 default 224
78
79 # Skip the first 64KiB as coreboot table pointer is installed
80 # at address 0
81 config DCACHE_RAM_BASE
82 hex
83 default 0x10000
84
85 # Memory at 0xa0000 decodes to VGA
86 config DCACHE_RAM_SIZE
87 hex
88 default 0x90000
89
90 # Do not show IFD/blob options since QEMU doesn't care
91 config HAVE_INTEL_FIRMWARE
92 bool
93 default n
94
95 config DCACHE_BSP_STACK_SIZE
96 hex
97 default 0x4000
98
99 endif # BOARD_EMULATION_QEMU_X86_Q35