blob: 35d24e4acaec1a1d8a72d3b7de5a0c617b4a03ef [file] [log] [blame]
Masahiro Yamadadd840582014-07-30 14:08:14 +09001menu "x86 architecture"
2 depends on X86
3
4config SYS_ARCH
Masahiro Yamadadd840582014-07-30 14:08:14 +09005 default "x86"
6
Masahiro Yamada45ccec82014-10-24 01:30:43 +09007config USE_PRIVATE_LIBGCC
8 default y
9
Masahiro Yamadadd840582014-07-30 14:08:14 +090010choice
11 prompt "Target select"
12
13config TARGET_COREBOOT
14 bool "Support coreboot"
Simon Glass8ef07572014-11-12 22:42:07 -070015 help
16 This target is used for running U-Boot on top of Coreboot. In
17 this case Coreboot does the early inititalisation, and U-Boot
18 takes over once the RAM, video and CPU are fully running.
19 U-Boot is loaded as a fallback payload from Coreboot, in
20 Coreboot terminology. This method was used for the Chromebook
21 Pixel when launched.
22
23config TARGET_CHROMEBOOK_LINK
24 bool "Support Chromebook link"
25 help
26 This is the Chromebook Pixel released in 2013. It uses an Intel
27 i5 Ivybridge which is a die-shrink of Sandybridge, with 4GB of
28 SDRAM. It has a Panther Point platform controller hub, PCIe
29 WiFi and Bluetooth. It also includes a 720p webcam, USB SD
30 reader, microphone and speakers, display port and 32GB SATA
31 solid state drive. There is a Chrome OS EC connected on LPC,
32 and it provides a 2560x1700 high resolution touch-enabled LCD
33 display.
Masahiro Yamadadd840582014-07-30 14:08:14 +090034
Bin Meng58f542d2014-12-17 15:50:40 +080035config TARGET_CROWNBAY
36 bool "Support Intel Crown Bay CRB"
37 help
38 This is the Intel Crown Bay Customer Reference Board. It contains
39 the Intel Atom Processor E6xx populated on the COM Express module
40 with 1GB DDR2 soldered down memory and a carrier board with the
41 Intel Platform Controller Hub EG20T, other system components and
42 peripheral connectors for PCIe/SATA/USB/LAN/SD/UART/Audio/LVDS.
43
Simon Glass3a1a18f2015-01-27 22:13:47 -070044config TARGET_MINNOWMAX
45 bool "Support Intel Minnowboard MAX"
46 help
47 This is the Intel Minnowboard MAX. It contains an Atom E3800
48 processor in a small form factor with Ethernet, micro-SD, USB 2,
49 USB 3, SATA, serial console, some GPIOs and HDMI 1.3 video out.
50 It requires some binary blobs - see README.x86 for details.
51
52 Note that PCIE_ECAM_BASE is set up by the FSP so the value used
53 by U-Boot matches that value.
54
Bin Mengef46bea2015-02-02 22:35:29 +080055config TARGET_GALILEO
56 bool "Support Intel Galileo"
57 help
58 This is the Intel Galileo board, which is the first in a family of
59 Arduino-certified development and prototyping boards based on Intel
60 architecture. It includes an Intel Quark SoC X1000 processor, a 32-bit
61 single-core, single-thread, Intel Pentium processor instrunction set
62 architecture (ISA) compatible, operating at speeds up to 400Mhz,
63 along with 256MB DDR3 memory. It supports a wide range of industry
64 standard I/O interfaces, including a full-sized mini-PCIe slot,
65 one 100Mb Ethernet port, a microSD card slot, a USB host port and
66 a USB client port.
67
Masahiro Yamadadd840582014-07-30 14:08:14 +090068endchoice
69
Simon Glass9a89d502015-02-05 21:41:41 -070070config DM
71 default y
72
73config DM_GPIO
74 default y
75
76config DM_SERIAL
77 default y
78
Simon Glassb724bd72015-02-11 16:32:59 -070079config SYS_MALLOC_F
80 default y
81
82config SYS_MALLOC_F_LEN
83 default 0x800
84
Simon Glass70a09c62014-11-12 22:42:10 -070085config RAMBASE
86 hex
87 default 0x100000
88
Simon Glass70a09c62014-11-12 22:42:10 -070089config XIP_ROM_SIZE
90 hex
Bin Meng7698d362015-01-06 22:14:16 +080091 depends on X86_RESET_VECTOR
Simon Glassbbd43d62015-01-01 16:17:54 -070092 default ROM_SIZE
Simon Glass70a09c62014-11-12 22:42:10 -070093
94config CPU_ADDR_BITS
95 int
96 default 36
97
Simon Glass65dd74a2014-11-12 22:42:28 -070098config HPET_ADDRESS
99 hex
100 default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
101
102config SMM_TSEG
103 bool
104 default n
105
106config SMM_TSEG_SIZE
107 hex
108
Bin Meng8cb20cc2015-01-06 22:14:15 +0800109config X86_RESET_VECTOR
110 bool
111 default n
112
113config SYS_X86_START16
114 hex
115 depends on X86_RESET_VECTOR
116 default 0xfffff800
117
Bin Meng64542f42014-12-12 21:05:19 +0800118config BOARD_ROMSIZE_KB_512
119 bool
120config BOARD_ROMSIZE_KB_1024
121 bool
122config BOARD_ROMSIZE_KB_2048
123 bool
124config BOARD_ROMSIZE_KB_4096
125 bool
126config BOARD_ROMSIZE_KB_8192
127 bool
128config BOARD_ROMSIZE_KB_16384
129 bool
130
131choice
132 prompt "ROM chip size"
Bin Meng7698d362015-01-06 22:14:16 +0800133 depends on X86_RESET_VECTOR
Bin Meng64542f42014-12-12 21:05:19 +0800134 default UBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
135 default UBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
136 default UBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
137 default UBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
138 default UBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
139 default UBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
140 help
141 Select the size of the ROM chip you intend to flash U-Boot on.
142
143 The build system will take care of creating a u-boot.rom file
144 of the matching size.
145
146config UBOOT_ROMSIZE_KB_512
147 bool "512 KB"
148 help
149 Choose this option if you have a 512 KB ROM chip.
150
151config UBOOT_ROMSIZE_KB_1024
152 bool "1024 KB (1 MB)"
153 help
154 Choose this option if you have a 1024 KB (1 MB) ROM chip.
155
156config UBOOT_ROMSIZE_KB_2048
157 bool "2048 KB (2 MB)"
158 help
159 Choose this option if you have a 2048 KB (2 MB) ROM chip.
160
161config UBOOT_ROMSIZE_KB_4096
162 bool "4096 KB (4 MB)"
163 help
164 Choose this option if you have a 4096 KB (4 MB) ROM chip.
165
166config UBOOT_ROMSIZE_KB_8192
167 bool "8192 KB (8 MB)"
168 help
169 Choose this option if you have a 8192 KB (8 MB) ROM chip.
170
171config UBOOT_ROMSIZE_KB_16384
172 bool "16384 KB (16 MB)"
173 help
174 Choose this option if you have a 16384 KB (16 MB) ROM chip.
175
176endchoice
177
178# Map the config names to an integer (KB).
179config UBOOT_ROMSIZE_KB
180 int
181 default 512 if UBOOT_ROMSIZE_KB_512
182 default 1024 if UBOOT_ROMSIZE_KB_1024
183 default 2048 if UBOOT_ROMSIZE_KB_2048
184 default 4096 if UBOOT_ROMSIZE_KB_4096
185 default 8192 if UBOOT_ROMSIZE_KB_8192
186 default 16384 if UBOOT_ROMSIZE_KB_16384
187
188# Map the config names to a hex value (bytes).
Simon Glassfce7b272014-11-12 22:42:08 -0700189config ROM_SIZE
190 hex
Bin Meng64542f42014-12-12 21:05:19 +0800191 default 0x80000 if UBOOT_ROMSIZE_KB_512
192 default 0x100000 if UBOOT_ROMSIZE_KB_1024
193 default 0x200000 if UBOOT_ROMSIZE_KB_2048
194 default 0x400000 if UBOOT_ROMSIZE_KB_4096
195 default 0x800000 if UBOOT_ROMSIZE_KB_8192
196 default 0xc00000 if UBOOT_ROMSIZE_KB_12288
197 default 0x1000000 if UBOOT_ROMSIZE_KB_16384
Simon Glassfce7b272014-11-12 22:42:08 -0700198
199config HAVE_INTEL_ME
200 bool "Platform requires Intel Management Engine"
201 help
202 Newer higher-end devices have an Intel Management Engine (ME)
203 which is a very large binary blob (typically 1.5MB) which is
204 required for the platform to work. This enforces a particular
205 SPI flash format. You will need to supply the me.bin file in
206 your board directory.
207
Simon Glass65dd74a2014-11-12 22:42:28 -0700208config X86_RAMTEST
209 bool "Perform a simple RAM test after SDRAM initialisation"
210 help
211 If there is something wrong with SDRAM then the platform will
212 often crash within U-Boot or the kernel. This option enables a
213 very simple RAM test that quickly checks whether the SDRAM seems
214 to work correctly. It is not exhaustive but can save time by
215 detecting obvious failures.
216
Simon Glass22465fc2014-11-14 20:56:30 -0700217config MARK_GRAPHICS_MEM_WRCOMB
218 bool "Mark graphics memory as write-combining."
219 default n
220 help
221 The graphics performance may increase if the graphics
222 memory is set as write-combining cache type. This option
223 enables marking the graphics memory as write-combining.
224
225menu "Display"
226
227config FRAMEBUFFER_SET_VESA_MODE
228 prompt "Set framebuffer graphics resolution"
229 bool
230 help
231 Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
232
233choice
234 prompt "framebuffer graphics resolution"
235 default FRAMEBUFFER_VESA_MODE_117
236 depends on FRAMEBUFFER_SET_VESA_MODE
237 help
238 This option sets the resolution used for the coreboot framebuffer (and
239 bootsplash screen).
240
241config FRAMEBUFFER_VESA_MODE_100
242 bool "640x400 256-color"
243
244config FRAMEBUFFER_VESA_MODE_101
245 bool "640x480 256-color"
246
247config FRAMEBUFFER_VESA_MODE_102
248 bool "800x600 16-color"
249
250config FRAMEBUFFER_VESA_MODE_103
251 bool "800x600 256-color"
252
253config FRAMEBUFFER_VESA_MODE_104
254 bool "1024x768 16-color"
255
256config FRAMEBUFFER_VESA_MODE_105
257 bool "1024x7686 256-color"
258
259config FRAMEBUFFER_VESA_MODE_106
260 bool "1280x1024 16-color"
261
262config FRAMEBUFFER_VESA_MODE_107
263 bool "1280x1024 256-color"
264
265config FRAMEBUFFER_VESA_MODE_108
266 bool "80x60 text"
267
268config FRAMEBUFFER_VESA_MODE_109
269 bool "132x25 text"
270
271config FRAMEBUFFER_VESA_MODE_10A
272 bool "132x43 text"
273
274config FRAMEBUFFER_VESA_MODE_10B
275 bool "132x50 text"
276
277config FRAMEBUFFER_VESA_MODE_10C
278 bool "132x60 text"
279
280config FRAMEBUFFER_VESA_MODE_10D
281 bool "320x200 32k-color (1:5:5:5)"
282
283config FRAMEBUFFER_VESA_MODE_10E
284 bool "320x200 64k-color (5:6:5)"
285
286config FRAMEBUFFER_VESA_MODE_10F
287 bool "320x200 16.8M-color (8:8:8)"
288
289config FRAMEBUFFER_VESA_MODE_110
290 bool "640x480 32k-color (1:5:5:5)"
291
292config FRAMEBUFFER_VESA_MODE_111
293 bool "640x480 64k-color (5:6:5)"
294
295config FRAMEBUFFER_VESA_MODE_112
296 bool "640x480 16.8M-color (8:8:8)"
297
298config FRAMEBUFFER_VESA_MODE_113
299 bool "800x600 32k-color (1:5:5:5)"
300
301config FRAMEBUFFER_VESA_MODE_114
302 bool "800x600 64k-color (5:6:5)"
303
304config FRAMEBUFFER_VESA_MODE_115
305 bool "800x600 16.8M-color (8:8:8)"
306
307config FRAMEBUFFER_VESA_MODE_116
308 bool "1024x768 32k-color (1:5:5:5)"
309
310config FRAMEBUFFER_VESA_MODE_117
311 bool "1024x768 64k-color (5:6:5)"
312
313config FRAMEBUFFER_VESA_MODE_118
314 bool "1024x768 16.8M-color (8:8:8)"
315
316config FRAMEBUFFER_VESA_MODE_119
317 bool "1280x1024 32k-color (1:5:5:5)"
318
319config FRAMEBUFFER_VESA_MODE_11A
320 bool "1280x1024 64k-color (5:6:5)"
321
322config FRAMEBUFFER_VESA_MODE_11B
323 bool "1280x1024 16.8M-color (8:8:8)"
324
325config FRAMEBUFFER_VESA_MODE_USER
326 bool "Manually select VESA mode"
327
328endchoice
329
330# Map the config names to an integer (KB).
331config FRAMEBUFFER_VESA_MODE
332 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
333 hex
334 default 0x100 if FRAMEBUFFER_VESA_MODE_100
335 default 0x101 if FRAMEBUFFER_VESA_MODE_101
336 default 0x102 if FRAMEBUFFER_VESA_MODE_102
337 default 0x103 if FRAMEBUFFER_VESA_MODE_103
338 default 0x104 if FRAMEBUFFER_VESA_MODE_104
339 default 0x105 if FRAMEBUFFER_VESA_MODE_105
340 default 0x106 if FRAMEBUFFER_VESA_MODE_106
341 default 0x107 if FRAMEBUFFER_VESA_MODE_107
342 default 0x108 if FRAMEBUFFER_VESA_MODE_108
343 default 0x109 if FRAMEBUFFER_VESA_MODE_109
344 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
345 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
346 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
347 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
348 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
349 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
350 default 0x110 if FRAMEBUFFER_VESA_MODE_110
351 default 0x111 if FRAMEBUFFER_VESA_MODE_111
352 default 0x112 if FRAMEBUFFER_VESA_MODE_112
353 default 0x113 if FRAMEBUFFER_VESA_MODE_113
354 default 0x114 if FRAMEBUFFER_VESA_MODE_114
355 default 0x115 if FRAMEBUFFER_VESA_MODE_115
356 default 0x116 if FRAMEBUFFER_VESA_MODE_116
357 default 0x117 if FRAMEBUFFER_VESA_MODE_117
358 default 0x118 if FRAMEBUFFER_VESA_MODE_118
359 default 0x119 if FRAMEBUFFER_VESA_MODE_119
360 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
361 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
362 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
363
364endmenu
365
Simon Glass8ce24cd2015-01-27 22:13:41 -0700366config HAVE_FSP
367 bool "Add an Firmware Support Package binary"
368 help
369 Select this option to add an Firmware Support Package binary to
370 the resulting U-Boot image. It is a binary blob which U-Boot uses
371 to set up SDRAM and other chipset specific initialization.
372
373 Note: Without this binary U-Boot will not be able to set up its
374 SDRAM so will not boot.
375
376config FSP_FILE
377 string "Firmware Support Package binary filename"
378 depends on HAVE_FSP
379 default "fsp.bin"
380 help
381 The filename of the file to use as Firmware Support Package binary
382 in the board directory.
383
384config FSP_ADDR
385 hex "Firmware Support Package binary location"
386 depends on HAVE_FSP
387 default 0xfffc0000
388 help
389 FSP is not Position Independent Code (PIC) and the whole FSP has to
390 be rebased if it is placed at a location which is different from the
391 perferred base address specified during the FSP build. Use Intel's
392 Binary Configuration Tool (BCT) to do the rebase.
393
394 The default base address of 0xfffc0000 indicates that the binary must
395 be located at offset 0xc0000 from the beginning of a 1MB flash device.
396
397config FSP_TEMP_RAM_ADDR
398 hex
399 default 0x2000000
400 help
401 Stack top address which is used in FspInit after DRAM is ready and
402 CAR is disabled.
403
Simon Glass3a1a18f2015-01-27 22:13:47 -0700404source "arch/x86/cpu/baytrail/Kconfig"
405
Bin Meng9d74f032015-01-06 22:14:18 +0800406source "arch/x86/cpu/coreboot/Kconfig"
407
Simon Glass8ef07572014-11-12 22:42:07 -0700408source "arch/x86/cpu/ivybridge/Kconfig"
409
Bin Mengef46bea2015-02-02 22:35:29 +0800410source "arch/x86/cpu/quark/Kconfig"
411
Bin Meng58f542d2014-12-17 15:50:40 +0800412source "arch/x86/cpu/queensbay/Kconfig"
413
Bin Mengf56aeaa2015-02-05 23:42:20 +0800414config TSC_CALIBRATION_BYPASS
415 bool "Bypass Time-Stamp Counter (TSC) calibration"
416 default n
417 help
418 By default U-Boot automatically calibrates Time-Stamp Counter (TSC)
419 running frequency via Model-Specific Register (MSR) and Programmable
420 Interval Timer (PIT). If the calibration does not work on your board,
421 select this option and provide a hardcoded TSC running frequency with
422 CONFIG_TSC_FREQ_IN_MHZ below.
423
424 Normally this option should be turned on in a simulation environment
425 like qemu.
426
427config TSC_FREQ_IN_MHZ
428 int "Time-Stamp Counter (TSC) running frequency in MHz"
429 depends on TSC_CALIBRATION_BYPASS
430 default 1000
431 help
432 The running frequency in MHz of Time-Stamp Counter (TSC).
433
Simon Glassfe5b9b42014-11-12 22:42:29 -0700434source "board/coreboot/coreboot/Kconfig"
Masahiro Yamadadd840582014-07-30 14:08:14 +0900435
Simon Glass8ef07572014-11-12 22:42:07 -0700436source "board/google/chromebook_link/Kconfig"
437
Bin Meng58f542d2014-12-17 15:50:40 +0800438source "board/intel/crownbay/Kconfig"
439
Simon Glass3a1a18f2015-01-27 22:13:47 -0700440source "board/intel/minnowmax/Kconfig"
441
Bin Mengef46bea2015-02-02 22:35:29 +0800442source "board/intel/galileo/Kconfig"
443
Simon Glass2d934e52015-01-27 22:13:33 -0700444config PCIE_ECAM_BASE
445 hex
Bin Mengba877ef2015-02-02 21:25:09 +0800446 default 0xe0000000
Simon Glass2d934e52015-01-27 22:13:33 -0700447 help
448 This is the memory-mapped address of PCI configuration space, which
449 is only available through the Enhanced Configuration Access
450 Mechanism (ECAM) with PCI Express. It can be set up almost
451 anywhere. Before it is set up, it is possible to access PCI
452 configuration space through I/O access, but memory access is more
453 convenient. Using this, PCI can be scanned and configured. This
454 should be set to a region that does not conflict with memory
455 assigned to PCI devices - i.e. the memory and prefetch regions, as
456 passed to pci_set_region().
457
Masahiro Yamadadd840582014-07-30 14:08:14 +0900458endmenu