Fix the build, CONFIG_USBDEBUG must always be defined (trivial).
[coreboot.git] / src / console / Kconfig
1 menu "Console options"
2 # TODO: Rename to SERIAL_CONSOLE once Kconfig transition is complete.
3 config CONSOLE_SERIAL8250
4         bool "Serial port console output"
5         default y
6         help
7           Send coreboot debug output to a serial port console.
8
9 choice
10         prompt "Serial port"
11         default CONSOLE_SERIAL_COM1
12         depends on CONSOLE_SERIAL8250
13
14 config CONSOLE_SERIAL_COM1
15         bool "COM1/ttyS0, I/O port 0x3f8"
16         help
17           Serial console on COM1/ttyS0 at I/O port 0x3f8.
18 config CONSOLE_SERIAL_COM2
19         bool "COM2/ttyS1, I/O port 0x2f8"
20         help
21           Serial console on COM2/ttyS1 at I/O port 0x2f8.
22 config CONSOLE_SERIAL_COM3
23         bool "COM3/ttyS2, I/O port 0x3e8"
24         help
25           Serial console on COM3/ttyS2 at I/O port 0x3e8.
26 config CONSOLE_SERIAL_COM4
27         bool "COM4/ttyS3, I/O port 0x2e8"
28         help
29           Serial console on COM4/ttyS3 at I/O port 0x2e8.
30
31 endchoice
32
33 config TTYS0_BASE
34         hex
35         depends on CONSOLE_SERIAL8250
36         default 0x3f8 if CONSOLE_SERIAL_COM1
37         default 0x2f8 if CONSOLE_SERIAL_COM2
38         default 0x3e8 if CONSOLE_SERIAL_COM3
39         default 0x2e8 if CONSOLE_SERIAL_COM4
40         help
41           Map the COM port names to the respective I/O port.
42
43 choice
44         prompt "Baud rate"
45         default CONSOLE_SERIAL_115200
46         depends on CONSOLE_SERIAL8250
47
48 config CONSOLE_SERIAL_115200
49         bool "115200"
50         help
51           Set serial port Baud rate to 115200.
52 config CONSOLE_SERIAL_57600
53         bool "57600"
54         help
55           Set serial port Baud rate to 57600.
56 config CONSOLE_SERIAL_38400
57         bool "38400"
58         help
59           Set serial port Baud rate to 38400.
60 config CONSOLE_SERIAL_19200
61         bool "19200"
62         help
63           Set serial port Baud rate to 19200.
64 config CONSOLE_SERIAL_9600
65         bool "9600"
66         help
67           Set serial port Baud rate to 9600.
68
69 endchoice
70
71 config TTYS0_BAUD
72         int
73         default 115200 if CONSOLE_SERIAL_115200
74         default 57600 if CONSOLE_SERIAL_57600
75         default 38400 if CONSOLE_SERIAL_38400
76         default 19200 if CONSOLE_SERIAL_19200
77         default 9600 if CONSOLE_SERIAL_9600
78         help
79           Map the Baud rates to an integer.
80
81 # TODO: Allow user-friendly selection of settings other than 8n1.
82 config TTYS0_LCS
83         int
84         default 3
85         depends on CONSOLE_SERIAL8250
86
87 # Use "select HAVE_USBDEBUG" on southbridges which have Debug Port code.
88 config HAVE_USBDEBUG
89         def_bool n
90
91 config USBDEBUG
92         def_bool n
93
94 config USBDEBUG
95         bool "USB 2.0 EHCI debug dongle support"
96         default n
97         depends on HAVE_USBDEBUG
98         help
99           This option allows you to use a so-called USB EHCI Debug device
100           (such as the Ajays NET20DC, AMIDebug RX, or a system using the
101           Linux "EHCI Debug Device gadget" driver found in recent kernel)
102           to retrieve the coreboot debug messages (instead, or in addition
103           to, a serial port).
104
105           This feature is NOT supported on all chipsets in coreboot!
106
107           It also requires a USB2 controller which supports the EHCI
108           Debug Port capability.
109
110           See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list
111           of supported controllers.
112
113           If unsure, say N.
114
115 config CONSOLE_VGA
116         bool "Use VGA console once initialized"
117         default n
118
119 # TODO: Deps?
120 # TODO: Improve description.
121 config CONSOLE_VGA_ONBOARD_AT_FIRST
122         bool "Use onboard VGA as primary video device"
123         default n
124         help
125           If not selected, the last adapter found will be used.
126
127 config CONSOLE_NE2K
128         bool "Network console over NE2000 compatible Ethernet adapter"
129         default n
130         help
131           Send coreboot debug output to a Ethernet console, it works
132           same way as Linux netconsole, packets are received to UDP
133           port 6666 on IP/MAC specified with options bellow.
134           Use following netcat command: nc -u -l -p 6666
135
136 config CONSOLE_NE2K_DST_MAC
137         depends on CONSOLE_NE2K
138         string "Destination MAC address of remote system"
139         default "00:13:d4:76:a2:ac"
140         help
141           Type in either MAC address of logging system or MAC address
142           of the router.
143
144 config CONSOLE_NE2K_DST_IP
145         depends on CONSOLE_NE2K
146         string "Destination IP of logging system"
147         default "10.0.1.27"
148         help
149           This is IP adress of the system running for example
150           netcat command to dump the packets.
151
152 config CONSOLE_NE2K_SRC_IP
153         depends on CONSOLE_NE2K
154         string "IP address of coreboot system"
155         default "10.0.1.253"
156         help
157           This is the IP of the coreboot system
158
159 config CONSOLE_NE2K_IO_PORT
160         depends on CONSOLE_NE2K
161         hex "NE2000 adapter fixed IO port address"
162         default 0xe00
163         help
164           This is the IO port address for the IO port
165           on the card, please select some non-conflicting region,
166           32 bytes of IO spaces will be used (and align on 32 bytes
167           boundary, qemu needs broader align)
168
169
170 choice
171         prompt "Maximum console log level"
172         default MAXIMUM_CONSOLE_LOGLEVEL_8
173
174 config MAXIMUM_CONSOLE_LOGLEVEL_8
175         bool "8: SPEW"
176         help
177           Way too many details.
178 config MAXIMUM_CONSOLE_LOGLEVEL_7
179         bool "7: DEBUG"
180         help
181           Debug-level messages.
182 config MAXIMUM_CONSOLE_LOGLEVEL_6
183         bool "6: INFO"
184         help
185           Informational messages.
186 config MAXIMUM_CONSOLE_LOGLEVEL_5
187         bool "5: NOTICE"
188         help
189           Normal but significant conditions.
190 config MAXIMUM_CONSOLE_LOGLEVEL_4
191         bool "4: WARNING"
192         help
193           Warning conditions.
194 config MAXIMUM_CONSOLE_LOGLEVEL_3
195         bool "3: ERR"
196         help
197           Error conditions.
198 config MAXIMUM_CONSOLE_LOGLEVEL_2
199         bool "2: CRIT"
200         help
201           Critical conditions.
202 config MAXIMUM_CONSOLE_LOGLEVEL_1
203         bool "1: ALERT"
204         help
205           Action must be taken immediately.
206 config MAXIMUM_CONSOLE_LOGLEVEL_0
207         bool "0: EMERG"
208         help
209           System is unusable.
210
211 endchoice
212
213 config MAXIMUM_CONSOLE_LOGLEVEL
214         int
215         default 0 if MAXIMUM_CONSOLE_LOGLEVEL_0
216         default 1 if MAXIMUM_CONSOLE_LOGLEVEL_1
217         default 2 if MAXIMUM_CONSOLE_LOGLEVEL_2
218         default 3 if MAXIMUM_CONSOLE_LOGLEVEL_3
219         default 4 if MAXIMUM_CONSOLE_LOGLEVEL_4
220         default 5 if MAXIMUM_CONSOLE_LOGLEVEL_5
221         default 6 if MAXIMUM_CONSOLE_LOGLEVEL_6
222         default 7 if MAXIMUM_CONSOLE_LOGLEVEL_7
223         default 8 if MAXIMUM_CONSOLE_LOGLEVEL_8
224         help
225           Map the log level config names to an integer.
226
227 choice
228         prompt "Default console log level"
229         default DEFAULT_CONSOLE_LOGLEVEL_8
230
231 config DEFAULT_CONSOLE_LOGLEVEL_8
232         bool "8: SPEW"
233         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8)
234         help
235           Way too many details.
236 config DEFAULT_CONSOLE_LOGLEVEL_7
237         bool "7: DEBUG"
238         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7)
239         help
240           Debug-level messages.
241 config DEFAULT_CONSOLE_LOGLEVEL_6
242         bool "6: INFO"
243         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
244                     MAXIMUM_CONSOLE_LOGLEVEL_6)
245         help
246           Informational messages.
247 config DEFAULT_CONSOLE_LOGLEVEL_5
248         bool "5: NOTICE"
249         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
250                     MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5)
251         help
252           Normal but significant conditions.
253 config DEFAULT_CONSOLE_LOGLEVEL_4
254         bool "4: WARNING"
255         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
256                     MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
257                     MAXIMUM_CONSOLE_LOGLEVEL_4)
258         help
259           Warning conditions.
260 config DEFAULT_CONSOLE_LOGLEVEL_3
261         bool "3: ERR"
262         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
263                     MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
264                     MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3)
265         help
266           Error conditions.
267 config DEFAULT_CONSOLE_LOGLEVEL_2
268         bool "2: CRIT"
269         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
270                     MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
271                     MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\
272                     MAXIMUM_CONSOLE_LOGLEVEL_2)
273         help
274           Critical conditions.
275 config DEFAULT_CONSOLE_LOGLEVEL_1
276         bool "1: ALERT"
277         depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\
278                     MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\
279                     MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\
280                     MAXIMUM_CONSOLE_LOGLEVEL_2 || MAXIMUM_CONSOLE_LOGLEVEL_1)
281         help
282           Action must be taken immediately.
283 config DEFAULT_CONSOLE_LOGLEVEL_0
284         bool "0: EMERG"
285         help
286           System is unusable.
287
288 endchoice
289
290 config DEFAULT_CONSOLE_LOGLEVEL
291         int
292         default 0 if DEFAULT_CONSOLE_LOGLEVEL_0
293         default 1 if DEFAULT_CONSOLE_LOGLEVEL_1
294         default 2 if DEFAULT_CONSOLE_LOGLEVEL_2
295         default 3 if DEFAULT_CONSOLE_LOGLEVEL_3
296         default 4 if DEFAULT_CONSOLE_LOGLEVEL_4
297         default 5 if DEFAULT_CONSOLE_LOGLEVEL_5
298         default 6 if DEFAULT_CONSOLE_LOGLEVEL_6
299         default 7 if DEFAULT_CONSOLE_LOGLEVEL_7
300         default 8 if DEFAULT_CONSOLE_LOGLEVEL_8
301         help
302           Map the log level config names to an integer.
303
304 config CONSOLE_BTEXT
305         bool
306         default n
307
308 config CONSOLE_SROM
309         bool
310         default n
311
312 config CONSOLE_LOGBUF
313         bool
314         default n
315
316 config NO_POST
317         bool "Don't show any POST codes"
318         default n
319
320 config SERIAL_POST
321         bool "Show POST codes on the serial port console"
322         depends on CONSOLE_SERIAL8250 && !NO_POST
323         default n
324         help
325           If enabled, coreboot will additionally print POST codes (which are
326           usually displayed using a so-called "POST card" ISA/PCI/PCI-E
327           device) on the serial console.
328
329 endmenu
330