blob: 5fad794481f52c8d16e553bd2ff983a024aff742 [file] [log] [blame]
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09001menu "x86 architecture"
2 depends on X86
3
4config SYS_ARCH
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09005 default "x86"
6
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09007choice
Bin Meng03b341b2015-04-27 23:22:24 +08008 prompt "Mainboard vendor"
Bin Mengf9bfac12015-05-07 21:34:09 +08009 default VENDOR_EMULATION
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090010
Bin Meng03b341b2015-04-27 23:22:24 +080011config VENDOR_COREBOOT
12 bool "coreboot"
Simon Glass4a56f102015-01-27 22:13:47 -070013
Ben Stoltzab76a472015-08-04 12:33:46 -060014config VENDOR_EFI
15 bool "efi"
16
Bin Meng2229c4c2015-05-07 21:34:08 +080017config VENDOR_EMULATION
18 bool "emulation"
19
Bin Meng03b341b2015-04-27 23:22:24 +080020config VENDOR_GOOGLE
21 bool "Google"
Simon Glass4a56f102015-01-27 22:13:47 -070022
Bin Meng03b341b2015-04-27 23:22:24 +080023config VENDOR_INTEL
24 bool "Intel"
Bin Meng8ba49fe2015-02-02 22:35:29 +080025
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090026endchoice
27
Bin Meng03b341b2015-04-27 23:22:24 +080028# board-specific options below
29source "board/coreboot/Kconfig"
Ben Stoltz19c23fd2015-08-04 12:33:47 -060030source "board/efi/Kconfig"
Bin Meng2229c4c2015-05-07 21:34:08 +080031source "board/emulation/Kconfig"
Bin Meng03b341b2015-04-27 23:22:24 +080032source "board/google/Kconfig"
33source "board/intel/Kconfig"
34
Bin Meng6e8ddec2015-04-27 23:22:25 +080035# platform-specific options below
36source "arch/x86/cpu/baytrail/Kconfig"
37source "arch/x86/cpu/coreboot/Kconfig"
38source "arch/x86/cpu/ivybridge/Kconfig"
Bin Meng2229c4c2015-05-07 21:34:08 +080039source "arch/x86/cpu/qemu/Kconfig"
Bin Meng6e8ddec2015-04-27 23:22:25 +080040source "arch/x86/cpu/quark/Kconfig"
41source "arch/x86/cpu/queensbay/Kconfig"
42
43# architecture-specific options below
44
Simon Glass838723b2015-02-11 16:32:59 -070045config SYS_MALLOC_F_LEN
46 default 0x800
47
Simon Glass98f139b2014-11-12 22:42:10 -070048config RAMBASE
49 hex
50 default 0x100000
51
Simon Glass98f139b2014-11-12 22:42:10 -070052config XIP_ROM_SIZE
53 hex
Bin Meng4cf0b472015-01-06 22:14:16 +080054 depends on X86_RESET_VECTOR
Simon Glassd9b083e2015-01-01 16:17:54 -070055 default ROM_SIZE
Simon Glass98f139b2014-11-12 22:42:10 -070056
57config CPU_ADDR_BITS
58 int
59 default 36
60
Simon Glass268eefd2014-11-12 22:42:28 -070061config HPET_ADDRESS
62 hex
63 default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
64
65config SMM_TSEG
66 bool
67 default n
68
69config SMM_TSEG_SIZE
70 hex
71
Bin Menga11937c2015-01-06 22:14:15 +080072config X86_RESET_VECTOR
73 bool
74 default n
75
Bin Meng51b0f622015-06-07 11:33:12 +080076config RESET_SEG_START
77 hex
78 depends on X86_RESET_VECTOR
79 default 0xffff0000
80
81config RESET_SEG_SIZE
82 hex
83 depends on X86_RESET_VECTOR
84 default 0x10000
85
86config RESET_VEC_LOC
87 hex
88 depends on X86_RESET_VECTOR
89 default 0xfffffff0
90
Bin Menga11937c2015-01-06 22:14:15 +080091config SYS_X86_START16
92 hex
93 depends on X86_RESET_VECTOR
94 default 0xfffff800
95
Bin Mengc191ab72014-12-12 21:05:19 +080096config BOARD_ROMSIZE_KB_512
97 bool
98config BOARD_ROMSIZE_KB_1024
99 bool
100config BOARD_ROMSIZE_KB_2048
101 bool
102config BOARD_ROMSIZE_KB_4096
103 bool
104config BOARD_ROMSIZE_KB_8192
105 bool
106config BOARD_ROMSIZE_KB_16384
107 bool
108
109choice
110 prompt "ROM chip size"
Bin Meng4cf0b472015-01-06 22:14:16 +0800111 depends on X86_RESET_VECTOR
Bin Mengc191ab72014-12-12 21:05:19 +0800112 default UBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
113 default UBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
114 default UBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
115 default UBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
116 default UBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
117 default UBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
118 help
119 Select the size of the ROM chip you intend to flash U-Boot on.
120
121 The build system will take care of creating a u-boot.rom file
122 of the matching size.
123
124config UBOOT_ROMSIZE_KB_512
125 bool "512 KB"
126 help
127 Choose this option if you have a 512 KB ROM chip.
128
129config UBOOT_ROMSIZE_KB_1024
130 bool "1024 KB (1 MB)"
131 help
132 Choose this option if you have a 1024 KB (1 MB) ROM chip.
133
134config UBOOT_ROMSIZE_KB_2048
135 bool "2048 KB (2 MB)"
136 help
137 Choose this option if you have a 2048 KB (2 MB) ROM chip.
138
139config UBOOT_ROMSIZE_KB_4096
140 bool "4096 KB (4 MB)"
141 help
142 Choose this option if you have a 4096 KB (4 MB) ROM chip.
143
144config UBOOT_ROMSIZE_KB_8192
145 bool "8192 KB (8 MB)"
146 help
147 Choose this option if you have a 8192 KB (8 MB) ROM chip.
148
149config UBOOT_ROMSIZE_KB_16384
150 bool "16384 KB (16 MB)"
151 help
152 Choose this option if you have a 16384 KB (16 MB) ROM chip.
153
154endchoice
155
156# Map the config names to an integer (KB).
157config UBOOT_ROMSIZE_KB
158 int
159 default 512 if UBOOT_ROMSIZE_KB_512
160 default 1024 if UBOOT_ROMSIZE_KB_1024
161 default 2048 if UBOOT_ROMSIZE_KB_2048
162 default 4096 if UBOOT_ROMSIZE_KB_4096
163 default 8192 if UBOOT_ROMSIZE_KB_8192
164 default 16384 if UBOOT_ROMSIZE_KB_16384
165
166# Map the config names to a hex value (bytes).
Simon Glass6622b342014-11-12 22:42:08 -0700167config ROM_SIZE
168 hex
Bin Mengc191ab72014-12-12 21:05:19 +0800169 default 0x80000 if UBOOT_ROMSIZE_KB_512
170 default 0x100000 if UBOOT_ROMSIZE_KB_1024
171 default 0x200000 if UBOOT_ROMSIZE_KB_2048
172 default 0x400000 if UBOOT_ROMSIZE_KB_4096
173 default 0x800000 if UBOOT_ROMSIZE_KB_8192
174 default 0xc00000 if UBOOT_ROMSIZE_KB_12288
175 default 0x1000000 if UBOOT_ROMSIZE_KB_16384
Simon Glass6622b342014-11-12 22:42:08 -0700176
177config HAVE_INTEL_ME
178 bool "Platform requires Intel Management Engine"
179 help
180 Newer higher-end devices have an Intel Management Engine (ME)
181 which is a very large binary blob (typically 1.5MB) which is
182 required for the platform to work. This enforces a particular
183 SPI flash format. You will need to supply the me.bin file in
184 your board directory.
185
Simon Glass268eefd2014-11-12 22:42:28 -0700186config X86_RAMTEST
187 bool "Perform a simple RAM test after SDRAM initialisation"
188 help
189 If there is something wrong with SDRAM then the platform will
190 often crash within U-Boot or the kernel. This option enables a
191 very simple RAM test that quickly checks whether the SDRAM seems
192 to work correctly. It is not exhaustive but can save time by
193 detecting obvious failures.
194
Simon Glass45c083b2015-01-27 22:13:41 -0700195config HAVE_FSP
196 bool "Add an Firmware Support Package binary"
Simon Glass2b6d80b2015-08-04 12:34:00 -0600197 depends on !EFI
Simon Glass45c083b2015-01-27 22:13:41 -0700198 help
199 Select this option to add an Firmware Support Package binary to
200 the resulting U-Boot image. It is a binary blob which U-Boot uses
201 to set up SDRAM and other chipset specific initialization.
202
203 Note: Without this binary U-Boot will not be able to set up its
204 SDRAM so will not boot.
205
206config FSP_FILE
207 string "Firmware Support Package binary filename"
208 depends on HAVE_FSP
209 default "fsp.bin"
210 help
211 The filename of the file to use as Firmware Support Package binary
212 in the board directory.
213
214config FSP_ADDR
215 hex "Firmware Support Package binary location"
216 depends on HAVE_FSP
217 default 0xfffc0000
218 help
219 FSP is not Position Independent Code (PIC) and the whole FSP has to
220 be rebased if it is placed at a location which is different from the
221 perferred base address specified during the FSP build. Use Intel's
222 Binary Configuration Tool (BCT) to do the rebase.
223
224 The default base address of 0xfffc0000 indicates that the binary must
225 be located at offset 0xc0000 from the beginning of a 1MB flash device.
226
227config FSP_TEMP_RAM_ADDR
228 hex
Bin Meng51887c32015-06-01 21:07:23 +0800229 depends on HAVE_FSP
Simon Glass45c083b2015-01-27 22:13:41 -0700230 default 0x2000000
231 help
Bin Meng73574dc2015-08-20 06:40:20 -0700232 Stack top address which is used in fsp_init() after DRAM is ready and
Simon Glass45c083b2015-01-27 22:13:41 -0700233 CAR is disabled.
234
Bin Meng12440cd2015-08-20 06:40:19 -0700235config FSP_SYS_MALLOC_F_LEN
236 hex
237 depends on HAVE_FSP
238 default 0x100000
239 help
240 Additional size of malloc() pool before relocation.
241
Bin Mengf9a61892015-12-10 22:03:01 -0800242config FSP_USE_UPD
243 bool
244 depends on HAVE_FSP
245 default y
246 help
247 Most FSPs use UPD data region for some FSP customization. But there
248 are still some FSPs that might not even have UPD. For such FSPs,
249 override this to n in their platform Kconfig files.
250
Bin Meng4c836c92016-02-17 00:16:23 -0800251config FSP_BROKEN_HOB
252 bool
253 depends on HAVE_FSP
254 help
255 Indicate some buggy FSPs that does not report memory used by FSP
256 itself as reserved in the resource descriptor HOB. Select this to
257 tell U-Boot to do some additional work to ensure U-Boot relocation
258 do not overwrite the important boot service data which is used by
259 FSP, otherwise the subsequent call to fsp_notify() will fail.
260
Bin Meng0ffd7e52015-10-11 21:37:35 -0700261config ENABLE_MRC_CACHE
262 bool "Enable MRC cache"
263 depends on !EFI && !SYS_COREBOOT
264 help
265 Enable this feature to cause MRC data to be cached in NV storage
266 to be used for speeding up boot time on future reboots and/or
267 power cycles.
268
Simon Glassa9a44262015-04-29 22:25:59 -0600269config SMP
270 bool "Enable Symmetric Multiprocessing"
271 default n
272 help
273 Enable use of more than one CPU in U-Boot and the Operating System
274 when loaded. Each CPU will be started up and information can be
275 obtained using the 'cpu' command. If this option is disabled, then
276 only one CPU will be enabled regardless of the number of CPUs
277 available.
278
Bin Meng6bd24462015-06-12 14:52:23 +0800279config MAX_CPUS
280 int "Maximum number of CPUs permitted"
281 depends on SMP
282 default 4
283 help
284 When using multi-CPU chips it is possible for U-Boot to start up
285 more than one CPU. The stack memory used by all of these CPUs is
286 pre-allocated so at present U-Boot wants to know the maximum
287 number of CPUs that may be present. Set this to at least as high
288 as the number of CPUs in your system (it uses about 4KB of RAM for
289 each CPU).
290
Simon Glassa9a44262015-04-29 22:25:59 -0600291config AP_STACK_SIZE
292 hex
Bin Meng5ec10582015-06-12 14:52:22 +0800293 depends on SMP
Simon Glassa9a44262015-04-29 22:25:59 -0600294 default 0x1000
295 help
296 Each additional CPU started by U-Boot requires its own stack. This
297 option sets the stack size used by each CPU and directly affects
298 the memory used by this initialisation process. Typically 4KB is
299 enough space.
300
Bin Meng4de38862015-07-06 16:31:33 +0800301config HAVE_VGA_BIOS
302 bool "Add a VGA BIOS image"
303 help
304 Select this option if you have a VGA BIOS image that you would
305 like to add to your ROM.
306
307config VGA_BIOS_FILE
308 string "VGA BIOS image filename"
309 depends on HAVE_VGA_BIOS
310 default "vga.bin"
311 help
312 The filename of the VGA BIOS image in the board directory.
313
314config VGA_BIOS_ADDR
315 hex "VGA BIOS image location"
316 depends on HAVE_VGA_BIOS
317 default 0xfff90000
318 help
319 The location of VGA BIOS image in the SPI flash. For example, base
320 address of 0xfff90000 indicates that the image will be put at offset
321 0x90000 from the beginning of a 1MB flash device.
322
Bin Meng45236ad2015-04-24 18:10:05 +0800323menu "System tables"
Bin Mengfd53d3c2015-08-13 00:29:13 -0700324 depends on !EFI && !SYS_COREBOOT
Bin Meng45236ad2015-04-24 18:10:05 +0800325
326config GENERATE_PIRQ_TABLE
327 bool "Generate a PIRQ table"
328 default n
329 help
330 Generate a PIRQ routing table for this board. The PIRQ routing table
331 is generated by U-Boot in the system memory from 0xf0000 to 0xfffff
332 at every 16-byte boundary with a PCI IRQ routing signature ("$PIR").
333 It specifies the interrupt router information as well how all the PCI
334 devices' interrupt pins are wired to PIRQs.
335
Simon Glass07e922a2015-04-28 20:25:10 -0600336config GENERATE_SFI_TABLE
337 bool "Generate a SFI (Simple Firmware Interface) table"
338 help
339 The Simple Firmware Interface (SFI) provides a lightweight method
340 for platform firmware to pass information to the operating system
341 via static tables in memory. Kernel SFI support is required to
342 boot on SFI-only platforms. If you have ACPI tables then these are
343 used instead.
344
345 U-Boot writes this table in write_sfi_table() just before booting
346 the OS.
347
348 For more information, see http://simplefirmware.org
349
Bin Mengc4f407e2015-06-23 12:18:52 +0800350config GENERATE_MP_TABLE
351 bool "Generate an MP (Multi-Processor) table"
352 default n
353 help
354 Generate an MP (Multi-Processor) table for this board. The MP table
355 provides a way for the operating system to support for symmetric
356 multiprocessing as well as symmetric I/O interrupt handling with
357 the local APIC and I/O APIC.
358
Saket Sinha331141a2015-08-22 12:20:55 +0530359config GENERATE_ACPI_TABLE
360 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
361 default n
362 help
363 The Advanced Configuration and Power Interface (ACPI) specification
364 provides an open standard for device configuration and management
365 by the operating system. It defines platform-independent interfaces
366 for configuration and power management monitoring.
367
Miao Yan389ef482016-01-20 01:57:07 -0800368config QEMU_ACPI_TABLE
369 bool "Load ACPI table from QEMU fw_cfg interface"
370 depends on GENERATE_ACPI_TABLE && QEMU
371 default y
372 help
373 By default, U-Boot generates its own ACPI tables. This option, if
374 enabled, disables U-Boot's version and loads ACPI tables generated
375 by QEMU.
376
Bin Mengae5bedb2015-10-12 05:23:41 -0700377config GENERATE_SMBIOS_TABLE
378 bool "Generate an SMBIOS (System Management BIOS) table"
379 default y
380 help
381 The System Management BIOS (SMBIOS) specification addresses how
382 motherboard and system vendors present management information about
383 their products in a standard format by extending the BIOS interface
384 on Intel architecture systems.
385
386 Check http://www.dmtf.org/standards/smbios for details.
387
Bin Meng45236ad2015-04-24 18:10:05 +0800388endmenu
389
390config MAX_PIRQ_LINKS
391 int
392 default 8
393 help
394 This variable specifies the number of PIRQ interrupt links which are
395 routable. On most older chipsets, this is 4, PIRQA through PIRQD.
396 Some newer chipsets offer more than four links, commonly up to PIRQH.
397
398config IRQ_SLOT_COUNT
399 int
400 default 128
401 help
402 U-Boot can support up to 254 IRQ slot info in the PIRQ routing table
403 which in turns forms a table of exact 4KiB. The default value 128
404 should be enough for most boards. If this does not fit your board,
405 change it according to your needs.
406
Simon Glass461cebf2015-01-27 22:13:33 -0700407config PCIE_ECAM_BASE
408 hex
Bin Mengd11c1b22015-02-02 21:25:09 +0800409 default 0xe0000000
Simon Glass461cebf2015-01-27 22:13:33 -0700410 help
411 This is the memory-mapped address of PCI configuration space, which
412 is only available through the Enhanced Configuration Access
413 Mechanism (ECAM) with PCI Express. It can be set up almost
414 anywhere. Before it is set up, it is possible to access PCI
415 configuration space through I/O access, but memory access is more
416 convenient. Using this, PCI can be scanned and configured. This
417 should be set to a region that does not conflict with memory
418 assigned to PCI devices - i.e. the memory and prefetch regions, as
419 passed to pci_set_region().
420
Bin Mengcf40bd42015-07-22 01:21:15 -0700421config PCIE_ECAM_SIZE
422 hex
423 default 0x10000000
424 help
425 This is the size of memory-mapped address of PCI configuration space,
426 which is only available through the Enhanced Configuration Access
427 Mechanism (ECAM) with PCI Express. Each bus consumes 1 MiB memory,
428 so a default 0x10000000 size covers all of the 256 buses which is the
429 maximum number of PCI buses as defined by the PCI specification.
430
Bin Meng70e41942015-10-22 19:13:31 -0700431config I8259_PIC
432 bool
433 default y
434 help
435 Intel 8259 ISA compatible chipset incorporates two 8259 (master and
436 slave) interrupt controllers. Include this to have U-Boot set up
437 the interrupt correctly.
438
439config I8254_TIMER
440 bool
441 default y
442 help
443 Intel 8254 timer contains three counters which have fixed uses.
444 Include this to have U-Boot set up the timer correctly.
445
Simon Glass3356cad2015-11-11 10:05:43 -0700446config I8042_KEYB
447 default y
448
449config DM_KEYBOARD
450 default y
451
Bin Meng96030fa2016-02-28 23:54:50 -0800452config SEABIOS
453 bool "Support booting SeaBIOS"
454 help
455 SeaBIOS is an open source implementation of a 16-bit X86 BIOS.
456 It can run in an emulator or natively on X86 hardware with the use
457 of coreboot/U-Boot. By turning on this option, U-Boot prepares
458 all the configuration tables that are necessary to boot SeaBIOS.
459
460 Check http://www.seabios.org/SeaBIOS for details.
461
Simon Glass2b6d80b2015-08-04 12:34:00 -0600462source "arch/x86/lib/efi/Kconfig"
463
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900464endmenu