x86: Add support for Intel Minnowboard Max
[platform/kernel/u-boot.git] / arch / x86 / Kconfig
1 menu "x86 architecture"
2         depends on X86
3
4 config SYS_ARCH
5         default "x86"
6
7 config USE_PRIVATE_LIBGCC
8         default y
9
10 choice
11         prompt "Target select"
12
13 config TARGET_COREBOOT
14         bool "Support coreboot"
15         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
23 config 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.
34
35 config 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
44 config 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
55 endchoice
56
57 config RAMBASE
58         hex
59         default 0x100000
60
61 config XIP_ROM_SIZE
62         hex
63         depends on X86_RESET_VECTOR
64         default ROM_SIZE
65
66 config CPU_ADDR_BITS
67         int
68         default 36
69
70 config HPET_ADDRESS
71         hex
72         default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
73
74 config SMM_TSEG
75         bool
76         default n
77
78 config SMM_TSEG_SIZE
79         hex
80
81 config X86_RESET_VECTOR
82         bool
83         default n
84
85 config SYS_X86_START16
86         hex
87         depends on X86_RESET_VECTOR
88         default 0xfffff800
89
90 config BOARD_ROMSIZE_KB_512
91         bool
92 config BOARD_ROMSIZE_KB_1024
93         bool
94 config BOARD_ROMSIZE_KB_2048
95         bool
96 config BOARD_ROMSIZE_KB_4096
97         bool
98 config BOARD_ROMSIZE_KB_8192
99         bool
100 config BOARD_ROMSIZE_KB_16384
101         bool
102
103 choice
104         prompt "ROM chip size"
105         depends on X86_RESET_VECTOR
106         default UBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
107         default UBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
108         default UBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
109         default UBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
110         default UBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
111         default UBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
112         help
113           Select the size of the ROM chip you intend to flash U-Boot on.
114
115           The build system will take care of creating a u-boot.rom file
116           of the matching size.
117
118 config UBOOT_ROMSIZE_KB_512
119         bool "512 KB"
120         help
121           Choose this option if you have a 512 KB ROM chip.
122
123 config UBOOT_ROMSIZE_KB_1024
124         bool "1024 KB (1 MB)"
125         help
126           Choose this option if you have a 1024 KB (1 MB) ROM chip.
127
128 config UBOOT_ROMSIZE_KB_2048
129         bool "2048 KB (2 MB)"
130         help
131           Choose this option if you have a 2048 KB (2 MB) ROM chip.
132
133 config UBOOT_ROMSIZE_KB_4096
134         bool "4096 KB (4 MB)"
135         help
136           Choose this option if you have a 4096 KB (4 MB) ROM chip.
137
138 config UBOOT_ROMSIZE_KB_8192
139         bool "8192 KB (8 MB)"
140         help
141           Choose this option if you have a 8192 KB (8 MB) ROM chip.
142
143 config UBOOT_ROMSIZE_KB_16384
144         bool "16384 KB (16 MB)"
145         help
146           Choose this option if you have a 16384 KB (16 MB) ROM chip.
147
148 endchoice
149
150 # Map the config names to an integer (KB).
151 config UBOOT_ROMSIZE_KB
152         int
153         default 512 if UBOOT_ROMSIZE_KB_512
154         default 1024 if UBOOT_ROMSIZE_KB_1024
155         default 2048 if UBOOT_ROMSIZE_KB_2048
156         default 4096 if UBOOT_ROMSIZE_KB_4096
157         default 8192 if UBOOT_ROMSIZE_KB_8192
158         default 16384 if UBOOT_ROMSIZE_KB_16384
159
160 # Map the config names to a hex value (bytes).
161 config ROM_SIZE
162         hex
163         default 0x80000 if UBOOT_ROMSIZE_KB_512
164         default 0x100000 if UBOOT_ROMSIZE_KB_1024
165         default 0x200000 if UBOOT_ROMSIZE_KB_2048
166         default 0x400000 if UBOOT_ROMSIZE_KB_4096
167         default 0x800000 if UBOOT_ROMSIZE_KB_8192
168         default 0xc00000 if UBOOT_ROMSIZE_KB_12288
169         default 0x1000000 if UBOOT_ROMSIZE_KB_16384
170
171 config HAVE_INTEL_ME
172         bool "Platform requires Intel Management Engine"
173         help
174           Newer higher-end devices have an Intel Management Engine (ME)
175           which is a very large binary blob (typically 1.5MB) which is
176           required for the platform to work. This enforces a particular
177           SPI flash format. You will need to supply the me.bin file in
178           your board directory.
179
180 config X86_RAMTEST
181         bool "Perform a simple RAM test after SDRAM initialisation"
182         help
183           If there is something wrong with SDRAM then the platform will
184           often crash within U-Boot or the kernel. This option enables a
185           very simple RAM test that quickly checks whether the SDRAM seems
186           to work correctly. It is not exhaustive but can save time by
187           detecting obvious failures.
188
189 config MARK_GRAPHICS_MEM_WRCOMB
190         bool "Mark graphics memory as write-combining."
191         default n
192         help
193          The graphics performance may increase if the graphics
194          memory is set as write-combining cache type. This option
195          enables marking the graphics memory as write-combining.
196
197 menu "Display"
198
199 config FRAMEBUFFER_SET_VESA_MODE
200         prompt "Set framebuffer graphics resolution"
201         bool
202         help
203           Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
204
205 choice
206         prompt "framebuffer graphics resolution"
207         default FRAMEBUFFER_VESA_MODE_117
208         depends on FRAMEBUFFER_SET_VESA_MODE
209         help
210           This option sets the resolution used for the coreboot framebuffer (and
211           bootsplash screen).
212
213 config FRAMEBUFFER_VESA_MODE_100
214         bool "640x400 256-color"
215
216 config FRAMEBUFFER_VESA_MODE_101
217         bool "640x480 256-color"
218
219 config FRAMEBUFFER_VESA_MODE_102
220         bool "800x600 16-color"
221
222 config FRAMEBUFFER_VESA_MODE_103
223         bool "800x600 256-color"
224
225 config FRAMEBUFFER_VESA_MODE_104
226         bool "1024x768 16-color"
227
228 config FRAMEBUFFER_VESA_MODE_105
229         bool "1024x7686 256-color"
230
231 config FRAMEBUFFER_VESA_MODE_106
232         bool "1280x1024 16-color"
233
234 config FRAMEBUFFER_VESA_MODE_107
235         bool "1280x1024 256-color"
236
237 config FRAMEBUFFER_VESA_MODE_108
238         bool "80x60 text"
239
240 config FRAMEBUFFER_VESA_MODE_109
241         bool "132x25 text"
242
243 config FRAMEBUFFER_VESA_MODE_10A
244         bool "132x43 text"
245
246 config FRAMEBUFFER_VESA_MODE_10B
247         bool "132x50 text"
248
249 config FRAMEBUFFER_VESA_MODE_10C
250         bool "132x60 text"
251
252 config FRAMEBUFFER_VESA_MODE_10D
253         bool "320x200 32k-color (1:5:5:5)"
254
255 config FRAMEBUFFER_VESA_MODE_10E
256         bool "320x200 64k-color (5:6:5)"
257
258 config FRAMEBUFFER_VESA_MODE_10F
259         bool "320x200 16.8M-color (8:8:8)"
260
261 config FRAMEBUFFER_VESA_MODE_110
262         bool "640x480 32k-color (1:5:5:5)"
263
264 config FRAMEBUFFER_VESA_MODE_111
265         bool "640x480 64k-color (5:6:5)"
266
267 config FRAMEBUFFER_VESA_MODE_112
268         bool "640x480 16.8M-color (8:8:8)"
269
270 config FRAMEBUFFER_VESA_MODE_113
271         bool "800x600 32k-color (1:5:5:5)"
272
273 config FRAMEBUFFER_VESA_MODE_114
274         bool "800x600 64k-color (5:6:5)"
275
276 config FRAMEBUFFER_VESA_MODE_115
277         bool "800x600 16.8M-color (8:8:8)"
278
279 config FRAMEBUFFER_VESA_MODE_116
280         bool "1024x768 32k-color (1:5:5:5)"
281
282 config FRAMEBUFFER_VESA_MODE_117
283         bool "1024x768 64k-color (5:6:5)"
284
285 config FRAMEBUFFER_VESA_MODE_118
286         bool "1024x768 16.8M-color (8:8:8)"
287
288 config FRAMEBUFFER_VESA_MODE_119
289         bool "1280x1024 32k-color (1:5:5:5)"
290
291 config FRAMEBUFFER_VESA_MODE_11A
292         bool "1280x1024 64k-color (5:6:5)"
293
294 config FRAMEBUFFER_VESA_MODE_11B
295         bool "1280x1024 16.8M-color (8:8:8)"
296
297 config FRAMEBUFFER_VESA_MODE_USER
298         bool "Manually select VESA mode"
299
300 endchoice
301
302 # Map the config names to an integer (KB).
303 config FRAMEBUFFER_VESA_MODE
304         prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
305         hex
306         default 0x100 if FRAMEBUFFER_VESA_MODE_100
307         default 0x101 if FRAMEBUFFER_VESA_MODE_101
308         default 0x102 if FRAMEBUFFER_VESA_MODE_102
309         default 0x103 if FRAMEBUFFER_VESA_MODE_103
310         default 0x104 if FRAMEBUFFER_VESA_MODE_104
311         default 0x105 if FRAMEBUFFER_VESA_MODE_105
312         default 0x106 if FRAMEBUFFER_VESA_MODE_106
313         default 0x107 if FRAMEBUFFER_VESA_MODE_107
314         default 0x108 if FRAMEBUFFER_VESA_MODE_108
315         default 0x109 if FRAMEBUFFER_VESA_MODE_109
316         default 0x10A if FRAMEBUFFER_VESA_MODE_10A
317         default 0x10B if FRAMEBUFFER_VESA_MODE_10B
318         default 0x10C if FRAMEBUFFER_VESA_MODE_10C
319         default 0x10D if FRAMEBUFFER_VESA_MODE_10D
320         default 0x10E if FRAMEBUFFER_VESA_MODE_10E
321         default 0x10F if FRAMEBUFFER_VESA_MODE_10F
322         default 0x110 if FRAMEBUFFER_VESA_MODE_110
323         default 0x111 if FRAMEBUFFER_VESA_MODE_111
324         default 0x112 if FRAMEBUFFER_VESA_MODE_112
325         default 0x113 if FRAMEBUFFER_VESA_MODE_113
326         default 0x114 if FRAMEBUFFER_VESA_MODE_114
327         default 0x115 if FRAMEBUFFER_VESA_MODE_115
328         default 0x116 if FRAMEBUFFER_VESA_MODE_116
329         default 0x117 if FRAMEBUFFER_VESA_MODE_117
330         default 0x118 if FRAMEBUFFER_VESA_MODE_118
331         default 0x119 if FRAMEBUFFER_VESA_MODE_119
332         default 0x11A if FRAMEBUFFER_VESA_MODE_11A
333         default 0x11B if FRAMEBUFFER_VESA_MODE_11B
334         default 0x117 if FRAMEBUFFER_VESA_MODE_USER
335
336 endmenu
337
338 config TSC_CALIBRATION_BYPASS
339         bool "Bypass Time-Stamp Counter (TSC) calibration"
340         default n
341         help
342           By default U-Boot automatically calibrates Time-Stamp Counter (TSC)
343           running frequency via Model-Specific Register (MSR) and Programmable
344           Interval Timer (PIT). If the calibration does not work on your board,
345           select this option and provide a hardcoded TSC running frequency with
346           CONFIG_TSC_FREQ_IN_MHZ below.
347
348           Normally this option should be turned on in a simulation environment
349           like qemu.
350
351 config TSC_FREQ_IN_MHZ
352         int "Time-Stamp Counter (TSC) running frequency in MHz"
353         depends on TSC_CALIBRATION_BYPASS
354         default 1000
355         help
356           The running frequency in MHz of Time-Stamp Counter (TSC).
357
358 config HAVE_FSP
359         bool "Add an Firmware Support Package binary"
360         help
361           Select this option to add an Firmware Support Package binary to
362           the resulting U-Boot image. It is a binary blob which U-Boot uses
363           to set up SDRAM and other chipset specific initialization.
364
365           Note: Without this binary U-Boot will not be able to set up its
366           SDRAM so will not boot.
367
368 config FSP_FILE
369         string "Firmware Support Package binary filename"
370         depends on HAVE_FSP
371         default "fsp.bin"
372         help
373           The filename of the file to use as Firmware Support Package binary
374           in the board directory.
375
376 config FSP_ADDR
377         hex "Firmware Support Package binary location"
378         depends on HAVE_FSP
379         default 0xfffc0000
380         help
381           FSP is not Position Independent Code (PIC) and the whole FSP has to
382           be rebased if it is placed at a location which is different from the
383           perferred base address specified during the FSP build. Use Intel's
384           Binary Configuration Tool (BCT) to do the rebase.
385
386           The default base address of 0xfffc0000 indicates that the binary must
387           be located at offset 0xc0000 from the beginning of a 1MB flash device.
388
389 config FSP_TEMP_RAM_ADDR
390         hex
391         default 0x2000000
392         help
393           Stack top address which is used in FspInit after DRAM is ready and
394           CAR is disabled.
395
396 source "arch/x86/cpu/baytrail/Kconfig"
397
398 source "arch/x86/cpu/coreboot/Kconfig"
399
400 source "arch/x86/cpu/ivybridge/Kconfig"
401
402 source "arch/x86/cpu/queensbay/Kconfig"
403
404 source "board/coreboot/coreboot/Kconfig"
405
406 source "board/google/chromebook_link/Kconfig"
407
408 source "board/intel/crownbay/Kconfig"
409
410 source "board/intel/minnowmax/Kconfig"
411
412 config PCIE_ECAM_BASE
413         hex
414     default 0xe0000000
415         help
416           This is the memory-mapped address of PCI configuration space, which
417           is only available through the Enhanced Configuration Access
418           Mechanism (ECAM) with PCI Express. It can be set up almost
419           anywhere. Before it is set up, it is possible to access PCI
420           configuration space through I/O access, but memory access is more
421           convenient. Using this, PCI can be scanned and configured. This
422           should be set to a region that does not conflict with memory
423           assigned to PCI devices - i.e. the memory and prefetch regions, as
424           passed to pci_set_region().
425
426 endmenu