Stefan Reinauer | 1b34226 | 2011-01-05 02:27:53 +0000 | [diff] [blame] | 1 | menu "Console" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 2 | |
Gabe Black | fbb11cf | 2013-06-06 00:21:20 -0700 | [diff] [blame] | 3 | config BOOTBLOCK_CONSOLE |
| 4 | bool "Enable early (bootblock) console output." |
Stefan Reinauer | d2f45c6 | 2013-06-19 13:42:00 -0700 | [diff] [blame] | 5 | depends on ARCH_ARMV7 |
| 6 | default n |
Gabe Black | fbb11cf | 2013-06-06 00:21:20 -0700 | [diff] [blame] | 7 | help |
| 8 | Use console during the bootblock if supported |
| 9 | |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 10 | config EARLY_CONSOLE |
| 11 | bool "Enable early (pre-RAM) console output." |
Kyösti Mälkki | da940c5 | 2013-07-31 20:52:04 +0300 | [diff] [blame] | 12 | default y if CACHE_AS_RAM |
Stefan Reinauer | d2f45c6 | 2013-06-19 13:42:00 -0700 | [diff] [blame] | 13 | default n |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 14 | help |
| 15 | Use console during early (pre-RAM) boot stages |
| 16 | |
Kyösti Mälkki | 361cd81 | 2013-08-12 23:29:57 +0300 | [diff] [blame] | 17 | config SQUELCH_EARLY_SMP |
| 18 | bool "Squelch AP CPUs from early console." |
| 19 | default y |
| 20 | depends on EARLY_CONSOLE |
| 21 | 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 Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 29 | config CONSOLE_SERIAL |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 30 | bool "Serial port console output" |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 31 | default y |
| 32 | help |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 33 | Send coreboot debug output to a serial port (should be one or more of |
| 34 | CONSOLE_SERIAL8250, CONSOLE_SERIAL8250MEM, CONSOLE_SERIAL_UART) |
David Hendricks | 6a503b6 | 2012-12-31 17:28:43 -0800 | [diff] [blame] | 35 | |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 36 | config CONSOLE_SERIAL8250 |
| 37 | bool "Serial port console output (I/O mapped, 8250-compatible)" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 38 | depends on CONSOLE_SERIAL |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 39 | depends on HAVE_UART_IO_MAPPED |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 40 | default y |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 41 | help |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 42 | Send coreboot debug output to an I/O mapped serial port console. |
| 43 | |
| 44 | config CONSOLE_SERIAL8250MEM |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 45 | bool "Serial port console output (memory mapped, 8250-compatible)" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 46 | depends on CONSOLE_SERIAL |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 47 | depends on HAVE_UART_MEMORY_MAPPED |
| 48 | help |
| 49 | Send coreboot debug output to a memory mapped serial port console. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 50 | |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 51 | config CONSOLE_SERIAL_UART |
| 52 | bool "Serial port console output (device-specific UART)" |
| 53 | depends on CONSOLE_SERIAL |
| 54 | depends on HAVE_UART_SPECIAL |
| 55 | default y |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 56 | help |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 57 | Send coreboot debug output to a device-specific serial port console. |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 58 | |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 59 | choice |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 60 | prompt "Serial port for 8250" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 61 | default CONSOLE_SERIAL_COM1 |
Myles Watson | 6bb3bdf | 2009-09-25 17:24:08 +0000 | [diff] [blame] | 62 | depends on CONSOLE_SERIAL8250 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 63 | |
| 64 | config CONSOLE_SERIAL_COM1 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 65 | bool "COM1/ttyS0, I/O port 0x3f8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 66 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 67 | Serial console on COM1/ttyS0 at I/O port 0x3f8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 68 | config CONSOLE_SERIAL_COM2 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 69 | bool "COM2/ttyS1, I/O port 0x2f8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 70 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 71 | Serial console on COM2/ttyS1 at I/O port 0x2f8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 72 | config CONSOLE_SERIAL_COM3 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 73 | bool "COM3/ttyS2, I/O port 0x3e8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 74 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 75 | Serial console on COM3/ttyS2 at I/O port 0x3e8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 76 | config CONSOLE_SERIAL_COM4 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 77 | bool "COM4/ttyS3, I/O port 0x2e8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 78 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 79 | Serial console on COM4/ttyS3 at I/O port 0x2e8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 80 | |
| 81 | endchoice |
| 82 | |
| 83 | config TTYS0_BASE |
| 84 | hex |
| 85 | depends on CONSOLE_SERIAL8250 |
| 86 | default 0x3f8 if CONSOLE_SERIAL_COM1 |
| 87 | default 0x2f8 if CONSOLE_SERIAL_COM2 |
| 88 | default 0x3e8 if CONSOLE_SERIAL_COM3 |
| 89 | default 0x2e8 if CONSOLE_SERIAL_COM4 |
| 90 | help |
| 91 | Map the COM port names to the respective I/O port. |
| 92 | |
| 93 | choice |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 94 | prompt "Baud rate" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 95 | default CONSOLE_SERIAL_115200 |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 96 | depends on CONSOLE_SERIAL |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 97 | |
| 98 | config CONSOLE_SERIAL_115200 |
| 99 | bool "115200" |
| 100 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 101 | Set serial port Baud rate to 115200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 102 | config CONSOLE_SERIAL_57600 |
| 103 | bool "57600" |
| 104 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 105 | Set serial port Baud rate to 57600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 106 | config CONSOLE_SERIAL_38400 |
| 107 | bool "38400" |
| 108 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 109 | Set serial port Baud rate to 38400. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 110 | config CONSOLE_SERIAL_19200 |
| 111 | bool "19200" |
| 112 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 113 | Set serial port Baud rate to 19200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 114 | config CONSOLE_SERIAL_9600 |
| 115 | bool "9600" |
| 116 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 117 | Set serial port Baud rate to 9600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 118 | |
| 119 | endchoice |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 120 | |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 121 | #FIXME(dhendrix): Change name to SERIAL_BAUD? (Stefan sayz: yes!!) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 122 | config TTYS0_BAUD |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 123 | int |
| 124 | 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 Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 130 | Map the Baud rates to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 131 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 132 | # TODO: Allow user-friendly selection of settings other than 8n1. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 133 | config TTYS0_LCS |
| 134 | int |
| 135 | default 3 |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 136 | depends on CONSOLE_SERIAL8250 || CONSOLE_SERIAL8250MEM |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 137 | |
Vladimir Serbinenko | 45988da | 2013-03-30 02:02:13 +0100 | [diff] [blame] | 138 | config SPKMODEM |
| 139 | bool "spkmodem (console on speaker) console output" |
| 140 | default n |
| 141 | help |
| 142 | Send coreboot debug output through speaker |
| 143 | |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 144 | config CONSOLE_USB |
| 145 | bool "USB dongle console output" |
| 146 | depends on USBDEBUG |
Kyösti Mälkki | 8101aa6 | 2013-08-15 16:27:06 +0300 | [diff] [blame] | 147 | default n |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 148 | help |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 149 | Send coreboot debug output to USB. |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 150 | |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 151 | Configuration for USB hardware is under menu Generic Drivers. |
Kyösti Mälkki | d2dac0a | 2013-08-23 23:33:16 +0300 | [diff] [blame] | 152 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 153 | # TODO: Deps? |
| 154 | # TODO: Improve description. |
Stefan Reinauer | abc0c85 | 2010-11-22 08:09:50 +0000 | [diff] [blame] | 155 | config ONBOARD_VGA_IS_PRIMARY |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 156 | bool "Use onboard VGA as primary video device" |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 157 | default n |
| 158 | help |
| 159 | If not selected, the last adapter found will be used. |
| 160 | |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 161 | config CONSOLE_NE2K |
| 162 | bool "Network console over NE2000 compatible Ethernet adapter" |
| 163 | default n |
| 164 | help |
| 165 | Send coreboot debug output to a Ethernet console, it works |
| 166 | same way as Linux netconsole, packets are received to UDP |
| 167 | port 6666 on IP/MAC specified with options bellow. |
| 168 | Use following netcat command: nc -u -l -p 6666 |
| 169 | |
| 170 | config CONSOLE_NE2K_DST_MAC |
| 171 | depends on CONSOLE_NE2K |
| 172 | string "Destination MAC address of remote system" |
| 173 | default "00:13:d4:76:a2:ac" |
| 174 | help |
| 175 | Type in either MAC address of logging system or MAC address |
| 176 | of the router. |
| 177 | |
| 178 | config CONSOLE_NE2K_DST_IP |
| 179 | depends on CONSOLE_NE2K |
| 180 | string "Destination IP of logging system" |
| 181 | default "10.0.1.27" |
| 182 | help |
| 183 | This is IP adress of the system running for example |
| 184 | netcat command to dump the packets. |
| 185 | |
| 186 | config CONSOLE_NE2K_SRC_IP |
| 187 | depends on CONSOLE_NE2K |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 188 | string "IP address of coreboot system" |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 189 | default "10.0.1.253" |
| 190 | help |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 191 | This is the IP of the coreboot system |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 192 | |
| 193 | config CONSOLE_NE2K_IO_PORT |
| 194 | depends on CONSOLE_NE2K |
| 195 | hex "NE2000 adapter fixed IO port address" |
| 196 | default 0xe00 |
| 197 | help |
| 198 | This is the IO port address for the IO port |
| 199 | on the card, please select some non-conflicting region, |
| 200 | 32 bytes of IO spaces will be used (and align on 32 bytes |
| 201 | boundary, qemu needs broader align) |
| 202 | |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 203 | config CONSOLE_CBMEM |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 204 | bool "Send console output to a CBMEM buffer" |
| 205 | default n |
| 206 | help |
| 207 | Enable this to save the console output in a CBMEM buffer. This would |
| 208 | allow to see coreboot console output from Linux space. |
| 209 | |
| 210 | config CONSOLE_CBMEM_BUFFER_SIZE |
| 211 | depends on CONSOLE_CBMEM |
| 212 | hex "Room allocated for console output in CBMEM" |
Stefan Reinauer | 1b632af | 2011-10-04 16:21:17 -0700 | [diff] [blame] | 213 | default 0x10000 |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 214 | help |
| 215 | Space allocated for console output storage in CBMEM. The default |
Stefan Reinauer | 1b632af | 2011-10-04 16:21:17 -0700 | [diff] [blame] | 216 | value (64K or 0x10000 bytes) is large enough to accommodate |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 217 | even the BIOS_SPEW level. |
| 218 | |
| 219 | config CONSOLE_CAR_BUFFER_SIZE |
| 220 | depends on CONSOLE_CBMEM |
Stefan Reinauer | 1b632af | 2011-10-04 16:21:17 -0700 | [diff] [blame] | 221 | hex "Room allocated for console output in Cache as RAM" |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 222 | default 0xc00 |
| 223 | help |
| 224 | Console is used before RAM is initialized. This is the room reserved |
| 225 | in the DCACHE based RAM to keep console output before it can be |
| 226 | saved in a CBMEM buffer. 3K bytes should be enough even for the |
| 227 | BIOS_SPEW level. |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 228 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 229 | config CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 230 | bool "QEMU debug console output" |
| 231 | depends on BOARD_EMULATION_QEMU_X86 |
| 232 | default y |
| 233 | help |
| 234 | Send coreboot debug output to QEMU's isa-debugcon device: |
| 235 | |
| 236 | qemu-system-x86_64 \ |
| 237 | -chardev file,id=debugcon,path=/dir/file.log \ |
| 238 | -device isa-debugcon,iobase=0x402,chardev=debugcon |
| 239 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 240 | config CONSOLE_QEMU_DEBUGCON_PORT |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 241 | hex "QEMU debug console port" |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 242 | depends on CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 243 | default 0x402 |
| 244 | |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 245 | choice |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 246 | prompt "Default console log level" |
| 247 | default DEFAULT_CONSOLE_LOGLEVEL_8 |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 248 | |
| 249 | config DEFAULT_CONSOLE_LOGLEVEL_8 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 250 | bool "8: SPEW" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 251 | help |
| 252 | Way too many details. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 253 | config DEFAULT_CONSOLE_LOGLEVEL_7 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 254 | bool "7: DEBUG" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 255 | help |
| 256 | Debug-level messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 257 | config DEFAULT_CONSOLE_LOGLEVEL_6 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 258 | bool "6: INFO" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 259 | help |
| 260 | Informational messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 261 | config DEFAULT_CONSOLE_LOGLEVEL_5 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 262 | bool "5: NOTICE" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 263 | help |
| 264 | Normal but significant conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 265 | config DEFAULT_CONSOLE_LOGLEVEL_4 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 266 | bool "4: WARNING" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 267 | help |
| 268 | Warning conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 269 | config DEFAULT_CONSOLE_LOGLEVEL_3 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 270 | bool "3: ERR" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 271 | help |
| 272 | Error conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 273 | config DEFAULT_CONSOLE_LOGLEVEL_2 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 274 | bool "2: CRIT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 275 | help |
| 276 | Critical conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 277 | config DEFAULT_CONSOLE_LOGLEVEL_1 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 278 | bool "1: ALERT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 279 | help |
| 280 | Action must be taken immediately. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 281 | config DEFAULT_CONSOLE_LOGLEVEL_0 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 282 | bool "0: EMERG" |
| 283 | help |
| 284 | System is unusable. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 285 | |
| 286 | endchoice |
| 287 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 288 | config DEFAULT_CONSOLE_LOGLEVEL |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 289 | int |
| 290 | default 0 if DEFAULT_CONSOLE_LOGLEVEL_0 |
| 291 | default 1 if DEFAULT_CONSOLE_LOGLEVEL_1 |
| 292 | default 2 if DEFAULT_CONSOLE_LOGLEVEL_2 |
| 293 | default 3 if DEFAULT_CONSOLE_LOGLEVEL_3 |
| 294 | default 4 if DEFAULT_CONSOLE_LOGLEVEL_4 |
| 295 | default 5 if DEFAULT_CONSOLE_LOGLEVEL_5 |
| 296 | default 6 if DEFAULT_CONSOLE_LOGLEVEL_6 |
| 297 | default 7 if DEFAULT_CONSOLE_LOGLEVEL_7 |
| 298 | default 8 if DEFAULT_CONSOLE_LOGLEVEL_8 |
| 299 | help |
| 300 | Map the log level config names to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 301 | |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 302 | config NO_POST |
| 303 | bool "Don't show any POST codes" |
| 304 | default n |
| 305 | |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 306 | config CMOS_POST |
| 307 | bool "Store post codes in CMOS for debugging" |
Stefan Reinauer | c2d5a16 | 2012-12-06 14:25:27 -0800 | [diff] [blame] | 308 | depends on !NO_POST && PC80_SYSTEM |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 309 | default n |
| 310 | help |
| 311 | If enabled, coreboot will store post codes in CMOS and switch between |
| 312 | two offsets on each boot so the last post code in the previous boot |
| 313 | can be retrieved. This uses 3 bytes of CMOS. |
| 314 | |
| 315 | config CMOS_POST_OFFSET |
| 316 | hex "Offset into CMOS to store POST codes" |
| 317 | depends on CMOS_POST |
| 318 | default 0 |
| 319 | help |
| 320 | If CMOS_POST is enabled then an offset into CMOS must be provided. |
| 321 | If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value |
| 322 | defined in the mainboard option table. |
| 323 | |
Duncan Laurie | d5686fe | 2013-06-10 10:21:41 -0700 | [diff] [blame] | 324 | config CMOS_POST_EXTRA |
| 325 | bool "Store extra logging info into CMOS" |
| 326 | depends on CMOS_POST |
| 327 | default n |
| 328 | help |
| 329 | This will enable extra logging of work that happens between post |
| 330 | codes into CMOS for debug. This uses an additional 8 bytes of CMOS. |
| 331 | |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 332 | config POST_IO |
| 333 | bool "Show POST codes on the debug console" |
| 334 | depends on !NO_POST |
| 335 | default n |
| 336 | help |
| 337 | If enabled, coreboot will additionally print POST codes (which are |
| 338 | usually displayed using a so-called "POST card" ISA/PCI/PCI-E |
| 339 | device) on the debug console. |
| 340 | |
| 341 | config POST_DEVICE |
| 342 | bool "Send POST codes to an external device" |
| 343 | depends on !NO_POST |
| 344 | default y |
| 345 | |
| 346 | choice |
| 347 | prompt "Device to send POST codes to" |
| 348 | depends on POST_DEVICE |
| 349 | default POST_DEVICE_NONE |
| 350 | |
| 351 | config POST_DEVICE_NONE |
| 352 | bool "None" |
| 353 | config POST_DEVICE_LPC |
| 354 | bool "LPC" |
| 355 | config POST_DEVICE_PCI_PCIE |
| 356 | bool "PCI/PCIe" |
| 357 | endchoice |
| 358 | |
| 359 | config POST_IO |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 360 | bool "Send POST codes to an IO port" |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 361 | depends on PC80_SYSTEM && !NO_POST |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 362 | default y |
| 363 | help |
| 364 | If enabled, POST codes will be written to an IO port. |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 365 | |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 366 | config POST_IO_PORT |
| 367 | depends on POST_IO |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 368 | hex "IO port for POST codes" |
| 369 | default 0x80 |
| 370 | help |
| 371 | POST codes on x86 are typically written to the LPC bus on port |
| 372 | 0x80. However, it may be desireable to change the port number |
| 373 | depending on the presence of coprocessors/microcontrollers or if the |
| 374 | platform does not support IO in the conventional x86 manner. |
| 375 | |
| 376 | endmenu |