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." |
Alexandru Gagniuc | ee464b1 | 2015-10-02 18:01:18 -0700 | [diff] [blame] | 5 | depends on C_ENVIRONMENT_BOOTBLOCK |
Stefan Reinauer | d2f45c6 | 2013-06-19 13:42:00 -0700 | [diff] [blame] | 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 | |
Lee Leahy | 049b462 | 2016-07-31 11:53:28 -0700 | [diff] [blame] | 10 | config POSTCAR_CONSOLE |
| 11 | bool "Enable console output during postcar." |
| 12 | depends on POSTCAR_STAGE |
| 13 | default n |
| 14 | help |
| 15 | Use console during the postcar if supported |
| 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 |
Lee Leahy | f2ad50f | 2016-02-08 16:19:56 -0800 | [diff] [blame] | 20 | depends on SMP |
Kyösti Mälkki | 361cd81 | 2013-08-12 23:29:57 +0300 | [diff] [blame] | 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 | |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 51 | config UART_FOR_CONSOLE |
Kyösti Mälkki | d540377 | 2014-05-01 00:02:43 +0300 | [diff] [blame] | 52 | int "Index for UART port to use for console" |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 53 | default 0 |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 54 | help |
| 55 | Select an I/O port to use for serial console: |
| 56 | 0 = 0x3f8, 1 = 0x2f8, 2 = 0x3e8, 3 = 0x2e8 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 57 | |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 58 | # FIXME: Early programming in romstage is incorrect as we should |
| 59 | # program different LDN to actually change the physical port. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 60 | config TTYS0_BASE |
| 61 | hex |
Gabe Black | 77ffa0d | 2013-09-30 21:25:49 -0700 | [diff] [blame] | 62 | depends on DRIVERS_UART |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 63 | default 0x3f8 if UART_FOR_CONSOLE = 0 |
| 64 | default 0x2f8 if UART_FOR_CONSOLE = 1 |
| 65 | default 0x3e8 if UART_FOR_CONSOLE = 2 |
| 66 | default 0x2e8 if UART_FOR_CONSOLE = 3 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 67 | help |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 68 | Map the COM port number to the respective I/O port. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 69 | |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 70 | comment "Serial port base address = 0x3f8" |
| 71 | depends on UART_FOR_CONSOLE = 0 |
| 72 | comment "Serial port base address = 0x2f8" |
| 73 | depends on UART_FOR_CONSOLE = 1 |
| 74 | comment "Serial port base address = 0x3e8" |
| 75 | depends on UART_FOR_CONSOLE = 2 |
| 76 | comment "Serial port base address = 0x2e8" |
| 77 | depends on UART_FOR_CONSOLE = 3 |
| 78 | |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 79 | choice |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 80 | prompt "Baud rate" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 81 | default CONSOLE_SERIAL_115200 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 82 | |
Lee Leahy | cda71b8 | 2016-02-20 05:39:10 -0800 | [diff] [blame] | 83 | config CONSOLE_SERIAL_921600 |
| 84 | bool "921600" |
| 85 | help |
| 86 | Set serial port Baud rate to 921600. |
| 87 | config CONSOLE_SERIAL_460800 |
| 88 | bool "460800" |
| 89 | help |
| 90 | Set serial port Baud rate to 460800. |
| 91 | config CONSOLE_SERIAL_230400 |
| 92 | bool "230400" |
| 93 | help |
| 94 | Set serial port Baud rate to 230400. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 95 | config CONSOLE_SERIAL_115200 |
| 96 | bool "115200" |
| 97 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 98 | Set serial port Baud rate to 115200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 99 | config CONSOLE_SERIAL_57600 |
| 100 | bool "57600" |
| 101 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 102 | Set serial port Baud rate to 57600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 103 | config CONSOLE_SERIAL_38400 |
| 104 | bool "38400" |
| 105 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 106 | Set serial port Baud rate to 38400. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 107 | config CONSOLE_SERIAL_19200 |
| 108 | bool "19200" |
| 109 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 110 | Set serial port Baud rate to 19200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 111 | config CONSOLE_SERIAL_9600 |
| 112 | bool "9600" |
| 113 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 114 | Set serial port Baud rate to 9600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 115 | |
| 116 | endchoice |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 117 | |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 118 | #FIXME(dhendrix): Change name to SERIAL_BAUD? (Stefan sayz: yes!!) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 119 | config TTYS0_BAUD |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 120 | int |
Lee Leahy | cda71b8 | 2016-02-20 05:39:10 -0800 | [diff] [blame] | 121 | default 921600 if CONSOLE_SERIAL_921600 |
| 122 | default 460800 if CONSOLE_SERIAL_460800 |
| 123 | default 230400 if CONSOLE_SERIAL_230400 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 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 |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 136 | depends on DRIVERS_UART_8250IO || DRIVERS_UART_8250MEM |
| 137 | |
| 138 | endif # CONSOLE_SERIAL |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 139 | |
Vladimir Serbinenko | 45988da | 2013-03-30 02:02:13 +0100 | [diff] [blame] | 140 | config SPKMODEM |
| 141 | bool "spkmodem (console on speaker) console output" |
| 142 | default n |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 143 | depends on ARCH_X86 |
Vladimir Serbinenko | 45988da | 2013-03-30 02:02:13 +0100 | [diff] [blame] | 144 | help |
| 145 | Send coreboot debug output through speaker |
| 146 | |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 147 | config CONSOLE_USB |
| 148 | bool "USB dongle console output" |
| 149 | depends on USBDEBUG |
Kyösti Mälkki | 8101aa6 | 2013-08-15 16:27:06 +0300 | [diff] [blame] | 150 | default n |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 151 | help |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 152 | Send coreboot debug output to USB. |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 153 | |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 154 | Configuration for USB hardware is under menu Generic Drivers. |
Kyösti Mälkki | d2dac0a | 2013-08-23 23:33:16 +0300 | [diff] [blame] | 155 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 156 | # TODO: Deps? |
| 157 | # TODO: Improve description. |
Stefan Reinauer | abc0c85 | 2010-11-22 08:09:50 +0000 | [diff] [blame] | 158 | config ONBOARD_VGA_IS_PRIMARY |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 159 | bool "Use onboard VGA as primary video device" |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 160 | default n |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 161 | depends on PCI |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 162 | help |
| 163 | If not selected, the last adapter found will be used. |
| 164 | |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 165 | config CONSOLE_NE2K |
| 166 | bool "Network console over NE2000 compatible Ethernet adapter" |
| 167 | default n |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 168 | depends on PCI |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 169 | help |
| 170 | Send coreboot debug output to a Ethernet console, it works |
| 171 | same way as Linux netconsole, packets are received to UDP |
| 172 | port 6666 on IP/MAC specified with options bellow. |
| 173 | Use following netcat command: nc -u -l -p 6666 |
| 174 | |
| 175 | config CONSOLE_NE2K_DST_MAC |
| 176 | depends on CONSOLE_NE2K |
| 177 | string "Destination MAC address of remote system" |
| 178 | default "00:13:d4:76:a2:ac" |
| 179 | help |
| 180 | Type in either MAC address of logging system or MAC address |
| 181 | of the router. |
| 182 | |
| 183 | config CONSOLE_NE2K_DST_IP |
| 184 | depends on CONSOLE_NE2K |
| 185 | string "Destination IP of logging system" |
| 186 | default "10.0.1.27" |
| 187 | help |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 188 | This is IP address of the system running for example |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 189 | netcat command to dump the packets. |
| 190 | |
| 191 | config CONSOLE_NE2K_SRC_IP |
| 192 | depends on CONSOLE_NE2K |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 193 | string "IP address of coreboot system" |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 194 | default "10.0.1.253" |
| 195 | help |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 196 | This is the IP of the coreboot system |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 197 | |
| 198 | config CONSOLE_NE2K_IO_PORT |
| 199 | depends on CONSOLE_NE2K |
| 200 | hex "NE2000 adapter fixed IO port address" |
| 201 | default 0xe00 |
| 202 | help |
| 203 | This is the IO port address for the IO port |
| 204 | on the card, please select some non-conflicting region, |
| 205 | 32 bytes of IO spaces will be used (and align on 32 bytes |
| 206 | boundary, qemu needs broader align) |
| 207 | |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 208 | config CONSOLE_CBMEM |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 209 | bool "Send console output to a CBMEM buffer" |
Paul Menzel | 60ef456 | 2014-03-08 10:46:52 +0100 | [diff] [blame] | 210 | default y |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 211 | help |
| 212 | Enable this to save the console output in a CBMEM buffer. This would |
| 213 | allow to see coreboot console output from Linux space. |
| 214 | |
Kyösti Mälkki | 8659e40 | 2014-12-21 08:55:47 +0200 | [diff] [blame] | 215 | if CONSOLE_CBMEM |
| 216 | |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 217 | config CONSOLE_CBMEM_BUFFER_SIZE |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 218 | hex "Room allocated for console output in CBMEM" |
Vladimir Serbinenko | eb67a04 | 2014-09-13 20:55:58 +0200 | [diff] [blame] | 219 | default 0x20000 |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 220 | help |
| 221 | Space allocated for console output storage in CBMEM. The default |
Vladimir Serbinenko | eb67a04 | 2014-09-13 20:55:58 +0200 | [diff] [blame] | 222 | value (128K or 0x20000 bytes) is large enough to accommodate |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 223 | even the BIOS_SPEW level. |
| 224 | |
Vadim Bendebury | 6e20e2f | 2015-04-10 18:04:04 -0700 | [diff] [blame] | 225 | config CONSOLE_CBMEM_DUMP_TO_UART |
| 226 | depends on !CONSOLE_SERIAL |
| 227 | bool "Dump CBMEM console on resets" |
| 228 | default n |
| 229 | help |
| 230 | Enable this to have CBMEM console buffer contents dumped on the |
| 231 | serial output in case serial console is disabled and the device |
| 232 | resets itself while trying to boot the payload. |
| 233 | |
Kyösti Mälkki | 8659e40 | 2014-12-21 08:55:47 +0200 | [diff] [blame] | 234 | endif |
| 235 | |
Youness Alaoui | c4b4ff3 | 2017-05-11 10:36:29 -0400 | [diff] [blame] | 236 | config CONSOLE_SPI_FLASH |
| 237 | bool "SPI Flash console output" |
| 238 | default n |
| 239 | select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if !COMMON_CBFS_SPI_WRAPPER |
| 240 | help |
| 241 | Send coreboot debug output to the SPI Flash in the FMAP CONSOLE area |
| 242 | |
| 243 | This option can cause premature wear on the SPI flash and should not |
| 244 | be used as a normal means of debugging. It is only to be enabled and |
| 245 | used when porting a new motherboard which has no other console |
| 246 | available (no UART, no POST, no cbmem access(non bootable)). Since |
| 247 | a non bootable machine will require the use of an external SPI Flash |
| 248 | programmer, the developer can grab the console log at the same time. |
| 249 | |
| 250 | The flash console will not be erased on reboot, so once it is full, |
| 251 | the flashconsole driver will stop writing to it. This is to avoid |
| 252 | wear on the flash, and to avoid erasing sectors (which may freeze |
| 253 | the SPI controller on skylake). |
| 254 | |
| 255 | The 'CONSOLE' area can be extracted from the FMAP with : |
| 256 | cbfstool rom.bin read -r CONSOLE -f console.log |
| 257 | |
| 258 | config CONSOLE_SPI_FLASH_BUFFER_SIZE |
| 259 | hex "Room allocated for console output in FMAP" |
| 260 | default 0x20000 |
| 261 | depends on CONSOLE_SPI_FLASH |
| 262 | help |
| 263 | Space allocated for console output storage in FMAP. The default |
| 264 | value (128K or 0x20000 bytes) is large enough to accommodate |
| 265 | even the BIOS_SPEW level. |
| 266 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 267 | config CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 268 | bool "QEMU debug console output" |
| 269 | depends on BOARD_EMULATION_QEMU_X86 |
| 270 | default y |
| 271 | help |
| 272 | Send coreboot debug output to QEMU's isa-debugcon device: |
| 273 | |
| 274 | qemu-system-x86_64 \ |
| 275 | -chardev file,id=debugcon,path=/dir/file.log \ |
| 276 | -device isa-debugcon,iobase=0x402,chardev=debugcon |
| 277 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 278 | config CONSOLE_QEMU_DEBUGCON_PORT |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 279 | hex "QEMU debug console port" |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 280 | depends on CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 281 | default 0x402 |
| 282 | |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 283 | config SPI_CONSOLE |
| 284 | bool "SPI debug console output" |
| 285 | depends on HAVE_SPI_CONSOLE_SUPPORT && !DEBUG_SPI_FLASH |
| 286 | help |
| 287 | Enable support for the debug console on the Dediprog EM100Pro. |
| 288 | This is currently working only in ramstage due to how the spi |
| 289 | drivers are written. |
| 290 | |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 291 | choice |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 292 | prompt "Default console log level" |
| 293 | default DEFAULT_CONSOLE_LOGLEVEL_8 |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 294 | |
| 295 | config DEFAULT_CONSOLE_LOGLEVEL_8 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 296 | bool "8: SPEW" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 297 | help |
| 298 | Way too many details. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 299 | config DEFAULT_CONSOLE_LOGLEVEL_7 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 300 | bool "7: DEBUG" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 301 | help |
| 302 | Debug-level messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 303 | config DEFAULT_CONSOLE_LOGLEVEL_6 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 304 | bool "6: INFO" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 305 | help |
| 306 | Informational messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 307 | config DEFAULT_CONSOLE_LOGLEVEL_5 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 308 | bool "5: NOTICE" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 309 | help |
| 310 | Normal but significant conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 311 | config DEFAULT_CONSOLE_LOGLEVEL_4 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 312 | bool "4: WARNING" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 313 | help |
| 314 | Warning conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 315 | config DEFAULT_CONSOLE_LOGLEVEL_3 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 316 | bool "3: ERR" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 317 | help |
| 318 | Error conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 319 | config DEFAULT_CONSOLE_LOGLEVEL_2 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 320 | bool "2: CRIT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 321 | help |
| 322 | Critical conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 323 | config DEFAULT_CONSOLE_LOGLEVEL_1 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 324 | bool "1: ALERT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 325 | help |
| 326 | Action must be taken immediately. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 327 | config DEFAULT_CONSOLE_LOGLEVEL_0 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 328 | bool "0: EMERG" |
| 329 | help |
| 330 | System is unusable. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 331 | |
| 332 | endchoice |
| 333 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 334 | config DEFAULT_CONSOLE_LOGLEVEL |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 335 | int |
| 336 | default 0 if DEFAULT_CONSOLE_LOGLEVEL_0 |
| 337 | default 1 if DEFAULT_CONSOLE_LOGLEVEL_1 |
| 338 | default 2 if DEFAULT_CONSOLE_LOGLEVEL_2 |
| 339 | default 3 if DEFAULT_CONSOLE_LOGLEVEL_3 |
| 340 | default 4 if DEFAULT_CONSOLE_LOGLEVEL_4 |
| 341 | default 5 if DEFAULT_CONSOLE_LOGLEVEL_5 |
| 342 | default 6 if DEFAULT_CONSOLE_LOGLEVEL_6 |
| 343 | default 7 if DEFAULT_CONSOLE_LOGLEVEL_7 |
| 344 | default 8 if DEFAULT_CONSOLE_LOGLEVEL_8 |
| 345 | help |
| 346 | Map the log level config names to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 347 | |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 348 | config NO_POST |
| 349 | bool "Don't show any POST codes" |
| 350 | default n |
| 351 | |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 352 | config CMOS_POST |
| 353 | bool "Store post codes in CMOS for debugging" |
Stefan Reinauer | c2d5a16 | 2012-12-06 14:25:27 -0800 | [diff] [blame] | 354 | depends on !NO_POST && PC80_SYSTEM |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 355 | default n |
| 356 | help |
| 357 | If enabled, coreboot will store post codes in CMOS and switch between |
| 358 | two offsets on each boot so the last post code in the previous boot |
| 359 | can be retrieved. This uses 3 bytes of CMOS. |
| 360 | |
| 361 | config CMOS_POST_OFFSET |
| 362 | hex "Offset into CMOS to store POST codes" |
| 363 | depends on CMOS_POST |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 364 | default 0x0 |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 365 | help |
| 366 | If CMOS_POST is enabled then an offset into CMOS must be provided. |
| 367 | If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value |
| 368 | defined in the mainboard option table. |
| 369 | |
Duncan Laurie | d5686fe | 2013-06-10 10:21:41 -0700 | [diff] [blame] | 370 | config CMOS_POST_EXTRA |
| 371 | bool "Store extra logging info into CMOS" |
| 372 | depends on CMOS_POST |
| 373 | default n |
| 374 | help |
| 375 | This will enable extra logging of work that happens between post |
| 376 | codes into CMOS for debug. This uses an additional 8 bytes of CMOS. |
| 377 | |
Daniele Forsi | ad488d2 | 2014-07-30 12:23:35 +0200 | [diff] [blame] | 378 | config CONSOLE_POST |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 379 | bool "Show POST codes on the debug console" |
| 380 | depends on !NO_POST |
| 381 | default n |
| 382 | help |
| 383 | If enabled, coreboot will additionally print POST codes (which are |
| 384 | usually displayed using a so-called "POST card" ISA/PCI/PCI-E |
| 385 | device) on the debug console. |
| 386 | |
| 387 | config POST_DEVICE |
| 388 | bool "Send POST codes to an external device" |
| 389 | depends on !NO_POST |
| 390 | default y |
| 391 | |
| 392 | choice |
| 393 | prompt "Device to send POST codes to" |
| 394 | depends on POST_DEVICE |
| 395 | default POST_DEVICE_NONE |
| 396 | |
| 397 | config POST_DEVICE_NONE |
| 398 | bool "None" |
| 399 | config POST_DEVICE_LPC |
| 400 | bool "LPC" |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 401 | depends on PCI |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 402 | config POST_DEVICE_PCI_PCIE |
| 403 | bool "PCI/PCIe" |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 404 | depends on PCI |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 405 | endchoice |
| 406 | |
| 407 | config POST_IO |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 408 | bool "Send POST codes to an IO port" |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 409 | depends on PC80_SYSTEM && !NO_POST |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 410 | default y |
| 411 | help |
| 412 | If enabled, POST codes will be written to an IO port. |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 413 | |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 414 | config POST_IO_PORT |
| 415 | depends on POST_IO |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 416 | hex "IO port for POST codes" |
| 417 | default 0x80 |
| 418 | help |
| 419 | POST codes on x86 are typically written to the LPC bus on port |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 420 | 0x80. However, it may be desirable to change the port number |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 421 | depending on the presence of coprocessors/microcontrollers or if the |
| 422 | platform does not support IO in the conventional x86 manner. |
| 423 | |
Martin Roth | 1455437 | 2015-11-12 14:02:42 -0700 | [diff] [blame] | 424 | config NO_EARLY_BOOTBLOCK_POSTCODES |
| 425 | def_bool n |
| 426 | help |
| 427 | Some chipsets require that the routing for the port 80h POST |
| 428 | code be configured before any POST codes are sent out. |
| 429 | This can be done in the boot block, but there are a couple of |
| 430 | POST codes that go out before the chipset's bootblock initialization |
| 431 | can happen. This option suppresses those POST codes. |
| 432 | |
Nico Huber | c83239e | 2016-10-05 17:46:49 +0200 | [diff] [blame] | 433 | config HWBASE_DEBUG_CB |
| 434 | bool |
| 435 | default y if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 436 | default n |
| 437 | |
| 438 | config HWBASE_DEBUG_NULL |
| 439 | def_bool y |
| 440 | depends on !HWBASE_DEBUG_CB |
| 441 | |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 442 | endmenu |