1*8c458588SHans de Goedeconfig REQUIRE_SERIAL_CONSOLE 2*8c458588SHans de Goede bool "Require a serial port for console" 3*8c458588SHans de Goede # Running without a serial console is not supported by the 4*8c458588SHans de Goede # non-dm serial code 5*8c458588SHans de Goede depends on DM_SERIAL 6*8c458588SHans de Goede default y 7*8c458588SHans de Goede help 8*8c458588SHans de Goede Require a serial port for the console, and panic if none is found 9*8c458588SHans de Goede during serial port initialization (default y). Set this to n on 10*8c458588SHans de Goede boards which have no debug serial port whatsoever. 11*8c458588SHans de Goede 12da333ae7SMasahiro Yamadaconfig DM_SERIAL 13da333ae7SMasahiro Yamada bool "Enable Driver Model for serial drivers" 14da333ae7SMasahiro Yamada depends on DM 15da333ae7SMasahiro Yamada help 16f94a1bedSSimon Glass Enable driver model for serial. This replaces 17f94a1bedSSimon Glass drivers/serial/serial.c with the serial uclass, which 18f94a1bedSSimon Glass implements serial_putc() etc. The uclass interface is 19f94a1bedSSimon Glass defined in include/serial.h. 20ff247b7aSMasahiro Yamada 212f964aa7SSimon Glassconfig DEBUG_UART 222f964aa7SSimon Glass bool "Enable an early debug UART for debugging" 232f964aa7SSimon Glass help 242f964aa7SSimon Glass The debug UART is intended for use very early in U-Boot to debug 252f964aa7SSimon Glass problems when an ICE or other debug mechanism is not available. 262f964aa7SSimon Glass 272f964aa7SSimon Glass To use it you should: 282f964aa7SSimon Glass - Make sure your UART supports this interface 292f964aa7SSimon Glass - Enable CONFIG_DEBUG_UART 302f964aa7SSimon Glass - Enable the CONFIG for your UART to tell it to provide this interface 312f964aa7SSimon Glass (e.g. CONFIG_DEBUG_UART_NS16550) 322f964aa7SSimon Glass - Define the required settings as needed (see below) 332f964aa7SSimon Glass - Call debug_uart_init() before use 342f964aa7SSimon Glass - Call debug_uart_putc() to output a character 352f964aa7SSimon Glass 362f964aa7SSimon Glass Depending on your platform it may be possible to use this UART before 372f964aa7SSimon Glass a stack is available. 382f964aa7SSimon Glass 392f964aa7SSimon Glass If your UART does not support this interface you can probably add 402f964aa7SSimon Glass support quite easily. Remember that you cannot use driver model and 412f964aa7SSimon Glass it is preferred to use no stack. 422f964aa7SSimon Glass 432f964aa7SSimon Glass You must not use this UART once driver model is working and the 442f964aa7SSimon Glass serial drivers are up and running (done in serial_init()). Otherwise 452f964aa7SSimon Glass the drivers may conflict and you will get strange output. 462f964aa7SSimon Glass 4721d00436SSimon Glasschoice 4821d00436SSimon Glass prompt "Select which UART will provide the debug UART" 4921d00436SSimon Glass depends on DEBUG_UART 5021d00436SSimon Glass 5121d00436SSimon Glassconfig DEBUG_UART_NS16550 5221d00436SSimon Glass bool "ns16550" 5321d00436SSimon Glass help 5421d00436SSimon Glass Select this to enable a debug UART using the ns16550 driver. You 5521d00436SSimon Glass will need to provide parameters to make this work. The driver will 5621d00436SSimon Glass be available until the real driver model serial is running. 5721d00436SSimon Glass 58275854baSSimon Glassconfig DEBUG_EFI_CONSOLE 59275854baSSimon Glass bool "EFI" 60275854baSSimon Glass depends on EFI_APP 61275854baSSimon Glass help 62275854baSSimon Glass Select this to enable a debug console which calls back to EFI to 63275854baSSimon Glass output to the console. This can be useful for early debugging of 64275854baSSimon Glass U-Boot when running on top of EFI (Extensive Firmware Interface). 65275854baSSimon Glass This is a type of BIOS used by PCs. 66275854baSSimon Glass 67bf6e7022SSimon Glassconfig DEBUG_UART_S5P 68bf6e7022SSimon Glass bool "Samsung S5P" 69bf6e7022SSimon Glass help 70bf6e7022SSimon Glass Select this to enable a debug UART using the serial_s5p driver. You 71bf6e7022SSimon Glass will need to provide parameters to make this work. The driver will 72bf6e7022SSimon Glass be available until the real driver-model serial is running. 73bf6e7022SSimon Glass 7421d00436SSimon Glassendchoice 7521d00436SSimon Glass 762f964aa7SSimon Glassconfig DEBUG_UART_BASE 772f964aa7SSimon Glass hex "Base address of UART" 782f964aa7SSimon Glass depends on DEBUG_UART 792f964aa7SSimon Glass help 802f964aa7SSimon Glass This is the base address of your UART for memory-mapped UARTs. 812f964aa7SSimon Glass 822f964aa7SSimon Glass A default should be provided by your board, but if not you will need 832f964aa7SSimon Glass to use the correct value here. 842f964aa7SSimon Glass 852f964aa7SSimon Glassconfig DEBUG_UART_CLOCK 862f964aa7SSimon Glass int "UART input clock" 872f964aa7SSimon Glass depends on DEBUG_UART 882f964aa7SSimon Glass help 892f964aa7SSimon Glass The UART input clock determines the speed of the internal UART 902f964aa7SSimon Glass circuitry. The baud rate is derived from this by dividing the input 912f964aa7SSimon Glass clock down. 922f964aa7SSimon Glass 932f964aa7SSimon Glass A default should be provided by your board, but if not you will need 942f964aa7SSimon Glass to use the correct value here. 952f964aa7SSimon Glass 96dd0b0122SSimon Glassconfig DEBUG_UART_SHIFT 97dd0b0122SSimon Glass int "UART register shift" 98dd0b0122SSimon Glass depends on DEBUG_UART 99dd0b0122SSimon Glass default 0 if DEBUG_UART 100dd0b0122SSimon Glass help 101dd0b0122SSimon Glass Some UARTs (notably ns16550) support different register layouts 102dd0b0122SSimon Glass where the registers are spaced either as bytes, words or some other 103dd0b0122SSimon Glass value. Use this value to specify the shift to use, where 0=byte 104dd0b0122SSimon Glass registers, 2=32-bit word registers, etc. 105dd0b0122SSimon Glass 106af282245SSimon Glassconfig SANDBOX_SERIAL 107af282245SSimon Glass bool "Sandbox UART support" 108af282245SSimon Glass depends on SANDBOX && DM 109af282245SSimon Glass help 110af282245SSimon Glass Select this to enable a seral UART for sandbox. This is required to 111af282245SSimon Glass operate correctly, otherwise you will see no serial output from 112af282245SSimon Glass sandbox. The emulated UART will display to the console and console 113af282245SSimon Glass input will be fed into the UART. This allows you to interact with 114af282245SSimon Glass U-Boot. 115af282245SSimon Glass 116af282245SSimon Glass The operation of the console is controlled by the -t command-line 117af282245SSimon Glass flag. In raw mode, U-Boot sees all characters from the terminal 118af282245SSimon Glass before they are processed, including Ctrl-C. In cooked mode, Ctrl-C 119af282245SSimon Glass is processed by the terminal, and terminates U-Boot. Valid options 120af282245SSimon Glass are: 121af282245SSimon Glass 122af282245SSimon Glass -t raw-with-sigs Raw mode, Ctrl-C will terminate U-Boot 123af282245SSimon Glass -t raw Raw mode, Ctrl-C is processed by U-Boot 124af282245SSimon Glass -t cooked Cooked mode, Ctrl-C terminates 125af282245SSimon Glass 126ff247b7aSMasahiro Yamadaconfig UNIPHIER_SERIAL 127b6ef3a3fSMasahiro Yamada bool "Support for UniPhier on-chip UART" 128ff247b7aSMasahiro Yamada depends on ARCH_UNIPHIER && DM_SERIAL 129ff247b7aSMasahiro Yamada help 130b6ef3a3fSMasahiro Yamada If you have a UniPhier based board and want to use the on-chip 131b6ef3a3fSMasahiro Yamada serial ports, say Y to this option. If unsure, say N. 132dcfe4a54SSimon Glass 133dcfe4a54SSimon Glassconfig X86_SERIAL 134dcfe4a54SSimon Glass bool "Support for 16550 serial port on x86 machines" 135dcfe4a54SSimon Glass depends on X86 136dcfe4a54SSimon Glass default y 137dcfe4a54SSimon Glass help 138dcfe4a54SSimon Glass Most x86 machines have a ns16550 UART or compatible. This can be 139dcfe4a54SSimon Glass enabled in the device tree with the correct input clock frequency 140dcfe4a54SSimon Glass provided (default 1843200). Enable this to obtain serial console 141dcfe4a54SSimon Glass output. 142