blob: 3506ba2946b2feea29ce29963feba6ce2a4775af [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 Yamada9520b712014-10-24 01:30:43 +09007config USE_PRIVATE_LIBGCC
8 default y
9
Simon Glass4f3b9d12015-03-06 13:19:02 -070010config SYS_VSNPRINTF
11 default y
12
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090013choice
Bin Meng03b341b2015-04-27 23:22:24 +080014 prompt "Mainboard vendor"
Bin Mengf9bfac12015-05-07 21:34:09 +080015 default VENDOR_EMULATION
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090016
Bin Meng03b341b2015-04-27 23:22:24 +080017config VENDOR_COREBOOT
18 bool "coreboot"
Simon Glass4a56f102015-01-27 22:13:47 -070019
Bin Meng2229c4c2015-05-07 21:34:08 +080020config VENDOR_EMULATION
21 bool "emulation"
22
Bin Meng03b341b2015-04-27 23:22:24 +080023config VENDOR_GOOGLE
24 bool "Google"
Simon Glass4a56f102015-01-27 22:13:47 -070025
Bin Meng03b341b2015-04-27 23:22:24 +080026config VENDOR_INTEL
27 bool "Intel"
Bin Meng8ba49fe2015-02-02 22:35:29 +080028
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090029endchoice
30
Bin Meng03b341b2015-04-27 23:22:24 +080031# board-specific options below
32source "board/coreboot/Kconfig"
Bin Meng2229c4c2015-05-07 21:34:08 +080033source "board/emulation/Kconfig"
Bin Meng03b341b2015-04-27 23:22:24 +080034source "board/google/Kconfig"
35source "board/intel/Kconfig"
36
Bin Meng6e8ddec2015-04-27 23:22:25 +080037# platform-specific options below
38source "arch/x86/cpu/baytrail/Kconfig"
39source "arch/x86/cpu/coreboot/Kconfig"
40source "arch/x86/cpu/ivybridge/Kconfig"
Bin Meng2229c4c2015-05-07 21:34:08 +080041source "arch/x86/cpu/qemu/Kconfig"
Bin Meng6e8ddec2015-04-27 23:22:25 +080042source "arch/x86/cpu/quark/Kconfig"
43source "arch/x86/cpu/queensbay/Kconfig"
44
45# architecture-specific options below
46
Simon Glass838723b2015-02-11 16:32:59 -070047config SYS_MALLOC_F_LEN
48 default 0x800
49
Simon Glass98f139b2014-11-12 22:42:10 -070050config RAMBASE
51 hex
52 default 0x100000
53
Simon Glass98f139b2014-11-12 22:42:10 -070054config XIP_ROM_SIZE
55 hex
Bin Meng4cf0b472015-01-06 22:14:16 +080056 depends on X86_RESET_VECTOR
Simon Glassd9b083e2015-01-01 16:17:54 -070057 default ROM_SIZE
Simon Glass98f139b2014-11-12 22:42:10 -070058
59config CPU_ADDR_BITS
60 int
61 default 36
62
Simon Glass268eefd2014-11-12 22:42:28 -070063config HPET_ADDRESS
64 hex
65 default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
66
67config SMM_TSEG
68 bool
69 default n
70
71config SMM_TSEG_SIZE
72 hex
73
Bin Menga11937c2015-01-06 22:14:15 +080074config X86_RESET_VECTOR
75 bool
76 default n
77
78config SYS_X86_START16
79 hex
80 depends on X86_RESET_VECTOR
81 default 0xfffff800
82
Bin Mengc191ab72014-12-12 21:05:19 +080083config BOARD_ROMSIZE_KB_512
84 bool
85config BOARD_ROMSIZE_KB_1024
86 bool
87config BOARD_ROMSIZE_KB_2048
88 bool
89config BOARD_ROMSIZE_KB_4096
90 bool
91config BOARD_ROMSIZE_KB_8192
92 bool
93config BOARD_ROMSIZE_KB_16384
94 bool
95
96choice
97 prompt "ROM chip size"
Bin Meng4cf0b472015-01-06 22:14:16 +080098 depends on X86_RESET_VECTOR
Bin Mengc191ab72014-12-12 21:05:19 +080099 default UBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
100 default UBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
101 default UBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
102 default UBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
103 default UBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
104 default UBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
105 help
106 Select the size of the ROM chip you intend to flash U-Boot on.
107
108 The build system will take care of creating a u-boot.rom file
109 of the matching size.
110
111config UBOOT_ROMSIZE_KB_512
112 bool "512 KB"
113 help
114 Choose this option if you have a 512 KB ROM chip.
115
116config UBOOT_ROMSIZE_KB_1024
117 bool "1024 KB (1 MB)"
118 help
119 Choose this option if you have a 1024 KB (1 MB) ROM chip.
120
121config UBOOT_ROMSIZE_KB_2048
122 bool "2048 KB (2 MB)"
123 help
124 Choose this option if you have a 2048 KB (2 MB) ROM chip.
125
126config UBOOT_ROMSIZE_KB_4096
127 bool "4096 KB (4 MB)"
128 help
129 Choose this option if you have a 4096 KB (4 MB) ROM chip.
130
131config UBOOT_ROMSIZE_KB_8192
132 bool "8192 KB (8 MB)"
133 help
134 Choose this option if you have a 8192 KB (8 MB) ROM chip.
135
136config UBOOT_ROMSIZE_KB_16384
137 bool "16384 KB (16 MB)"
138 help
139 Choose this option if you have a 16384 KB (16 MB) ROM chip.
140
141endchoice
142
143# Map the config names to an integer (KB).
144config UBOOT_ROMSIZE_KB
145 int
146 default 512 if UBOOT_ROMSIZE_KB_512
147 default 1024 if UBOOT_ROMSIZE_KB_1024
148 default 2048 if UBOOT_ROMSIZE_KB_2048
149 default 4096 if UBOOT_ROMSIZE_KB_4096
150 default 8192 if UBOOT_ROMSIZE_KB_8192
151 default 16384 if UBOOT_ROMSIZE_KB_16384
152
153# Map the config names to a hex value (bytes).
Simon Glass6622b342014-11-12 22:42:08 -0700154config ROM_SIZE
155 hex
Bin Mengc191ab72014-12-12 21:05:19 +0800156 default 0x80000 if UBOOT_ROMSIZE_KB_512
157 default 0x100000 if UBOOT_ROMSIZE_KB_1024
158 default 0x200000 if UBOOT_ROMSIZE_KB_2048
159 default 0x400000 if UBOOT_ROMSIZE_KB_4096
160 default 0x800000 if UBOOT_ROMSIZE_KB_8192
161 default 0xc00000 if UBOOT_ROMSIZE_KB_12288
162 default 0x1000000 if UBOOT_ROMSIZE_KB_16384
Simon Glass6622b342014-11-12 22:42:08 -0700163
164config HAVE_INTEL_ME
165 bool "Platform requires Intel Management Engine"
166 help
167 Newer higher-end devices have an Intel Management Engine (ME)
168 which is a very large binary blob (typically 1.5MB) which is
169 required for the platform to work. This enforces a particular
170 SPI flash format. You will need to supply the me.bin file in
171 your board directory.
172
Simon Glass268eefd2014-11-12 22:42:28 -0700173config X86_RAMTEST
174 bool "Perform a simple RAM test after SDRAM initialisation"
175 help
176 If there is something wrong with SDRAM then the platform will
177 often crash within U-Boot or the kernel. This option enables a
178 very simple RAM test that quickly checks whether the SDRAM seems
179 to work correctly. It is not exhaustive but can save time by
180 detecting obvious failures.
181
Simon Glass5ecb8472014-11-14 20:56:30 -0700182config MARK_GRAPHICS_MEM_WRCOMB
Bin Mengf959d902015-04-27 23:22:26 +0800183 bool "Mark graphics memory as write-combining"
Simon Glass5ecb8472014-11-14 20:56:30 -0700184 default n
185 help
Bin Mengf959d902015-04-27 23:22:26 +0800186 The graphics performance may increase if the graphics
187 memory is set as write-combining cache type. This option
188 enables marking the graphics memory as write-combining.
Simon Glass5ecb8472014-11-14 20:56:30 -0700189
Simon Glass45c083b2015-01-27 22:13:41 -0700190config HAVE_FSP
191 bool "Add an Firmware Support Package binary"
192 help
193 Select this option to add an Firmware Support Package binary to
194 the resulting U-Boot image. It is a binary blob which U-Boot uses
195 to set up SDRAM and other chipset specific initialization.
196
197 Note: Without this binary U-Boot will not be able to set up its
198 SDRAM so will not boot.
199
200config FSP_FILE
201 string "Firmware Support Package binary filename"
202 depends on HAVE_FSP
203 default "fsp.bin"
204 help
205 The filename of the file to use as Firmware Support Package binary
206 in the board directory.
207
208config FSP_ADDR
209 hex "Firmware Support Package binary location"
210 depends on HAVE_FSP
211 default 0xfffc0000
212 help
213 FSP is not Position Independent Code (PIC) and the whole FSP has to
214 be rebased if it is placed at a location which is different from the
215 perferred base address specified during the FSP build. Use Intel's
216 Binary Configuration Tool (BCT) to do the rebase.
217
218 The default base address of 0xfffc0000 indicates that the binary must
219 be located at offset 0xc0000 from the beginning of a 1MB flash device.
220
221config FSP_TEMP_RAM_ADDR
222 hex
Bin Meng51887c32015-06-01 21:07:23 +0800223 depends on HAVE_FSP
Simon Glass45c083b2015-01-27 22:13:41 -0700224 default 0x2000000
225 help
226 Stack top address which is used in FspInit after DRAM is ready and
227 CAR is disabled.
228
Simon Glassa9a44262015-04-29 22:25:59 -0600229config MAX_CPUS
230 int "Maximum number of CPUs permitted"
231 default 4
232 help
233 When using multi-CPU chips it is possible for U-Boot to start up
234 more than one CPU. The stack memory used by all of these CPUs is
235 pre-allocated so at present U-Boot wants to know the maximum
236 number of CPUs that may be present. Set this to at least as high
237 as the number of CPUs in your system (it uses about 4KB of RAM for
238 each CPU).
239
240config SMP
241 bool "Enable Symmetric Multiprocessing"
242 default n
243 help
244 Enable use of more than one CPU in U-Boot and the Operating System
245 when loaded. Each CPU will be started up and information can be
246 obtained using the 'cpu' command. If this option is disabled, then
247 only one CPU will be enabled regardless of the number of CPUs
248 available.
249
250config AP_STACK_SIZE
251 hex
252 default 0x1000
253 help
254 Each additional CPU started by U-Boot requires its own stack. This
255 option sets the stack size used by each CPU and directly affects
256 the memory used by this initialisation process. Typically 4KB is
257 enough space.
258
Bin Meng059f1f82015-02-05 23:42:20 +0800259config TSC_CALIBRATION_BYPASS
260 bool "Bypass Time-Stamp Counter (TSC) calibration"
261 default n
262 help
263 By default U-Boot automatically calibrates Time-Stamp Counter (TSC)
264 running frequency via Model-Specific Register (MSR) and Programmable
265 Interval Timer (PIT). If the calibration does not work on your board,
266 select this option and provide a hardcoded TSC running frequency with
267 CONFIG_TSC_FREQ_IN_MHZ below.
268
269 Normally this option should be turned on in a simulation environment
270 like qemu.
271
272config TSC_FREQ_IN_MHZ
273 int "Time-Stamp Counter (TSC) running frequency in MHz"
274 depends on TSC_CALIBRATION_BYPASS
275 default 1000
276 help
277 The running frequency in MHz of Time-Stamp Counter (TSC).
278
Bin Meng45236ad2015-04-24 18:10:05 +0800279menu "System tables"
280
281config GENERATE_PIRQ_TABLE
282 bool "Generate a PIRQ table"
283 default n
284 help
285 Generate a PIRQ routing table for this board. The PIRQ routing table
286 is generated by U-Boot in the system memory from 0xf0000 to 0xfffff
287 at every 16-byte boundary with a PCI IRQ routing signature ("$PIR").
288 It specifies the interrupt router information as well how all the PCI
289 devices' interrupt pins are wired to PIRQs.
290
Simon Glass07e922a2015-04-28 20:25:10 -0600291config GENERATE_SFI_TABLE
292 bool "Generate a SFI (Simple Firmware Interface) table"
293 help
294 The Simple Firmware Interface (SFI) provides a lightweight method
295 for platform firmware to pass information to the operating system
296 via static tables in memory. Kernel SFI support is required to
297 boot on SFI-only platforms. If you have ACPI tables then these are
298 used instead.
299
300 U-Boot writes this table in write_sfi_table() just before booting
301 the OS.
302
303 For more information, see http://simplefirmware.org
304
Bin Meng45236ad2015-04-24 18:10:05 +0800305endmenu
306
307config MAX_PIRQ_LINKS
308 int
309 default 8
310 help
311 This variable specifies the number of PIRQ interrupt links which are
312 routable. On most older chipsets, this is 4, PIRQA through PIRQD.
313 Some newer chipsets offer more than four links, commonly up to PIRQH.
314
315config IRQ_SLOT_COUNT
316 int
317 default 128
318 help
319 U-Boot can support up to 254 IRQ slot info in the PIRQ routing table
320 which in turns forms a table of exact 4KiB. The default value 128
321 should be enough for most boards. If this does not fit your board,
322 change it according to your needs.
323
Simon Glass461cebf2015-01-27 22:13:33 -0700324config PCIE_ECAM_BASE
325 hex
Bin Mengd11c1b22015-02-02 21:25:09 +0800326 default 0xe0000000
Simon Glass461cebf2015-01-27 22:13:33 -0700327 help
328 This is the memory-mapped address of PCI configuration space, which
329 is only available through the Enhanced Configuration Access
330 Mechanism (ECAM) with PCI Express. It can be set up almost
331 anywhere. Before it is set up, it is possible to access PCI
332 configuration space through I/O access, but memory access is more
333 convenient. Using this, PCI can be scanned and configured. This
334 should be set to a region that does not conflict with memory
335 assigned to PCI devices - i.e. the memory and prefetch regions, as
336 passed to pci_set_region().
337
Simon Glass5322d622015-03-02 17:04:37 -0700338config BOOTSTAGE
339 default y
340
341config BOOTSTAGE_REPORT
342 default y
343
344config CMD_BOOTSTAGE
345 default y
346
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900347endmenu