blob: 4036a3d4a6cef9dda7c89c48402d852df889c88d [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001##
2## This file is part of the coreboot project.
3##
Stefan Reinauerd650e992010-02-22 04:33:13 +00004## Copyright (C) 2007-2010 coresystems GmbH
Patrick Georgi0588d192009-08-12 15:00:51 +00005## (Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH)
6##
7## This program is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00009## the Free Software Foundation; version 2 of the License.
Patrick Georgi0588d192009-08-12 15:00:51 +000010##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
Patrick Georgi0588d192009-08-12 15:00:51 +000016
Stefan Reinauer95a63962012-11-13 17:00:01 -080017menu "Devices"
Ronald G. Minnich69efaa02013-02-26 10:07:40 -080018
19# Only set this in the mainboard
20config MAINBOARD_HAS_NATIVE_VGA_INIT
21 bool
22 default n
23
Timothy Pearsonc522fc82015-02-02 18:25:34 -060024# FIXME Ugly hack to allow Z9s driver native framebuffer configuration
25config NATIVE_VGA_INIT_USE_EDID
26 bool
Nico Huber542e9482016-10-05 17:47:32 +020027 default n if DRIVERS_XGI_Z9S || MAINBOARD_USE_LIBGFXINIT
Timothy Pearsonc522fc82015-02-02 18:25:34 -060028 default y if !DRIVERS_XGI_Z9S
29
Vladimir Serbinenko160e9a02014-02-22 10:34:47 +010030config MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG
31 bool
32 default n
33
Ronald G. Minnich69efaa02013-02-26 10:07:40 -080034config MAINBOARD_DO_NATIVE_VGA_INIT
35 bool "Use native graphics initialization"
36 depends on MAINBOARD_HAS_NATIVE_VGA_INIT
37 default n
38 help
39 Some mainboards, such as the Google Link, allow initializing the display
40 without the need of a binary only VGA OPROM. Enabling this option may be
Paul Menzelfd3451d2014-01-03 09:45:57 +010041 faster, but also lacks flexibility in setting modes.
Ronald G. Minnich69efaa02013-02-26 10:07:40 -080042
43 If unsure, say N.
44
Nico Huber542e9482016-10-05 17:47:32 +020045config MAINBOARD_HAS_LIBGFXINIT
46 def_bool n
47 select MAINBOARD_HAS_NATIVE_VGA_INIT
48 help
49 Selected by mainboards that implement support for `libgfxinit`.
50 Usually this requires a list of ports to be probed for displays.
51
52config MAINBOARD_USE_LIBGFXINIT
53 bool "Use libgfxinit for native graphics initialization"
54 depends on MAINBOARD_DO_NATIVE_VGA_INIT
55 depends on MAINBOARD_HAS_LIBGFXINIT
Nico Huber66203df2016-11-07 17:24:47 +010056 select MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG
Nico Huber542e9482016-10-05 17:47:32 +020057 select RAMSTAGE_LIBHWBASE
58 default n
59 help
60 Use the SPARK library `libgfxinit` for the native graphics
61 initialization. This requires an Ada toolchain.
62
Uwe Hermann168b11b2009-10-07 16:15:40 +000063# TODO: Explain differences (if any) for onboard cards.
Patrick Georgi0588d192009-08-12 15:00:51 +000064config VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -070065 bool "Run VGA Option ROMs"
Peter Stugebe0ede42012-10-27 14:17:04 +020066 default n if PAYLOAD_SEABIOS
67 default y if !PAYLOAD_SEABIOS
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -040068 depends on PCI && !MAINBOARD_DO_NATIVE_VGA_INIT
Patrick Georgi0588d192009-08-12 15:00:51 +000069 help
Peter Stugeb6fa47c2012-10-27 13:45:51 +020070 Execute VGA Option ROMs in coreboot if found. This is required
71 to enable PCI/AGP/PCI-E video cards when not using a SeaBIOS
72 payload.
73
74 When using a SeaBIOS payload it runs all option ROMs with much
75 more complete BIOS interrupt services available than coreboot,
76 which some option ROMs require in order to function correctly.
77
78 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Myles Watsone6804952009-08-28 14:36:12 +000079
Stefan Reinauer0a500842011-09-23 10:33:58 -070080config S3_VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -070081 bool "Re-run VGA Option ROMs on S3 resume"
Stefan Reinauer0a500842011-09-23 10:33:58 -070082 default y
83 depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
84 help
Peter Stugeb6fa47c2012-10-27 13:45:51 +020085 Execute VGA Option ROMs in coreboot when resuming from S3 suspend.
86
87 When using a SeaBIOS payload it runs all option ROMs with much
88 more complete BIOS interrupt services available than coreboot,
89 which some option ROMs require in order to function correctly.
90
91 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauer0a500842011-09-23 10:33:58 -070092
Kyösti Mälkki580e5642014-05-01 16:31:34 +030093config ALWAYS_LOAD_OPROM
94 def_bool n
95 depends on VGA_ROM_RUN
96 help
Daniele Forsi53847a22014-07-22 18:00:56 +020097 Always load option ROMs if any are found. The decision to run
98 the ROM is still determined at runtime, but the distinction
Kyösti Mälkki580e5642014-05-01 16:31:34 +030099 between loading and not running comes into play for CHROMEOS.
100
Daniele Forsi53847a22014-07-22 18:00:56 +0200101 An example where this is required is that VBT (Video BIOS Tables)
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300102 are needed for the kernel's display driver to know how a piece of
103 hardware is configured to be used.
104
Patrick Rudolph647e34d2016-02-11 08:36:50 +0100105config ON_DEVICE_ROM_LOAD
106 bool "Load Option ROMs on PCI devices"
Peter Stugebe0ede42012-10-27 14:17:04 +0200107 default n if PAYLOAD_SEABIOS
108 default y if !PAYLOAD_SEABIOS
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -0400109 depends on PCI
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700110 help
Patrick Rudolph647e34d2016-02-11 08:36:50 +0100111 Load Option ROMs stored on PCI/PCIe/AGP devices in coreboot.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700112
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200113 If disabled, only Option ROMs stored in CBFS will be executed by
114 coreboot. If you are concerned about security, you might want to
115 disable this option, but it might leave your system in a state of
116 degraded functionality.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700117
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200118 When using a SeaBIOS payload it runs all option ROMs with much
119 more complete BIOS interrupt services available than coreboot,
120 which some option ROMs require in order to function correctly.
121
122 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700123
Patrick Georgi0588d192009-08-12 15:00:51 +0000124choice
Uwe Hermann168b11b2009-10-07 16:15:40 +0000125 prompt "Option ROM execution type"
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000126 default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
127 default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
Vladimir Serbinenkob32816e2013-12-20 17:47:19 +0100128 depends on VGA_ROM_RUN || GEODE_VSA
Uwe Hermann168b11b2009-10-07 16:15:40 +0000129
130config PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauerd650e992010-02-22 04:33:13 +0000131 prompt "Native mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000132 bool
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000133 depends on ARCH_X86
Myles Watson28412f52009-09-17 16:54:46 +0000134 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700135 If you select this option, PCI Option ROMs will be executed
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000136 natively on the CPU in real mode. No CPU emulation is involved,
137 so this is the fastest, but also the least secure option.
138 (only works on x86/x64 systems)
Patrick Georgi0588d192009-08-12 15:00:51 +0000139
Stefan Reinauerd650e992010-02-22 04:33:13 +0000140config PCI_OPTION_ROM_RUN_YABEL
Uwe Hermann548dbe72010-02-22 16:41:49 +0000141 prompt "Secure mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000142 bool
Myles Watsone3df1212010-06-04 15:55:12 +0000143 depends on !GEODE_VSA
Uwe Hermann168b11b2009-10-07 16:15:40 +0000144 help
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000145 If you select this option, the x86emu CPU emulator will be used to
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700146 execute PCI Option ROMs.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000147
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700148 This option prevents Option ROMs from doing dirty tricks with the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000149 system (such as installing SMM modules or hypervisors), but it is
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700150 also significantly slower than the native Option ROM initialization
Uwe Hermann548dbe72010-02-22 16:41:49 +0000151 method.
152
Stefan Reinauerd650e992010-02-22 04:33:13 +0000153 This is the default choice for non-x86 systems.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000154
Patrick Georgi0588d192009-08-12 15:00:51 +0000155endchoice
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000156
Stefan Reinauer9a358532010-02-12 09:32:17 +0000157config YABEL_PCI_ACCESS_OTHER_DEVICES
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700158 prompt "Allow Option ROMs to access other devices"
Stefan Reinauer9a358532010-02-12 09:32:17 +0000159 bool
160 depends on PCI_OPTION_ROM_RUN_YABEL
161 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700162 Per default, YABEL only allows Option ROMs to access the PCI device
Stefan Reinauer9a358532010-02-12 09:32:17 +0000163 that they are associated with. However, this causes trouble for some
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700164 onboard graphics chips whose Option ROM needs to reconfigure the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000165 north bridge.
Stefan Reinauer9a358532010-02-12 09:32:17 +0000166
Patrick Georgic4b2a1b2012-07-20 13:44:50 +0200167config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG
168 prompt "Fake success on writing other device's config space"
169 bool
170 depends on YABEL_PCI_ACCESS_OTHER_DEVICES
171 help
172 By default, YABEL aborts when the Option ROM tries to write to other
173 devices' config spaces. With this option enabled, the write doesn't
174 follow through, but the Option ROM is allowed to go on.
175 This can create issues such as hanging Option ROMs (if it depends on
176 that other register changing to the written value), so test for
177 impact before using this option.
178
Stefan Reinauer9a358532010-02-12 09:32:17 +0000179config YABEL_VIRTMEM_LOCATION
180 prompt "Location of YABEL's virtual memory"
181 hex
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -0400182 depends on PCI_OPTION_ROM_RUN_YABEL
Stefan Reinauer9a358532010-02-12 09:32:17 +0000183 default 0x1000000
184 help
185 YABEL requires 1MB memory for its CPU emulation. This memory is
186 normally located at 16MB.
187
Stefan Reinauerd650e992010-02-22 04:33:13 +0000188config YABEL_DIRECTHW
Uwe Hermann548dbe72010-02-22 16:41:49 +0000189 prompt "Direct hardware access"
Stefan Reinauerd650e992010-02-22 04:33:13 +0000190 bool
Stefan Reinauer91f14232012-12-07 16:55:12 -0800191 depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86
Myles Watsone6804952009-08-28 14:36:12 +0000192 help
Stefan Reinauerd650e992010-02-22 04:33:13 +0000193 YABEL consists of two parts: It uses x86emu for the CPU emulation and
Uwe Hermann548dbe72010-02-22 16:41:49 +0000194 additionally provides a PC system emulation that filters bad device
195 and memory access (such as PCI config space access to other devices
196 than the initialized one).
197
Stefan Reinauerd650e992010-02-22 04:33:13 +0000198 When choosing this option, x86emu will pass through all hardware
Uwe Hermann548dbe72010-02-22 16:41:49 +0000199 accesses to memory and I/O devices to the underlying memory and I/O
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700200 addresses. While this option prevents Option ROMs from doing dirty
Stefan Reinauerd650e992010-02-22 04:33:13 +0000201 tricks with the CPU (such as installing SMM modules or hypervisors),
202 they can still access all devices in the system.
203 Enable this option for a good compromise between security and speed.
204
Stefan Reinauerabc0c852010-11-22 08:09:50 +0000205config MULTIPLE_VGA_ADAPTERS
Myles Watson28412f52009-09-17 16:54:46 +0000206 bool
207 default n
208
Timothy Pearsonacbdade2015-10-17 04:36:47 -0500209config SMBUS_HAS_AUX_CHANNELS
210 bool
211 default n
212
Ronald G. Minnich78a16672012-11-29 16:28:21 -0800213config PCI
214 bool
215 default n
216
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200217if PCI
218
219config NO_MMCONF_SUPPORT
220 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200221 default n
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200222
223config MMCONF_SUPPORT
224 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200225 default !NO_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200226
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000227config HYPERTRANSPORT_PLUGIN_SUPPORT
228 bool
Myles Watson74fb8f22009-09-24 15:09:11 +0000229 default n
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000230
231config PCIX_PLUGIN_SUPPORT
232 bool
Myles Watsoned035562009-09-22 21:29:32 +0000233 default y
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000234
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000235config CARDBUS_PLUGIN_SUPPORT
236 bool
Myles Watsoned035562009-09-22 21:29:32 +0000237 default y
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700238
Andrew Wub7bb70d2013-08-12 20:07:47 +0800239config AZALIA_PLUGIN_SUPPORT
240 bool
Andrew Wub7bb70d2013-08-12 20:07:47 +0800241 default n
242
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200243config PCIEXP_PLUGIN_SUPPORT
244 bool
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200245 default y
246
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200247endif # PCI
248
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200249if PCIEXP_PLUGIN_SUPPORT
250
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700251config PCIEXP_COMMON_CLOCK
252 prompt "Enable PCIe Common Clock"
253 bool
254 default n
255 help
256 Detect and enable Common Clock on PCIe links.
257
258config PCIEXP_ASPM
259 prompt "Enable PCIe ASPM"
260 bool
261 default n
262 help
Jonathan Neuschäfer8c50e682016-12-27 16:31:28 +0100263 Detect and enable ASPM (Active State Power Management) on PCIe links.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800264
Kane Chen18cb1342014-10-01 11:13:54 +0800265config PCIEXP_CLK_PM
266 prompt "Enable PCIe Clock Power Management"
267 bool
Kane Chen18cb1342014-10-01 11:13:54 +0800268 default n
269 help
270 Detect and enable Clock Power Management on PCIe.
271
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200272config PCIEXP_L1_SUB_STATE
273 prompt "Enable PCIe ASPM L1 SubState"
274 bool
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200275 depends on (MMCONF_SUPPORT || PCI_IO_CFG_EXT)
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200276 default n
277 help
278 Detect and enable ASPM on PCIe links.
279
280endif # PCIEXP_PLUGIN_SUPPORT
281
Kyösti Mälkki4c686f22014-02-14 12:45:09 +0200282config EARLY_PCI_BRIDGE
283 bool "Early PCI bridge"
284 depends on PCI
285 default n
286 help
287 While coreboot is executing code from ROM, the coreboot resource
288 allocator has not been running yet. Hence PCI devices living behind
289 a bridge are not yet visible to the system.
290
291 This option enables static configuration for a single pre-defined
292 PCI bridge function on bus 0.
293
294if EARLY_PCI_BRIDGE
295
296config EARLY_PCI_BRIDGE_DEVICE
297 hex "bridge device"
298 default 0x0
299
300config EARLY_PCI_BRIDGE_FUNCTION
301 hex "bridge function"
302 default 0x0
303
304config EARLY_PCI_MMIO_BASE
305 hex "MMIO window base"
306 default 0x0
307
308endif # EARLY_PCI_BRIDGE
309
Stefan Reinauer58470e32014-10-17 13:08:36 +0200310config SUBSYSTEM_VENDOR_ID
311 hex "Override PCI Subsystem Vendor ID"
312 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600313 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200314 help
315 This config option will override the devicetree settings for
316 PCI Subsystem Vendor ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800317
Stefan Reinauer58470e32014-10-17 13:08:36 +0200318config SUBSYSTEM_DEVICE_ID
319 hex "Override PCI Subsystem Device ID"
320 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600321 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200322 help
323 This config option will override the devicetree settings for
324 PCI Subsystem Device ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800325
326config VGA_BIOS
327 bool "Add a VGA BIOS image"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100328 depends on ARCH_X86
Stefan Reinauer95a63962012-11-13 17:00:01 -0800329 help
330 Select this option if you have a VGA BIOS image that you would
331 like to add to your ROM.
332
333 You will be able to specify the location and file name of the
334 image later.
335
336config VGA_BIOS_FILE
337 string "VGA BIOS path and filename"
338 depends on VGA_BIOS
339 default "vgabios.bin"
340 help
341 The path and filename of the file to use as VGA BIOS.
342
343config VGA_BIOS_ID
344 string "VGA device PCI IDs"
345 depends on VGA_BIOS
346 default "1106,3230"
347 help
348 The comma-separated PCI vendor and device ID that would associate
349 your VGA BIOS to your video card.
350
351 Example: 1106,3230
352
353 In the above example 1106 is the PCI vendor ID (in hex, but without
354 the "0x" prefix) and 3230 specifies the PCI device ID of the
355 video card (also in hex, without "0x" prefix).
356
Daniele Forsif2fb7d92014-07-17 11:59:41 +0200357 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
358
Stefan Reinauer95a63962012-11-13 17:00:01 -0800359config INTEL_MBI
360 bool "Add an MBI image"
361 depends on NORTHBRIDGE_INTEL_I82830
362 help
363 Select this option if you have an Intel MBI image that you would
364 like to add to your ROM.
365
366 You will be able to specify the location and file name of the
367 image later.
368
369config MBI_FILE
370 string "Intel MBI path and filename"
371 depends on INTEL_MBI
372 default "mbi.bin"
373 help
374 The path and filename of the file to use as VGA BIOS.
375
Julius Werner37d7ac82014-05-05 18:03:46 -0700376config SOFTWARE_I2C
377 bool "Enable I2C controller emulation in software"
378 default n
379 help
380 This config option will enable code to override the i2c_transfer
381 routine with a (simple) software emulation of the protocol. This may
382 be useful for debugging or on platforms where a driver for the real
383 I2C controller is not (yet) available. The platform code needs to
384 provide bindings to manually toggle I2C lines.
Kyösti Mälkkia91e1e62014-12-31 10:36:08 +0200385
Stefan Reinauer95a63962012-11-13 17:00:01 -0800386endmenu
387
388menu "Display"
Ronald G. Minnich69efaa02013-02-26 10:07:40 -0800389 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE || MAINBOARD_DO_NATIVE_VGA_INIT
Stefan Reinauer95a63962012-11-13 17:00:01 -0800390
391config FRAMEBUFFER_SET_VESA_MODE
Ronald G. Minnich69efaa02013-02-26 10:07:40 -0800392 prompt "Set framebuffer graphics resolution"
Stefan Reinauer95a63962012-11-13 17:00:01 -0800393 bool
394 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
395 help
Ronald G. Minnich69efaa02013-02-26 10:07:40 -0800396 Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
Stefan Reinauer95a63962012-11-13 17:00:01 -0800397
398choice
Ronald G. Minnich69efaa02013-02-26 10:07:40 -0800399 prompt "framebuffer graphics resolution"
Stefan Reinauer95a63962012-11-13 17:00:01 -0800400 default FRAMEBUFFER_VESA_MODE_117
Vladimir Serbinenkofb6d25f2014-02-21 08:38:27 +0100401 depends on FRAMEBUFFER_SET_VESA_MODE
Stefan Reinauer95a63962012-11-13 17:00:01 -0800402 help
403 This option sets the resolution used for the coreboot framebuffer (and
404 bootsplash screen).
405
406config FRAMEBUFFER_VESA_MODE_100
407 bool "640x400 256-color"
408
409config FRAMEBUFFER_VESA_MODE_101
410 bool "640x480 256-color"
411
412config FRAMEBUFFER_VESA_MODE_102
413 bool "800x600 16-color"
414
415config FRAMEBUFFER_VESA_MODE_103
416 bool "800x600 256-color"
417
418config FRAMEBUFFER_VESA_MODE_104
419 bool "1024x768 16-color"
420
421config FRAMEBUFFER_VESA_MODE_105
Daniele Forsied3d0e82014-07-19 15:40:40 +0200422 bool "1024x768 256-color"
Stefan Reinauer95a63962012-11-13 17:00:01 -0800423
424config FRAMEBUFFER_VESA_MODE_106
425 bool "1280x1024 16-color"
426
427config FRAMEBUFFER_VESA_MODE_107
428 bool "1280x1024 256-color"
429
430config FRAMEBUFFER_VESA_MODE_108
431 bool "80x60 text"
432
433config FRAMEBUFFER_VESA_MODE_109
434 bool "132x25 text"
435
436config FRAMEBUFFER_VESA_MODE_10A
437 bool "132x43 text"
438
439config FRAMEBUFFER_VESA_MODE_10B
440 bool "132x50 text"
441
442config FRAMEBUFFER_VESA_MODE_10C
443 bool "132x60 text"
444
445config FRAMEBUFFER_VESA_MODE_10D
446 bool "320x200 32k-color (1:5:5:5)"
447
448config FRAMEBUFFER_VESA_MODE_10E
449 bool "320x200 64k-color (5:6:5)"
450
451config FRAMEBUFFER_VESA_MODE_10F
452 bool "320x200 16.8M-color (8:8:8)"
453
454config FRAMEBUFFER_VESA_MODE_110
455 bool "640x480 32k-color (1:5:5:5)"
456
457config FRAMEBUFFER_VESA_MODE_111
458 bool "640x480 64k-color (5:6:5)"
459
460config FRAMEBUFFER_VESA_MODE_112
461 bool "640x480 16.8M-color (8:8:8)"
462
463config FRAMEBUFFER_VESA_MODE_113
464 bool "800x600 32k-color (1:5:5:5)"
465
466config FRAMEBUFFER_VESA_MODE_114
467 bool "800x600 64k-color (5:6:5)"
468
469config FRAMEBUFFER_VESA_MODE_115
470 bool "800x600 16.8M-color (8:8:8)"
471
472config FRAMEBUFFER_VESA_MODE_116
473 bool "1024x768 32k-color (1:5:5:5)"
474
475config FRAMEBUFFER_VESA_MODE_117
476 bool "1024x768 64k-color (5:6:5)"
477
478config FRAMEBUFFER_VESA_MODE_118
479 bool "1024x768 16.8M-color (8:8:8)"
480
481config FRAMEBUFFER_VESA_MODE_119
482 bool "1280x1024 32k-color (1:5:5:5)"
483
484config FRAMEBUFFER_VESA_MODE_11A
485 bool "1280x1024 64k-color (5:6:5)"
486
487config FRAMEBUFFER_VESA_MODE_11B
488 bool "1280x1024 16.8M-color (8:8:8)"
489
490config FRAMEBUFFER_VESA_MODE_USER
491 bool "Manually select VESA mode"
Ronald G. Minnich69efaa02013-02-26 10:07:40 -0800492 depends on !MAINBOARD_DO_NATIVE_VGA_INIT
Stefan Reinauer95a63962012-11-13 17:00:01 -0800493
494endchoice
495
496# Map the config names to an integer (KB).
497config FRAMEBUFFER_VESA_MODE
498 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
499 hex
500 default 0x100 if FRAMEBUFFER_VESA_MODE_100
501 default 0x101 if FRAMEBUFFER_VESA_MODE_101
502 default 0x102 if FRAMEBUFFER_VESA_MODE_102
503 default 0x103 if FRAMEBUFFER_VESA_MODE_103
504 default 0x104 if FRAMEBUFFER_VESA_MODE_104
505 default 0x105 if FRAMEBUFFER_VESA_MODE_105
506 default 0x106 if FRAMEBUFFER_VESA_MODE_106
507 default 0x107 if FRAMEBUFFER_VESA_MODE_107
508 default 0x108 if FRAMEBUFFER_VESA_MODE_108
509 default 0x109 if FRAMEBUFFER_VESA_MODE_109
510 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
511 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
512 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
513 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
514 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
515 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
516 default 0x110 if FRAMEBUFFER_VESA_MODE_110
517 default 0x111 if FRAMEBUFFER_VESA_MODE_111
518 default 0x112 if FRAMEBUFFER_VESA_MODE_112
519 default 0x113 if FRAMEBUFFER_VESA_MODE_113
520 default 0x114 if FRAMEBUFFER_VESA_MODE_114
521 default 0x115 if FRAMEBUFFER_VESA_MODE_115
522 default 0x116 if FRAMEBUFFER_VESA_MODE_116
523 default 0x117 if FRAMEBUFFER_VESA_MODE_117
524 default 0x118 if FRAMEBUFFER_VESA_MODE_118
525 default 0x119 if FRAMEBUFFER_VESA_MODE_119
526 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
527 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
528 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
529
530config FRAMEBUFFER_KEEP_VESA_MODE
531 prompt "Keep VESA framebuffer"
532 bool
Vladimir Serbinenko160e9a02014-02-22 10:34:47 +0100533 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE || (MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG && MAINBOARD_DO_NATIVE_VGA_INIT)
Stefan Reinauer95a63962012-11-13 17:00:01 -0800534 help
535 This option keeps the framebuffer mode set after coreboot finishes
536 execution. If this option is enabled, coreboot will pass a
537 framebuffer entry in its coreboot table and the payload will need a
538 framebuffer driver. If this option is disabled, coreboot will switch
539 back to text mode before handing control to a payload.
540
541config BOOTSPLASH
542 prompt "Show graphical bootsplash"
543 bool
544 depends on FRAMEBUFFER_SET_VESA_MODE
545 help
Daniele Forsi53847a22014-07-22 18:00:56 +0200546 This option shows a graphical bootsplash screen. The graphics are
Stefan Reinauer95a63962012-11-13 17:00:01 -0800547 loaded from the CBFS file bootsplash.jpg.
548
Konstantin Aladyshev6544cb32015-01-24 18:52:10 +0400549 You can either specify the location and file name of the
550 image in the 'General' section or add it manually to CBFS, using,
551 for example, cbfstool.
Daniele Forsi53847a22014-07-22 18:00:56 +0200552
Stefan Reinauer95a63962012-11-13 17:00:01 -0800553endmenu