summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2015-11-19 11:40:43 -0700
committerMartin Roth <martinroth@google.com>2015-11-21 03:42:33 +0100
commitac76ed9998f95cb54d3862ce491402038340e9aa (patch)
tree0423ba7f44433780f4fbd805b5052bc06360d686
parentb50d8fbb6e769df782d5bc3c156cb82d3f646e86 (diff)
downloadcoreboot-ac76ed9998f95cb54d3862ce491402038340e9aa.tar.xz
console: Add help for serial IO port selection
Add help and a comment about the serial IO port selection to give the user better feedback when a port index is selected. Change-Id: I4c1614be51aee0286308fbc5c24554e218120bf7 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: http://review.coreboot.org/12487 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--src/console/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index d81563794b..3130ee9534 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -43,6 +43,9 @@ if CONSOLE_SERIAL
config UART_FOR_CONSOLE
int "Index for UART port to use for console"
default 0
+ help
+ Select an I/O port to use for serial console:
+ 0 = 0x3f8, 1 = 0x2f8, 2 = 0x3e8, 3 = 0x2e8
# FIXME: Early programming in romstage is incorrect as we should
# program different LDN to actually change the physical port.
@@ -56,6 +59,15 @@ config TTYS0_BASE
help
Map the COM port number to the respective I/O port.
+comment "Serial port base address = 0x3f8"
+depends on UART_FOR_CONSOLE = 0
+comment "Serial port base address = 0x2f8"
+depends on UART_FOR_CONSOLE = 1
+comment "Serial port base address = 0x3e8"
+depends on UART_FOR_CONSOLE = 2
+comment "Serial port base address = 0x2e8"
+depends on UART_FOR_CONSOLE = 3
+
choice
prompt "Baud rate"
default CONSOLE_SERIAL_115200