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