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