blob: b9d6f6925398307c45e70b39277e62ca6d48dbb7 [file] [log] [blame]
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +00001menu "Console options"
Patrick Georgi0588d192009-08-12 15:00:51 +00002
Uwe Hermann168b11b2009-10-07 16:15:40 +00003# TODO: Rename to SERIAL_CONSOLE once Kconfig transition is complete.
Myles Watson6bb3bdf2009-09-25 17:24:08 +00004config CONSOLE_SERIAL8250
Uwe Hermannd12b7032009-10-16 22:39:55 +00005 bool "Serial port console output"
Patrick Georgi0588d192009-08-12 15:00:51 +00006 default y
Uwe Hermann168b11b2009-10-07 16:15:40 +00007 help
8 Send coreboot debug output to a serial port console.
Patrick Georgi0588d192009-08-12 15:00:51 +00009
Uwe Hermannd12b7032009-10-16 22:39:55 +000010choice
Uwe Hermanna081a3b2009-10-26 23:52:34 +000011 prompt "Serial port"
Uwe Hermannd12b7032009-10-16 22:39:55 +000012 default CONSOLE_SERIAL_COM1
Myles Watson6bb3bdf2009-09-25 17:24:08 +000013 depends on CONSOLE_SERIAL8250
Uwe Hermannd12b7032009-10-16 22:39:55 +000014
15config CONSOLE_SERIAL_COM1
Uwe Hermanna081a3b2009-10-26 23:52:34 +000016 bool "COM1/ttyS0, I/O port 0x3f8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000017 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000018 Serial console on COM1/ttyS0 at I/O port 0x3f8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000019config CONSOLE_SERIAL_COM2
Uwe Hermanna081a3b2009-10-26 23:52:34 +000020 bool "COM2/ttyS1, I/O port 0x2f8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000021 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000022 Serial console on COM2/ttyS1 at I/O port 0x2f8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000023config CONSOLE_SERIAL_COM3
Uwe Hermanna081a3b2009-10-26 23:52:34 +000024 bool "COM3/ttyS2, I/O port 0x3e8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000025 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000026 Serial console on COM3/ttyS2 at I/O port 0x3e8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000027config CONSOLE_SERIAL_COM4
Uwe Hermanna081a3b2009-10-26 23:52:34 +000028 bool "COM4/ttyS3, I/O port 0x2e8"
Uwe Hermannd12b7032009-10-16 22:39:55 +000029 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000030 Serial console on COM4/ttyS3 at I/O port 0x2e8.
Uwe Hermannd12b7032009-10-16 22:39:55 +000031
32endchoice
33
34config TTYS0_BASE
35 hex
36 depends on CONSOLE_SERIAL8250
37 default 0x3f8 if CONSOLE_SERIAL_COM1
38 default 0x2f8 if CONSOLE_SERIAL_COM2
39 default 0x3e8 if CONSOLE_SERIAL_COM3
40 default 0x2e8 if CONSOLE_SERIAL_COM4
41 help
42 Map the COM port names to the respective I/O port.
43
44choice
Uwe Hermanna081a3b2009-10-26 23:52:34 +000045 prompt "Baud rate"
Uwe Hermannd12b7032009-10-16 22:39:55 +000046 default CONSOLE_SERIAL_115200
47 depends on CONSOLE_SERIAL8250
48
49config CONSOLE_SERIAL_115200
50 bool "115200"
51 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000052 Set serial port Baud rate to 115200.
Uwe Hermannd12b7032009-10-16 22:39:55 +000053config CONSOLE_SERIAL_57600
54 bool "57600"
55 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000056 Set serial port Baud rate to 57600.
Uwe Hermannd12b7032009-10-16 22:39:55 +000057config CONSOLE_SERIAL_38400
58 bool "38400"
59 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000060 Set serial port Baud rate to 38400.
Uwe Hermannd12b7032009-10-16 22:39:55 +000061config CONSOLE_SERIAL_19200
62 bool "19200"
63 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000064 Set serial port Baud rate to 19200.
Uwe Hermannd12b7032009-10-16 22:39:55 +000065config CONSOLE_SERIAL_9600
66 bool "9600"
67 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000068 Set serial port Baud rate to 9600.
Uwe Hermannd12b7032009-10-16 22:39:55 +000069
70endchoice
Patrick Georgi0588d192009-08-12 15:00:51 +000071
Patrick Georgi0588d192009-08-12 15:00:51 +000072config TTYS0_BAUD
Uwe Hermannd12b7032009-10-16 22:39:55 +000073 int
74 default 115200 if CONSOLE_SERIAL_115200
75 default 57600 if CONSOLE_SERIAL_57600
76 default 38400 if CONSOLE_SERIAL_38400
77 default 19200 if CONSOLE_SERIAL_19200
78 default 9600 if CONSOLE_SERIAL_9600
79 help
Uwe Hermanna081a3b2009-10-26 23:52:34 +000080 Map the Baud rates to an integer.
Patrick Georgi0588d192009-08-12 15:00:51 +000081
Uwe Hermann168b11b2009-10-07 16:15:40 +000082# TODO: Allow user-friendly selection of settings other than 8n1.
Patrick Georgi0e9a9252009-10-06 20:48:07 +000083config TTYS0_LCS
84 int
85 default 3
86 depends on CONSOLE_SERIAL8250
87
Uwe Hermann168b11b2009-10-07 16:15:40 +000088# TODO: FIX DEPENDENCY HERE
89config USBDEBUG_DIRECT
90 bool "USB 2.0 EHCI debug dongle support"
91 default n
92 help
93 This option allows you to use a so-called USB EHCI Debug device
94 to retrieve the coreboot debug messages (instead, or in addition
95 to, a serial port).
96
97 This feature is NOT supported on all chipsets in coreboot!
98
99 It also requires a USB2 controller which supports the EHCI
100 Debug Port capability. Controllers which are known to work:
Stefan Reinauer14e22772010-04-27 06:56:47 +0000101
Uwe Hermann168b11b2009-10-07 16:15:40 +0000102 * 10b9:5239 ALi Corporation USB 2.0 (USB PCI card)
103 * 8086:24cd Intel ICH4/ICH4-M
104 * 8086:24dd Intel ICH5
105 * 8086:265c Intel ICH6
106 * 8086:268c Intel 631xESB/632xESB/3100
107 * 8086:27cc Intel ICH7
108 * 8086:2836 Intel ICH8
109 * 8086:283a Intel ICH8
110 * 8086:293a Intel ICH9
111 * 10de:0088 NVIDIA MCP2A
112 * 10de:005b NVIDIA CK804
113 * 10de:026e NVIDIA MCP51
114 * 10de:036d NVIDIA MCP55
115 * 10de:03f2 NVIDIA MCP61
116 * 1002:4386 ATI/AMD SB600
117 * 1106:3104 VIA VX800
118
119 See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list.
Patrick Georgi0588d192009-08-12 15:00:51 +0000120
121config CONSOLE_VGA
Uwe Hermann168b11b2009-10-07 16:15:40 +0000122 bool "Use VGA console once initialized"
Patrick Georgi0588d192009-08-12 15:00:51 +0000123 default n
124
Uwe Hermann168b11b2009-10-07 16:15:40 +0000125# TODO: Deps?
126# TODO: Improve description.
Myles Watson45bb25f2009-09-22 18:49:08 +0000127config CONSOLE_VGA_ONBOARD_AT_FIRST
Uwe Hermann168b11b2009-10-07 16:15:40 +0000128 bool "Use onboard VGA as primary video device"
Myles Watson45bb25f2009-09-22 18:49:08 +0000129 default n
130 help
131 If not selected, the last adapter found will be used.
132
Uwe Hermann7fe41912009-10-11 13:35:24 +0000133choice
Myles Watson03646182009-10-16 19:29:45 +0000134 prompt "Maximum console log level"
135 default MAXIMUM_CONSOLE_LOGLEVEL_8
Patrick Georgi0588d192009-08-12 15:00:51 +0000136
Uwe Hermann7fe41912009-10-11 13:35:24 +0000137config MAXIMUM_CONSOLE_LOGLEVEL_8
Myles Watson03646182009-10-16 19:29:45 +0000138 bool "8: SPEW"
139 help
140 Way too many details.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000141config MAXIMUM_CONSOLE_LOGLEVEL_7
Myles Watson03646182009-10-16 19:29:45 +0000142 bool "7: DEBUG"
143 help
144 Debug-level messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000145config MAXIMUM_CONSOLE_LOGLEVEL_6
Myles Watson03646182009-10-16 19:29:45 +0000146 bool "6: INFO"
147 help
148 Informational messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000149config MAXIMUM_CONSOLE_LOGLEVEL_5
Myles Watson03646182009-10-16 19:29:45 +0000150 bool "5: NOTICE"
151 help
152 Normal but significant conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000153config MAXIMUM_CONSOLE_LOGLEVEL_4
Myles Watson03646182009-10-16 19:29:45 +0000154 bool "4: WARNING"
155 help
156 Warning conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000157config MAXIMUM_CONSOLE_LOGLEVEL_3
Myles Watson03646182009-10-16 19:29:45 +0000158 bool "3: ERR"
159 help
160 Error conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000161config MAXIMUM_CONSOLE_LOGLEVEL_2
Myles Watson03646182009-10-16 19:29:45 +0000162 bool "2: CRIT"
163 help
164 Critical conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000165config MAXIMUM_CONSOLE_LOGLEVEL_1
Myles Watson03646182009-10-16 19:29:45 +0000166 bool "1: ALERT"
167 help
168 Action must be taken immediately.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000169config MAXIMUM_CONSOLE_LOGLEVEL_0
Myles Watson03646182009-10-16 19:29:45 +0000170 bool "0: EMERG"
171 help
172 System is unusable.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000173
174endchoice
175
176config MAXIMUM_CONSOLE_LOGLEVEL
177 int
178 default 0 if MAXIMUM_CONSOLE_LOGLEVEL_0
179 default 1 if MAXIMUM_CONSOLE_LOGLEVEL_1
180 default 2 if MAXIMUM_CONSOLE_LOGLEVEL_2
181 default 3 if MAXIMUM_CONSOLE_LOGLEVEL_3
182 default 4 if MAXIMUM_CONSOLE_LOGLEVEL_4
183 default 5 if MAXIMUM_CONSOLE_LOGLEVEL_5
184 default 6 if MAXIMUM_CONSOLE_LOGLEVEL_6
185 default 7 if MAXIMUM_CONSOLE_LOGLEVEL_7
186 default 8 if MAXIMUM_CONSOLE_LOGLEVEL_8
187 help
188 Map the log level config names to an integer.
189
190choice
Myles Watson03646182009-10-16 19:29:45 +0000191 prompt "Default console log level"
192 default DEFAULT_CONSOLE_LOGLEVEL_8
Uwe Hermann7fe41912009-10-11 13:35:24 +0000193
194config DEFAULT_CONSOLE_LOGLEVEL_8
Myles Watson03646182009-10-16 19:29:45 +0000195 bool "8: SPEW"
196 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8)
197 help
198 Way too many details.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000199config DEFAULT_CONSOLE_LOGLEVEL_7
Myles Watson03646182009-10-16 19:29:45 +0000200 bool "7: DEBUG"
201 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7)
202 help
203 Debug-level messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000204config DEFAULT_CONSOLE_LOGLEVEL_6
Myles Watson03646182009-10-16 19:29:45 +0000205 bool "6: INFO"
206 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
207 MAXIMUM_CONSOLE_LOGLEVEL_6)
208 help
209 Informational messages.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000210config DEFAULT_CONSOLE_LOGLEVEL_5
Myles Watson03646182009-10-16 19:29:45 +0000211 bool "5: NOTICE"
212 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
213 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5)
214 help
215 Normal but significant conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000216config DEFAULT_CONSOLE_LOGLEVEL_4
Myles Watson03646182009-10-16 19:29:45 +0000217 bool "4: WARNING"
218 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
219 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
220 MAXIMUM_CONSOLE_LOGLEVEL_4)
221 help
222 Warning conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000223config DEFAULT_CONSOLE_LOGLEVEL_3
Myles Watson03646182009-10-16 19:29:45 +0000224 bool "3: ERR"
225 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
226 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
227 MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3)
228 help
229 Error conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000230config DEFAULT_CONSOLE_LOGLEVEL_2
Myles Watson03646182009-10-16 19:29:45 +0000231 bool "2: CRIT"
232 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
233 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
234 MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\
235 MAXIMUM_CONSOLE_LOGLEVEL_2)
236 help
237 Critical conditions.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000238config DEFAULT_CONSOLE_LOGLEVEL_1
Myles Watson03646182009-10-16 19:29:45 +0000239 bool "1: ALERT"
240 depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
241 MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
242 MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\
243 MAXIMUM_CONSOLE_LOGLEVEL_2 || MAXIMUM_CONSOLE_LOGLEVEL_1)
244 help
245 Action must be taken immediately.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000246config DEFAULT_CONSOLE_LOGLEVEL_0
Myles Watson03646182009-10-16 19:29:45 +0000247 bool "0: EMERG"
248 help
249 System is unusable.
Uwe Hermann7fe41912009-10-11 13:35:24 +0000250
251endchoice
252
Patrick Georgi0588d192009-08-12 15:00:51 +0000253config DEFAULT_CONSOLE_LOGLEVEL
Uwe Hermann7fe41912009-10-11 13:35:24 +0000254 int
255 default 0 if DEFAULT_CONSOLE_LOGLEVEL_0
256 default 1 if DEFAULT_CONSOLE_LOGLEVEL_1
257 default 2 if DEFAULT_CONSOLE_LOGLEVEL_2
258 default 3 if DEFAULT_CONSOLE_LOGLEVEL_3
259 default 4 if DEFAULT_CONSOLE_LOGLEVEL_4
260 default 5 if DEFAULT_CONSOLE_LOGLEVEL_5
261 default 6 if DEFAULT_CONSOLE_LOGLEVEL_6
262 default 7 if DEFAULT_CONSOLE_LOGLEVEL_7
263 default 8 if DEFAULT_CONSOLE_LOGLEVEL_8
264 help
265 Map the log level config names to an integer.
Patrick Georgi0588d192009-08-12 15:00:51 +0000266
Myles Watsond73c1b52009-10-26 15:14:07 +0000267config CONSOLE_BTEXT
268 bool
269 default n
270
271config CONSOLE_SROM
272 bool
273 default n
274
275config CONSOLE_LOGBUF
276 bool
277 default n
Stefan Reinauerc719f1a2010-03-30 09:57:28 +0000278
279config NO_POST
280 bool "Don't show any POST codes"
281 default n
282
283config SERIAL_POST
284 bool "Show POST codes on the serial port console"
285 depends on CONSOLE_SERIAL8250 && !NO_POST
286 default n
287 help
288 If enabled, coreboot will additionally print POST codes (which are
289 usually displayed using a so-called "POST card" ISA/PCI/PCI-E
290 device) on the serial console.
291
292endmenu
293