blob: 83826954b58605d5d8f680af247e48ea52b5e860 [file] [log] [blame]
Stefan Reinauer1b342262011-01-05 02:27:53 +00001menu "Console"
Uwe Hermann168b11b2009-10-07 16:15:40 +00002# TODO: Rename to SERIAL_CONSOLE once Kconfig transition is complete.
Myles Watson6bb3bdf2009-09-25 17:24:08 +00003config CONSOLE_SERIAL8250
Uwe Hermannd12b7032009-10-16 22:39:55 +00004 bool "Serial port console output"
Stefan Reinauer4885daa2011-04-26 23:47:04 +00005 depends on HAVE_UART_IO_MAPPED
Patrick Georgi0588d192009-08-12 15:00:51 +00006 default y
Uwe Hermann168b11b2009-10-07 16:15:40 +00007 help
Stefan Reinauer4885daa2011-04-26 23:47:04 +00008 Send coreboot debug output to an I/O mapped serial port console.
9
10config CONSOLE_SERIAL8250MEM
11 bool "Serial port console output (memory mapped)"
12 depends on HAVE_UART_MEMORY_MAPPED
13 help
14 Send coreboot debug output to a memory mapped serial port console.
Patrick Georgi0588d192009-08-12 15:00:51 +000015
Uwe Hermannd12b7032009-10-16 22:39:55 +000016choice
Uwe Hermanna081a3b2009-10-26 23:52:34 +000017 prompt "Serial port"
Uwe Hermannd12b7032009-10-16 22:39:55 +000018 default CONSOLE_SERIAL_COM1
Myles Watson6bb3bdf2009-09-25 17:24:08 +000019 depends on CONSOLE_SERIAL8250
Uwe Hermannd12b7032009-10-16 22:39:55 +000020
21config CONSOLE_SERIAL_COM1
Uwe Hermanna081a3b2009-10-26 23:52:34 +000022 bool "COM1/ttyS0, I/O port 0x3f8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000023 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000024 Serial console on COM1/ttyS0 at I/O port 0x3f8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000025config CONSOLE_SERIAL_COM2
Uwe Hermanna081a3b2009-10-26 23:52:34 +000026 bool "COM2/ttyS1, I/O port 0x2f8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000027 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000028 Serial console on COM2/ttyS1 at I/O port 0x2f8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000029config CONSOLE_SERIAL_COM3
Uwe Hermanna081a3b2009-10-26 23:52:34 +000030 bool "COM3/ttyS2, I/O port 0x3e8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000031 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000032 Serial console on COM3/ttyS2 at I/O port 0x3e8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000033config CONSOLE_SERIAL_COM4
Uwe Hermanna081a3b2009-10-26 23:52:34 +000034 bool "COM4/ttyS3, I/O port 0x2e8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000035 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000036 Serial console on COM4/ttyS3 at I/O port 0x2e8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000037
38endchoice
39
40config TTYS0_BASE
41 hex
42 depends on CONSOLE_SERIAL8250
43 default 0x3f8 if CONSOLE_SERIAL_COM1
44 default 0x2f8 if CONSOLE_SERIAL_COM2
45 default 0x3e8 if CONSOLE_SERIAL_COM3
46 default 0x2e8 if CONSOLE_SERIAL_COM4
47 help
48 Map the COM port names to the respective I/O port.
49
50choice
Uwe Hermanna081a3b2009-10-26 23:52:34 +000051 prompt "Baud rate"
Uwe Hermannd12b7032009-10-16 22:39:55 +000052 default CONSOLE_SERIAL_115200
Stefan Reinauer4885daa2011-04-26 23:47:04 +000053 depends on CONSOLE_SERIAL8250 || CONSOLE_SERIAL8250MEM
Uwe Hermannd12b7032009-10-16 22:39:55 +000054
55config CONSOLE_SERIAL_115200
56 bool "115200"
57 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000058 Set serial port Baud rate to 115200.
Uwe Hermannd12b7032009-10-16 22:39:55 +000059config CONSOLE_SERIAL_57600
60 bool "57600"
61 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000062 Set serial port Baud rate to 57600.
Uwe Hermannd12b7032009-10-16 22:39:55 +000063config CONSOLE_SERIAL_38400
64 bool "38400"
65 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000066 Set serial port Baud rate to 38400.
Uwe Hermannd12b7032009-10-16 22:39:55 +000067config CONSOLE_SERIAL_19200
68 bool "19200"
69 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000070 Set serial port Baud rate to 19200.
Uwe Hermannd12b7032009-10-16 22:39:55 +000071config CONSOLE_SERIAL_9600
72 bool "9600"
73 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000074 Set serial port Baud rate to 9600.
Uwe Hermannd12b7032009-10-16 22:39:55 +000075
76endchoice
Patrick Georgi0588d192009-08-12 15:00:51 +000077
Patrick Georgi0588d192009-08-12 15:00:51 +000078config TTYS0_BAUD
Uwe Hermannd12b7032009-10-16 22:39:55 +000079 int
80 default 115200 if CONSOLE_SERIAL_115200
81 default 57600 if CONSOLE_SERIAL_57600
82 default 38400 if CONSOLE_SERIAL_38400
83 default 19200 if CONSOLE_SERIAL_19200
84 default 9600 if CONSOLE_SERIAL_9600
85 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000086 Map the Baud rates to an integer.
Patrick Georgi0588d192009-08-12 15:00:51 +000087
Uwe Hermann168b11b2009-10-07 16:15:40 +000088# TODO: Allow user-friendly selection of settings other than 8n1.
Patrick Georgi0e9a9252009-10-06 20:48:07 +000089config TTYS0_LCS
90 int
91 default 3
Stefan Reinauer4885daa2011-04-26 23:47:04 +000092 depends on CONSOLE_SERIAL8250 || CONSOLE_SERIAL8250MEM
Patrick Georgi0e9a9252009-10-06 20:48:07 +000093
Uwe Hermann65e60342010-09-26 07:35:55 +000094# Use "select HAVE_USBDEBUG" on southbridges which have Debug Port code.
95config HAVE_USBDEBUG
96 def_bool n
97
Stefan Reinauer7e00a442010-05-25 17:09:05 +000098config USBDEBUG
Uwe Hermann02260bc2010-09-26 10:34:36 +000099 def_bool n
100
101config USBDEBUG
Uwe Hermann168b11b2009-10-07 16:15:40 +0000102 bool "USB 2.0 EHCI debug dongle support"
103 default n
Uwe Hermann65e60342010-09-26 07:35:55 +0000104 depends on HAVE_USBDEBUG
Uwe Hermann168b11b2009-10-07 16:15:40 +0000105 help
106 This option allows you to use a so-called USB EHCI Debug device
Uwe Hermann65e60342010-09-26 07:35:55 +0000107 (such as the Ajays NET20DC, AMIDebug RX, or a system using the
108 Linux "EHCI Debug Device gadget" driver found in recent kernel)
Uwe Hermann168b11b2009-10-07 16:15:40 +0000109 to retrieve the coreboot debug messages (instead, or in addition
110 to, a serial port).
111
112 This feature is NOT supported on all chipsets in coreboot!
113
114 It also requires a USB2 controller which supports the EHCI
Uwe Hermann65e60342010-09-26 07:35:55 +0000115 Debug Port capability.
Stefan Reinauer14e22772010-04-27 06:56:47 +0000116
Uwe Hermann65e60342010-09-26 07:35:55 +0000117 See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list
118 of supported controllers.
Uwe Hermann168b11b2009-10-07 16:15:40 +0000119
Uwe Hermann65e60342010-09-26 07:35:55 +0000120 If unsure, say N.
Patrick Georgi0588d192009-08-12 15:00:51 +0000121
Uwe Hermannfa7efe92010-10-02 20:33:56 +0000122# Note: This option doesn't make sense on Intel ICH / AMD SB600 southbridges
123# as those hardcode the physical USB port to be used as Debug Port to 1.
124# It cannot be changed by coreboot.
Uwe Hermann7ac4c262010-09-27 18:03:18 +0000125config USBDEBUG_DEFAULT_PORT
126 int "Default USB port to use as Debug Port"
127 default 1
Uwe Hermannfa7efe92010-10-02 20:33:56 +0000128 depends on USBDEBUG && !SOUTHBRIDGE_INTEL_I82801GX && !SOUTHBRIDGE_AMD_SB600
Uwe Hermann7ac4c262010-09-27 18:03:18 +0000129 help
130 This option selects which physical USB port coreboot will try to
131 use as EHCI Debug Port first (valid values are: 1-15).
132
133 If coreboot doesn't detect an EHCI Debug Port dongle on this port,
134 it will try all the other ports one after the other. This will take
135 a few seconds of time though, and thus slow down the booting process.
136
137 Hence, if you select the correct port here, you can speed up
138 your boot time. Which USB port number (1-15) refers to which
139 actual port on your mainboard (potentially also USB pin headers
140 on your mainboard) is highly board-specific, and you'll likely
141 have to find out by trial-and-error.
142
Uwe Hermann168b11b2009-10-07 16:15:40 +0000143# TODO: Deps?
144# TODO: Improve description.
Stefan Reinauerabc0c852010-11-22 08:09:50 +0000145config ONBOARD_VGA_IS_PRIMARY
Uwe Hermann168b11b2009-10-07 16:15:40 +0000146 bool "Use onboard VGA as primary video device"
Myles Watson45bb25f2009-09-22 18:49:08 +0000147 default n
148 help
149 If not selected, the last adapter found will be used.
150
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000151config CONSOLE_NE2K
152 bool "Network console over NE2000 compatible Ethernet adapter"
153 default n
154 help
155 Send coreboot debug output to a Ethernet console, it works
156 same way as Linux netconsole, packets are received to UDP
157 port 6666 on IP/MAC specified with options bellow.
158 Use following netcat command: nc -u -l -p 6666
159
160config CONSOLE_NE2K_DST_MAC
161 depends on CONSOLE_NE2K
162 string "Destination MAC address of remote system"
163 default "00:13:d4:76:a2:ac"
164 help
165 Type in either MAC address of logging system or MAC address
166 of the router.
167
168config CONSOLE_NE2K_DST_IP
169 depends on CONSOLE_NE2K
170 string "Destination IP of logging system"
171 default "10.0.1.27"
172 help
173 This is IP adress of the system running for example
174 netcat command to dump the packets.
175
176config CONSOLE_NE2K_SRC_IP
177 depends on CONSOLE_NE2K
Stefan Reinauerd6b4f1c2010-09-23 18:29:40 +0000178 string "IP address of coreboot system"
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000179 default "10.0.1.253"
180 help
Stefan Reinauerd6b4f1c2010-09-23 18:29:40 +0000181 This is the IP of the coreboot system
Rudolf Marek4aa93cc2010-07-16 20:02:09 +0000182
183config CONSOLE_NE2K_IO_PORT
184 depends on CONSOLE_NE2K
185 hex "NE2000 adapter fixed IO port address"
186 default 0xe00
187 help
188 This is the IO port address for the IO port
189 on the card, please select some non-conflicting region,
190 32 bytes of IO spaces will be used (and align on 32 bytes
191 boundary, qemu needs broader align)
192
193
Uwe Hermann7fe41912009-10-11 13:35:24 +0000194choice
Myles Watson03646182009-10-16 19:29:45 +0000195 prompt "Maximum console log level"
196 default MAXIMUM_CONSOLE_LOGLEVEL_8
Patrick Georgi0588d192009-08-12 15:00:51 +0000197
Uwe Hermann7fe41912009-10-11 13:35:24 +0000198config MAXIMUM_CONSOLE_LOGLEVEL_8
Myles Watson03646182009-10-16 19:29:45 +0000199 bool "8: SPEW"
200 help
201 Way too many details.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000202config MAXIMUM_CONSOLE_LOGLEVEL_7
Myles Watson03646182009-10-16 19:29:45 +0000203 bool "7: DEBUG"
204 help
205 Debug-level messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000206config MAXIMUM_CONSOLE_LOGLEVEL_6
Myles Watson03646182009-10-16 19:29:45 +0000207 bool "6: INFO"
208 help
209 Informational messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000210config MAXIMUM_CONSOLE_LOGLEVEL_5
Myles Watson03646182009-10-16 19:29:45 +0000211 bool "5: NOTICE"
212 help
213 Normal but significant conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000214config MAXIMUM_CONSOLE_LOGLEVEL_4
Myles Watson03646182009-10-16 19:29:45 +0000215 bool "4: WARNING"
216 help
217 Warning conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000218config MAXIMUM_CONSOLE_LOGLEVEL_3
Myles Watson03646182009-10-16 19:29:45 +0000219 bool "3: ERR"
220 help
221 Error conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000222config MAXIMUM_CONSOLE_LOGLEVEL_2
Myles Watson03646182009-10-16 19:29:45 +0000223 bool "2: CRIT"
224 help
225 Critical conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000226config MAXIMUM_CONSOLE_LOGLEVEL_1
Myles Watson03646182009-10-16 19:29:45 +0000227 bool "1: ALERT"
228 help
229 Action must be taken immediately.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000230config MAXIMUM_CONSOLE_LOGLEVEL_0
Myles Watson03646182009-10-16 19:29:45 +0000231 bool "0: EMERG"
232 help
233 System is unusable.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000234
235endchoice
236
237config MAXIMUM_CONSOLE_LOGLEVEL
238 int
239 default 0 if MAXIMUM_CONSOLE_LOGLEVEL_0
240 default 1 if MAXIMUM_CONSOLE_LOGLEVEL_1
241 default 2 if MAXIMUM_CONSOLE_LOGLEVEL_2
242 default 3 if MAXIMUM_CONSOLE_LOGLEVEL_3
243 default 4 if MAXIMUM_CONSOLE_LOGLEVEL_4
244 default 5 if MAXIMUM_CONSOLE_LOGLEVEL_5
245 default 6 if MAXIMUM_CONSOLE_LOGLEVEL_6
246 default 7 if MAXIMUM_CONSOLE_LOGLEVEL_7
247 default 8 if MAXIMUM_CONSOLE_LOGLEVEL_8
248 help
249 Map the log level config names to an integer.
250
251choice
Myles Watson03646182009-10-16 19:29:45 +0000252 prompt "Default console log level"
253 default DEFAULT_CONSOLE_LOGLEVEL_8
Uwe Hermann7fe41912009-10-11 13:35:24 +0000254
255config DEFAULT_CONSOLE_LOGLEVEL_8
Myles Watson03646182009-10-16 19:29:45 +0000256 bool "8: SPEW"
257 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8)
258 help
259 Way too many details.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000260config DEFAULT_CONSOLE_LOGLEVEL_7
Myles Watson03646182009-10-16 19:29:45 +0000261 bool "7: DEBUG"
262 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7)
263 help
264 Debug-level messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000265config DEFAULT_CONSOLE_LOGLEVEL_6
Myles Watson03646182009-10-16 19:29:45 +0000266 bool "6: INFO"
267 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
268 MAXIMUM_CONSOLE_LOGLEVEL_6)
269 help
270 Informational messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000271config DEFAULT_CONSOLE_LOGLEVEL_5
Myles Watson03646182009-10-16 19:29:45 +0000272 bool "5: NOTICE"
273 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
274 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5)
275 help
276 Normal but significant conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000277config DEFAULT_CONSOLE_LOGLEVEL_4
Myles Watson03646182009-10-16 19:29:45 +0000278 bool "4: WARNING"
279 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
280 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
281 MAXIMUM_CONSOLE_LOGLEVEL_4)
282 help
283 Warning conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000284config DEFAULT_CONSOLE_LOGLEVEL_3
Myles Watson03646182009-10-16 19:29:45 +0000285 bool "3: ERR"
286 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
287 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
288 MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3)
289 help
290 Error conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000291config DEFAULT_CONSOLE_LOGLEVEL_2
Myles Watson03646182009-10-16 19:29:45 +0000292 bool "2: CRIT"
293 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
294 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
295 MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\
296 MAXIMUM_CONSOLE_LOGLEVEL_2)
297 help
298 Critical conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000299config DEFAULT_CONSOLE_LOGLEVEL_1
Myles Watson03646182009-10-16 19:29:45 +0000300 bool "1: ALERT"
301 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
302 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
303 MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\
304 MAXIMUM_CONSOLE_LOGLEVEL_2 || MAXIMUM_CONSOLE_LOGLEVEL_1)
305 help
306 Action must be taken immediately.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000307config DEFAULT_CONSOLE_LOGLEVEL_0
Myles Watson03646182009-10-16 19:29:45 +0000308 bool "0: EMERG"
309 help
310 System is unusable.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000311
312endchoice
313
Patrick Georgi0588d192009-08-12 15:00:51 +0000314config DEFAULT_CONSOLE_LOGLEVEL
Uwe Hermann7fe41912009-10-11 13:35:24 +0000315 int
316 default 0 if DEFAULT_CONSOLE_LOGLEVEL_0
317 default 1 if DEFAULT_CONSOLE_LOGLEVEL_1
318 default 2 if DEFAULT_CONSOLE_LOGLEVEL_2
319 default 3 if DEFAULT_CONSOLE_LOGLEVEL_3
320 default 4 if DEFAULT_CONSOLE_LOGLEVEL_4
321 default 5 if DEFAULT_CONSOLE_LOGLEVEL_5
322 default 6 if DEFAULT_CONSOLE_LOGLEVEL_6
323 default 7 if DEFAULT_CONSOLE_LOGLEVEL_7
324 default 8 if DEFAULT_CONSOLE_LOGLEVEL_8
325 help
326 Map the log level config names to an integer.
Patrick Georgi0588d192009-08-12 15:00:51 +0000327
Myles Watsond73c1b52009-10-26 15:14:07 +0000328config CONSOLE_LOGBUF
329 bool
330 default n
Stefan Reinauerc719f1a2010-03-30 09:57:28 +0000331
332config NO_POST
333 bool "Don't show any POST codes"
334 default n
335
Christoph Grenz5cfd5832011-09-18 22:54:51 +0200336config POST_PORT
337 int
338 default 0x80
339
Stefan Reinauer582d3692011-01-28 07:47:35 +0000340config CONSOLE_POST
341 bool "Show POST codes on the debug console"
342 depends on !NO_POST
Stefan Reinauerc719f1a2010-03-30 09:57:28 +0000343 default n
344 help
345 If enabled, coreboot will additionally print POST codes (which are
346 usually displayed using a so-called "POST card" ISA/PCI/PCI-E
Stefan Reinauer582d3692011-01-28 07:47:35 +0000347 device) on the debug console.
Stefan Reinauerc719f1a2010-03-30 09:57:28 +0000348
349endmenu
350