blob: c0e4a8c8b00b3eeb8b23ffa5b54d187f586f9cfa [file] [log] [blame]
Stefan Reinauer1b342262011-01-05 02:27:53 +00001menu "Console"
Hung-Te Linad173ea2013-02-06 21:24:12 +08002
Gabe Blackfbb11cf2013-06-06 00:21:20 -07003config BOOTBLOCK_CONSOLE
4 bool "Enable early (bootblock) console output."
Alexandru Gagniucee464b12015-10-02 18:01:18 -07005 depends on C_ENVIRONMENT_BOOTBLOCK
Stefan Reinauerd2f45c62013-06-19 13:42:00 -07006 default n
Gabe Blackfbb11cf2013-06-06 00:21:20 -07007 help
8 Use console during the bootblock if supported
9
Lee Leahy049b4622016-07-31 11:53:28 -070010config POSTCAR_CONSOLE
11 bool "Enable console output during postcar."
12 depends on POSTCAR_STAGE
13 default n
14 help
15 Use console during the postcar if supported
16
Kyösti Mälkki361cd812013-08-12 23:29:57 +030017config SQUELCH_EARLY_SMP
18 bool "Squelch AP CPUs from early console."
19 default y
Lee Leahyf2ad50f2016-02-08 16:19:56 -080020 depends on SMP
Kyösti Mälkki361cd812013-08-12 23:29:57 +030021 help
22 When selected only the BSP CPU will output to early console.
23
24 Console drivers have unpredictable behaviour if multiple threads
25 attempt to share the same resources without a spinlock.
26
27 If unsure, say Y.
28
Hung-Te Linad173ea2013-02-06 21:24:12 +080029config CONSOLE_SERIAL
Uwe Hermannd12b7032009-10-16 22:39:55 +000030 bool "Serial port console output"
Stefan Reinauer509f7722012-12-07 17:31:37 -080031 default y
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020032 depends on DRIVERS_UART_8250IO || DRIVERS_UART_8250MEM || HAVE_UART_SPECIAL
Stefan Reinauer509f7722012-12-07 17:31:37 -080033 help
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020034 Send coreboot debug output to a serial port.
David Hendricks6a503b62012-12-31 17:28:43 -080035
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020036 The type of serial port driver selected based on your configuration is
37 shown on the following menu line. Supporting multiple different types
38 of UARTs in one build is not supported.
Stefan Reinauer4885daa2011-04-26 23:47:04 +000039
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020040if CONSOLE_SERIAL
Patrick Georgi0588d192009-08-12 15:00:51 +000041
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020042 comment "I/O mapped, 8250-compatible"
43 depends on DRIVERS_UART_8250IO
44
45 comment "memory mapped, 8250-compatible"
46 depends on DRIVERS_UART_8250MEM
47
48 comment "device-specific UART"
Hung-Te Linad173ea2013-02-06 21:24:12 +080049 depends on HAVE_UART_SPECIAL
Stefan Reinauer509f7722012-12-07 17:31:37 -080050
Kyösti Mälkki70342a72014-03-14 22:28:29 +020051config UART_FOR_CONSOLE
Kyösti Mälkkid5403772014-05-01 00:02:43 +030052 int "Index for UART port to use for console"
Kyösti Mälkki70342a72014-03-14 22:28:29 +020053 default 0
Martin Rothac76ed92015-11-19 11:40:43 -070054 help
55 Select an I/O port to use for serial console:
56 0 = 0x3f8, 1 = 0x2f8, 2 = 0x3e8, 3 = 0x2e8
Uwe Hermannd12b7032009-10-16 22:39:55 +000057
Kyösti Mälkki70342a72014-03-14 22:28:29 +020058# FIXME: Early programming in romstage is incorrect as we should
59# program different LDN to actually change the physical port.
Uwe Hermannd12b7032009-10-16 22:39:55 +000060config TTYS0_BASE
61 hex
Gabe Black77ffa0d2013-09-30 21:25:49 -070062 depends on DRIVERS_UART
Kyösti Mälkki70342a72014-03-14 22:28:29 +020063 default 0x3f8 if UART_FOR_CONSOLE = 0
64 default 0x2f8 if UART_FOR_CONSOLE = 1
65 default 0x3e8 if UART_FOR_CONSOLE = 2
66 default 0x2e8 if UART_FOR_CONSOLE = 3
Uwe Hermannd12b7032009-10-16 22:39:55 +000067 help
Kyösti Mälkki70342a72014-03-14 22:28:29 +020068 Map the COM port number to the respective I/O port.
Uwe Hermannd12b7032009-10-16 22:39:55 +000069
Martin Rothac76ed92015-11-19 11:40:43 -070070comment "Serial port base address = 0x3f8"
71depends on UART_FOR_CONSOLE = 0
72comment "Serial port base address = 0x2f8"
73depends on UART_FOR_CONSOLE = 1
74comment "Serial port base address = 0x3e8"
75depends on UART_FOR_CONSOLE = 2
76comment "Serial port base address = 0x2e8"
77depends on UART_FOR_CONSOLE = 3
78
Uwe Hermannd12b7032009-10-16 22:39:55 +000079choice
Uwe Hermanna081a3b2009-10-26 23:52:34 +000080 prompt "Baud rate"
Uwe Hermannd12b7032009-10-16 22:39:55 +000081 default CONSOLE_SERIAL_115200
Uwe Hermannd12b7032009-10-16 22:39:55 +000082
Lee Leahycda71b82016-02-20 05:39:10 -080083config CONSOLE_SERIAL_921600
84 bool "921600"
85 help
86 Set serial port Baud rate to 921600.
87config CONSOLE_SERIAL_460800
88 bool "460800"
89 help
90 Set serial port Baud rate to 460800.
91config CONSOLE_SERIAL_230400
92 bool "230400"
93 help
94 Set serial port Baud rate to 230400.
Uwe Hermannd12b7032009-10-16 22:39:55 +000095config CONSOLE_SERIAL_115200
96 bool "115200"
97 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000098 Set serial port Baud rate to 115200.
Uwe Hermannd12b7032009-10-16 22:39:55 +000099config CONSOLE_SERIAL_57600
100 bool "57600"
101 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +0000102 Set serial port Baud rate to 57600.
Uwe Hermannd12b7032009-10-16 22:39:55 +0000103config CONSOLE_SERIAL_38400
104 bool "38400"
105 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +0000106 Set serial port Baud rate to 38400.
Uwe Hermannd12b7032009-10-16 22:39:55 +0000107config CONSOLE_SERIAL_19200
108 bool "19200"
109 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +0000110 Set serial port Baud rate to 19200.
Uwe Hermannd12b7032009-10-16 22:39:55 +0000111config CONSOLE_SERIAL_9600
112 bool "9600"
113 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +0000114 Set serial port Baud rate to 9600.
Uwe Hermannd12b7032009-10-16 22:39:55 +0000115
116endchoice
Patrick Georgi0588d192009-08-12 15:00:51 +0000117
Stefan Reinauer509f7722012-12-07 17:31:37 -0800118#FIXME(dhendrix): Change name to SERIAL_BAUD? (Stefan sayz: yes!!)
Patrick Georgi0588d192009-08-12 15:00:51 +0000119config TTYS0_BAUD
Uwe Hermannd12b7032009-10-16 22:39:55 +0000120 int
Lee Leahycda71b82016-02-20 05:39:10 -0800121 default 921600 if CONSOLE_SERIAL_921600
122 default 460800 if CONSOLE_SERIAL_460800
123 default 230400 if CONSOLE_SERIAL_230400
Uwe Hermannd12b7032009-10-16 22:39:55 +0000124 default 115200 if CONSOLE_SERIAL_115200
125 default 57600 if CONSOLE_SERIAL_57600
126 default 38400 if CONSOLE_SERIAL_38400
127 default 19200 if CONSOLE_SERIAL_19200
128 default 9600 if CONSOLE_SERIAL_9600
129 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +0000130 Map the Baud rates to an integer.
Patrick Georgi0588d192009-08-12 15:00:51 +0000131
Uwe Hermann168b11b2009-10-07 16:15:40 +0000132# TODO: Allow user-friendly selection of settings other than 8n1.
Patrick Georgi0e9a9252009-10-06 20:48:07 +0000133config TTYS0_LCS
134 int
135 default 3
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +0200136 depends on DRIVERS_UART_8250IO || DRIVERS_UART_8250MEM
137
138endif # CONSOLE_SERIAL
Patrick Georgi0e9a9252009-10-06 20:48:07 +0000139
Vladimir Serbinenko45988da2013-03-30 02:02:13 +0100140config SPKMODEM
141 bool "spkmodem (console on speaker) console output"
142 default n
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100143 depends on ARCH_X86
Vladimir Serbinenko45988da2013-03-30 02:02:13 +0100144 help
145 Send coreboot debug output through speaker
146
Kyösti Mälkkiab94bbf2014-02-25 12:06:14 +0200147config CONSOLE_USB
148 bool "USB dongle console output"
149 depends on USBDEBUG
Kyösti Mälkki8101aa62013-08-15 16:27:06 +0300150 default n
Uwe Hermann168b11b2009-10-07 16:15:40 +0000151 help
Kyösti Mälkkiab94bbf2014-02-25 12:06:14 +0200152 Send coreboot debug output to USB.
Uwe Hermann168b11b2009-10-07 16:15:40 +0000153
Kyösti Mälkkiab94bbf2014-02-25 12:06:14 +0200154 Configuration for USB hardware is under menu Generic Drivers.
Kyösti Mälkkid2dac0a2013-08-23 23:33:16 +0300155
Uwe Hermann168b11b2009-10-07 16:15:40 +0000156# TODO: Deps?
157# TODO: Improve description.
Stefan Reinauerabc0c852010-11-22 08:09:50 +0000158config ONBOARD_VGA_IS_PRIMARY
Uwe Hermann168b11b2009-10-07 16:15:40 +0000159 bool "Use onboard VGA as primary video device"
Myles Watson45bb25f2009-09-22 18:49:08 +0000160 default n
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100161 depends on PCI
Myles Watson45bb25f2009-09-22 18:49:08 +0000162 help
163 If not selected, the last adapter found will be used.
164
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000165config CONSOLE_NE2K
166 bool "Network console over NE2000 compatible Ethernet adapter"
167 default n
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100168 depends on PCI
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000169 help
170 Send coreboot debug output to a Ethernet console, it works
171 same way as Linux netconsole, packets are received to UDP
172 port 6666 on IP/MAC specified with options bellow.
173 Use following netcat command: nc -u -l -p 6666
174
175config CONSOLE_NE2K_DST_MAC
176 depends on CONSOLE_NE2K
177 string "Destination MAC address of remote system"
178 default "00:13:d4:76:a2:ac"
179 help
180 Type in either MAC address of logging system or MAC address
181 of the router.
182
183config CONSOLE_NE2K_DST_IP
184 depends on CONSOLE_NE2K
185 string "Destination IP of logging system"
186 default "10.0.1.27"
187 help
Daniele Forsi53847a22014-07-22 18:00:56 +0200188 This is IP address of the system running for example
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000189 netcat command to dump the packets.
190
191config CONSOLE_NE2K_SRC_IP
192 depends on CONSOLE_NE2K
Stefan Reinauerd6b4f1c2010-09-23 18:29:40 +0000193 string "IP address of coreboot system"
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000194 default "10.0.1.253"
195 help
Stefan Reinauerd6b4f1c2010-09-23 18:29:40 +0000196 This is the IP of the coreboot system
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000197
198config CONSOLE_NE2K_IO_PORT
199 depends on CONSOLE_NE2K
200 hex "NE2000 adapter fixed IO port address"
201 default 0xe00
202 help
203 This is the IO port address for the IO port
204 on the card, please select some non-conflicting region,
205 32 bytes of IO spaces will be used (and align on 32 bytes
206 boundary, qemu needs broader align)
207
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700208config CONSOLE_CBMEM
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700209 bool "Send console output to a CBMEM buffer"
Paul Menzel60ef4562014-03-08 10:46:52 +0100210 default y
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700211 help
212 Enable this to save the console output in a CBMEM buffer. This would
213 allow to see coreboot console output from Linux space.
214
Kyösti Mälkki8659e402014-12-21 08:55:47 +0200215if CONSOLE_CBMEM
216
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700217config CONSOLE_CBMEM_BUFFER_SIZE
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700218 hex "Room allocated for console output in CBMEM"
Vladimir Serbinenkoeb67a042014-09-13 20:55:58 +0200219 default 0x20000
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700220 help
221 Space allocated for console output storage in CBMEM. The default
Vladimir Serbinenkoeb67a042014-09-13 20:55:58 +0200222 value (128K or 0x20000 bytes) is large enough to accommodate
Vadim Bendeburyc34b4632011-09-28 13:51:30 -0700223 even the BIOS_SPEW level.
224
Vadim Bendebury6e20e2f2015-04-10 18:04:04 -0700225config CONSOLE_CBMEM_DUMP_TO_UART
226 depends on !CONSOLE_SERIAL
227 bool "Dump CBMEM console on resets"
228 default n
229 help
230 Enable this to have CBMEM console buffer contents dumped on the
231 serial output in case serial console is disabled and the device
232 resets itself while trying to boot the payload.
233
Kyösti Mälkki8659e402014-12-21 08:55:47 +0200234endif
235
Youness Alaouic4b4ff32017-05-11 10:36:29 -0400236config CONSOLE_SPI_FLASH
237 bool "SPI Flash console output"
238 default n
239 select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if !COMMON_CBFS_SPI_WRAPPER
240 help
241 Send coreboot debug output to the SPI Flash in the FMAP CONSOLE area
242
243 This option can cause premature wear on the SPI flash and should not
244 be used as a normal means of debugging. It is only to be enabled and
245 used when porting a new motherboard which has no other console
246 available (no UART, no POST, no cbmem access(non bootable)). Since
247 a non bootable machine will require the use of an external SPI Flash
248 programmer, the developer can grab the console log at the same time.
249
250 The flash console will not be erased on reboot, so once it is full,
251 the flashconsole driver will stop writing to it. This is to avoid
252 wear on the flash, and to avoid erasing sectors (which may freeze
253 the SPI controller on skylake).
254
255 The 'CONSOLE' area can be extracted from the FMAP with :
256 cbfstool rom.bin read -r CONSOLE -f console.log
257
258config CONSOLE_SPI_FLASH_BUFFER_SIZE
259 hex "Room allocated for console output in FMAP"
260 default 0x20000
261 depends on CONSOLE_SPI_FLASH
262 help
263 Space allocated for console output storage in FMAP. The default
264 value (128K or 0x20000 bytes) is large enough to accommodate
265 even the BIOS_SPEW level.
266
Gerd Hoffmannd7c6e442013-05-30 10:32:31 +0200267config CONSOLE_QEMU_DEBUGCON
Gerd Hoffmann038aa292013-05-29 13:06:22 +0200268 bool "QEMU debug console output"
269 depends on BOARD_EMULATION_QEMU_X86
270 default y
271 help
272 Send coreboot debug output to QEMU's isa-debugcon device:
273
274 qemu-system-x86_64 \
275 -chardev file,id=debugcon,path=/dir/file.log \
276 -device isa-debugcon,iobase=0x402,chardev=debugcon
277
Gerd Hoffmannd7c6e442013-05-30 10:32:31 +0200278config CONSOLE_QEMU_DEBUGCON_PORT
Gerd Hoffmann038aa292013-05-29 13:06:22 +0200279 hex "QEMU debug console port"
Gerd Hoffmannd7c6e442013-05-30 10:32:31 +0200280 depends on CONSOLE_QEMU_DEBUGCON
Gerd Hoffmann038aa292013-05-29 13:06:22 +0200281 default 0x402
282
Martin Roth3a543182015-09-28 15:27:24 -0600283config SPI_CONSOLE
284 bool "SPI debug console output"
285 depends on HAVE_SPI_CONSOLE_SUPPORT && !DEBUG_SPI_FLASH
286 help
287 Enable support for the debug console on the Dediprog EM100Pro.
288 This is currently working only in ramstage due to how the spi
289 drivers are written.
290
Uwe Hermann7fe41912009-10-11 13:35:24 +0000291choice
Myles Watson03646182009-10-16 19:29:45 +0000292 prompt "Default console log level"
293 default DEFAULT_CONSOLE_LOGLEVEL_8
Uwe Hermann7fe41912009-10-11 13:35:24 +0000294
295config DEFAULT_CONSOLE_LOGLEVEL_8
Myles Watson03646182009-10-16 19:29:45 +0000296 bool "8: SPEW"
Myles Watson03646182009-10-16 19:29:45 +0000297 help
298 Way too many details.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000299config DEFAULT_CONSOLE_LOGLEVEL_7
Myles Watson03646182009-10-16 19:29:45 +0000300 bool "7: DEBUG"
Myles Watson03646182009-10-16 19:29:45 +0000301 help
302 Debug-level messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000303config DEFAULT_CONSOLE_LOGLEVEL_6
Myles Watson03646182009-10-16 19:29:45 +0000304 bool "6: INFO"
Myles Watson03646182009-10-16 19:29:45 +0000305 help
306 Informational messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000307config DEFAULT_CONSOLE_LOGLEVEL_5
Myles Watson03646182009-10-16 19:29:45 +0000308 bool "5: NOTICE"
Myles Watson03646182009-10-16 19:29:45 +0000309 help
310 Normal but significant conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000311config DEFAULT_CONSOLE_LOGLEVEL_4
Myles Watson03646182009-10-16 19:29:45 +0000312 bool "4: WARNING"
Myles Watson03646182009-10-16 19:29:45 +0000313 help
314 Warning conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000315config DEFAULT_CONSOLE_LOGLEVEL_3
Myles Watson03646182009-10-16 19:29:45 +0000316 bool "3: ERR"
Myles Watson03646182009-10-16 19:29:45 +0000317 help
318 Error conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000319config DEFAULT_CONSOLE_LOGLEVEL_2
Myles Watson03646182009-10-16 19:29:45 +0000320 bool "2: CRIT"
Myles Watson03646182009-10-16 19:29:45 +0000321 help
322 Critical conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000323config DEFAULT_CONSOLE_LOGLEVEL_1
Myles Watson03646182009-10-16 19:29:45 +0000324 bool "1: ALERT"
Myles Watson03646182009-10-16 19:29:45 +0000325 help
326 Action must be taken immediately.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000327config DEFAULT_CONSOLE_LOGLEVEL_0
Myles Watson03646182009-10-16 19:29:45 +0000328 bool "0: EMERG"
329 help
330 System is unusable.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000331
332endchoice
333
Patrick Georgi0588d192009-08-12 15:00:51 +0000334config DEFAULT_CONSOLE_LOGLEVEL
Uwe Hermann7fe41912009-10-11 13:35:24 +0000335 int
336 default 0 if DEFAULT_CONSOLE_LOGLEVEL_0
337 default 1 if DEFAULT_CONSOLE_LOGLEVEL_1
338 default 2 if DEFAULT_CONSOLE_LOGLEVEL_2
339 default 3 if DEFAULT_CONSOLE_LOGLEVEL_3
340 default 4 if DEFAULT_CONSOLE_LOGLEVEL_4
341 default 5 if DEFAULT_CONSOLE_LOGLEVEL_5
342 default 6 if DEFAULT_CONSOLE_LOGLEVEL_6
343 default 7 if DEFAULT_CONSOLE_LOGLEVEL_7
344 default 8 if DEFAULT_CONSOLE_LOGLEVEL_8
345 help
346 Map the log level config names to an integer.
Patrick Georgi0588d192009-08-12 15:00:51 +0000347
Stefan Reinauerc719f1a2010-03-30 09:57:28 +0000348config NO_POST
349 bool "Don't show any POST codes"
350 default n
351
Duncan Laurieb6e97b12012-09-09 19:09:56 -0700352config CMOS_POST
353 bool "Store post codes in CMOS for debugging"
Stefan Reinauerc2d5a162012-12-06 14:25:27 -0800354 depends on !NO_POST && PC80_SYSTEM
Duncan Laurieb6e97b12012-09-09 19:09:56 -0700355 default n
356 help
357 If enabled, coreboot will store post codes in CMOS and switch between
358 two offsets on each boot so the last post code in the previous boot
359 can be retrieved. This uses 3 bytes of CMOS.
360
361config CMOS_POST_OFFSET
362 hex "Offset into CMOS to store POST codes"
363 depends on CMOS_POST
Martin Roth3b878122016-09-30 14:43:01 -0600364 default 0x0
Duncan Laurieb6e97b12012-09-09 19:09:56 -0700365 help
366 If CMOS_POST is enabled then an offset into CMOS must be provided.
367 If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value
368 defined in the mainboard option table.
369
Duncan Lauried5686fe2013-06-10 10:21:41 -0700370config CMOS_POST_EXTRA
371 bool "Store extra logging info into CMOS"
372 depends on CMOS_POST
373 default n
374 help
375 This will enable extra logging of work that happens between post
376 codes into CMOS for debug. This uses an additional 8 bytes of CMOS.
377
Daniele Forsiad488d22014-07-30 12:23:35 +0200378config CONSOLE_POST
Idwer Vollering5809a732014-03-11 15:36:21 +0000379 bool "Show POST codes on the debug console"
380 depends on !NO_POST
381 default n
382 help
383 If enabled, coreboot will additionally print POST codes (which are
384 usually displayed using a so-called "POST card" ISA/PCI/PCI-E
385 device) on the debug console.
386
387config POST_DEVICE
388 bool "Send POST codes to an external device"
389 depends on !NO_POST
390 default y
391
392choice
393 prompt "Device to send POST codes to"
394 depends on POST_DEVICE
395 default POST_DEVICE_NONE
396
397config POST_DEVICE_NONE
398 bool "None"
399config POST_DEVICE_LPC
400 bool "LPC"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100401 depends on PCI
Idwer Vollering5809a732014-03-11 15:36:21 +0000402config POST_DEVICE_PCI_PCIE
403 bool "PCI/PCIe"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100404 depends on PCI
Idwer Vollering5809a732014-03-11 15:36:21 +0000405endchoice
406
407config POST_IO
David Hendricks6b908d02012-11-05 12:34:09 -0800408 bool "Send POST codes to an IO port"
Idwer Vollering5809a732014-03-11 15:36:21 +0000409 depends on PC80_SYSTEM && !NO_POST
David Hendricks6b908d02012-11-05 12:34:09 -0800410 default y
411 help
412 If enabled, POST codes will be written to an IO port.
Stefan Reinauerc719f1a2010-03-30 09:57:28 +0000413
Idwer Vollering5809a732014-03-11 15:36:21 +0000414config POST_IO_PORT
415 depends on POST_IO
David Hendricks6b908d02012-11-05 12:34:09 -0800416 hex "IO port for POST codes"
417 default 0x80
418 help
419 POST codes on x86 are typically written to the LPC bus on port
Daniele Forsi53847a22014-07-22 18:00:56 +0200420 0x80. However, it may be desirable to change the port number
David Hendricks6b908d02012-11-05 12:34:09 -0800421 depending on the presence of coprocessors/microcontrollers or if the
422 platform does not support IO in the conventional x86 manner.
423
Martin Roth14554372015-11-12 14:02:42 -0700424config NO_EARLY_BOOTBLOCK_POSTCODES
425 def_bool n
426 help
427 Some chipsets require that the routing for the port 80h POST
428 code be configured before any POST codes are sent out.
429 This can be done in the boot block, but there are a couple of
430 POST codes that go out before the chipset's bootblock initialization
431 can happen. This option suppresses those POST codes.
432
Nico Huberc83239e2016-10-05 17:46:49 +0200433config HWBASE_DEBUG_CB
434 bool
435 default y if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
436 default n
437
438config HWBASE_DEBUG_NULL
439 def_bool y
440 depends on !HWBASE_DEBUG_CB
441
David Hendricks6b908d02012-11-05 12:34:09 -0800442endmenu