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