diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-26 18:27:09 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-19 06:20:28 -0700 |
commit | 21d004368fc8a4da07147c58dfe9a4e16d4ab761 (patch) | |
tree | 0d6b2bc4ce8caf0d56e74084c66f05d761d28ed7 /drivers/serial/Kconfig | |
parent | 765716744f6743d6c1e6b3c92eea163b4ee59f3c (diff) | |
download | u-boot-imx-21d004368fc8a4da07147c58dfe9a4e16d4ab761.zip u-boot-imx-21d004368fc8a4da07147c58dfe9a4e16d4ab761.tar.gz u-boot-imx-21d004368fc8a4da07147c58dfe9a4e16d4ab761.tar.bz2 |
serial: ns16550: Support debug UART
Add debug UART functions to permit ns16550 to provide an early debug UART.
Try to avoid using the stack so that this can be called from assembler before
a stack is set up (at least on ARM and PowerPC).
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/Kconfig')
-rw-r--r-- | drivers/serial/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 6313258..1686a1f 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -33,6 +33,19 @@ config DEBUG_UART serial drivers are up and running (done in serial_init()). Otherwise the drivers may conflict and you will get strange output. +choice + prompt "Select which UART will provide the debug UART" + depends on DEBUG_UART + +config DEBUG_UART_NS16550 + bool "ns16550" + help + Select this to enable a debug UART using the ns16550 driver. You + will need to provide parameters to make this work. The driver will + be available until the real driver model serial is running. + +endchoice + config DEBUG_UART_BASE hex "Base address of UART" depends on DEBUG_UART |