2 # Serial device configuration
11 Select a default baudrate, where "default" has a driver-specific
12 meaning of either setting the baudrate for the early debug UART
13 in the SPL stage (most drivers) or for choosing a default baudrate
14 in the absence of an environment setting (serial_mxc.c).
16 config REQUIRE_SERIAL_CONSOLE
17 bool "Require a serial port for console"
18 # Running without a serial console is not supported by the
23 Require a serial port for the console, and panic if none is found
24 during serial port initialization (default y). Set this to n on
25 boards which have no debug serial port whatsoever.
28 bool "Provide a serial driver"
32 In very space-constrained devices even the full UART driver is too
33 large. In this case the debug UART can still be used in some cases.
34 This option enables the full UART in U-Boot, so if is it disabled,
35 the full UART driver will be omitted, thus saving space.
37 config SPL_SERIAL_PRESENT
38 bool "Provide a serial driver in SPL"
42 In very space-constrained devices even the full UART driver is too
43 large. In this case the debug UART can still be used in some cases.
44 This option enables the full UART in SPL, so if is it disabled,
45 the full UART driver will be omitted, thus saving space.
48 int "UART used for console"
50 default 2 if MACH_SUN5I
51 default 5 if MACH_SUN8I_A23 || MACH_SUN8I_A33
54 Configures the console index.
55 For Allwinner SoC., default values are 2 for SUN5I and 5 for A23/A33.
56 Otherwise, the index equals 1.
59 bool "Enable Driver Model for serial drivers"
62 Enable driver model for serial. This replaces
63 drivers/serial/serial.c with the serial uclass, which
64 implements serial_putc() etc. The uclass interface is
65 defined in include/serial.h.
68 bool "Enable Driver Model for serial drivers"
70 default y if SPL && DM_SERIAL
72 Enable driver model for serial in SPL. This replaces
73 drivers/serial/serial.c with the serial uclass, which
74 implements serial_putc() etc. The uclass interface is
75 defined in include/serial.h.
78 bool "Enable Driver Model for serial drivers"
80 default y if TPL && DM_SERIAL
82 Enable driver model for serial in TPL. This replaces
83 drivers/serial/serial.c with the serial uclass, which
84 implements serial_putc() etc. The uclass interface is
85 defined in include/serial.h.
88 bool "Enable an early debug UART for debugging"
90 The debug UART is intended for use very early in U-Boot to debug
91 problems when an ICE or other debug mechanism is not available.
94 - Make sure your UART supports this interface
95 - Enable CONFIG_DEBUG_UART
96 - Enable the CONFIG for your UART to tell it to provide this interface
97 (e.g. CONFIG_DEBUG_UART_NS16550)
98 - Define the required settings as needed (see below)
99 - Call debug_uart_init() before use
100 - Call debug_uart_putc() to output a character
102 Depending on your platform it may be possible to use this UART before
103 a stack is available.
105 If your UART does not support this interface you can probably add
106 support quite easily. Remember that you cannot use driver model and
107 it is preferred to use no stack.
109 You must not use this UART once driver model is working and the
110 serial drivers are up and running (done in serial_init()). Otherwise
111 the drivers may conflict and you will get strange output.
114 prompt "Select which UART will provide the debug UART"
115 depends on DEBUG_UART
116 default DEBUG_UART_NS16550
118 config DEBUG_UART_ALTERA_JTAGUART
119 bool "Altera JTAG UART"
121 Select this to enable a debug UART using the altera_jtag_uart driver.
122 You will need to provide parameters to make this work. The driver will
123 be available until the real driver model serial is running.
125 config DEBUG_UART_ALTERA_UART
128 Select this to enable a debug UART using the altera_uart driver.
129 You will need to provide parameters to make this work. The driver will
130 be available until the real driver model serial is running.
132 config DEBUG_UART_AR933X
133 bool "QCA/Atheros ar933x"
134 depends on AR933X_UART
136 Select this to enable a debug UART using the ar933x uart driver.
137 You will need to provide parameters to make this work. The
138 driver will be available until the real driver model serial is
141 config DEBUG_UART_ATMEL
144 Select this to enable a debug UART using the atmel usart driver. You
145 will need to provide parameters to make this work. The driver will
146 be available until the real driver-model serial is running.
148 config DEBUG_UART_BCM6345
150 depends on BCM6345_SERIAL
152 Select this to enable a debug UART on BCM6345 SoCs. You
153 will need to provide parameters to make this work. The driver will
154 be available until the real driver model serial is running.
156 config DEBUG_UART_NS16550
159 Select this to enable a debug UART using the ns16550 driver. You
160 will need to provide parameters to make this work. The driver will
161 be available until the real driver model serial is running.
163 config DEBUG_EFI_CONSOLE
167 Select this to enable a debug console which calls back to EFI to
168 output to the console. This can be useful for early debugging of
169 U-Boot when running on top of EFI (Extensive Firmware Interface).
170 This is a type of BIOS used by PCs.
172 config DEBUG_UART_S5P
175 Select this to enable a debug UART using the serial_s5p driver. You
176 will need to provide parameters to make this work. The driver will
177 be available until the real driver-model serial is running.
179 config DEBUG_UART_MESON
181 depends on MESON_SERIAL
183 Select this to enable a debug UART using the serial_meson driver. You
184 will need to provide parameters to make this work. The driver will
185 be available until the real driver-model serial is running.
187 config DEBUG_UART_UARTLITE
188 bool "Xilinx Uartlite"
190 Select this to enable a debug UART using the serial_uartlite driver.
191 You will need to provide parameters to make this work. The driver will
192 be available until the real driver-model serial is running.
194 config DEBUG_UART_ARM_DCC
197 Select this to enable a debug UART using the ARM JTAG DCC port.
198 The DCC port can be used for very early debugging and doesn't require
199 any additional setting like address/baudrate/clock. On systems without
200 any serial interface this is the easiest way how to get console.
201 Every ARM core has own DCC port which is the part of debug interface.
202 This port is available at least on ARMv6, ARMv7, ARMv8 and XScale
205 config DEBUG_MVEBU_A3700_UART
206 bool "Marvell Armada 3700"
208 Select this to enable a debug UART using the serial_mvebu driver. You
209 will need to provide parameters to make this work. The driver will
210 be available until the real driver-model serial is running.
212 config DEBUG_UART_ZYNQ
215 Select this to enable a debug UART using the serial_zynq driver. You
216 will need to provide parameters to make this work. The driver will
217 be available until the real driver-model serial is running.
219 config DEBUG_UART_APBUART
221 bool "Gaisler APBUART"
223 Select this to enable a debug UART using the serial_leon3 driver. You
224 will need to provide parameters to make this work. The driver will
225 be available until the real driver model serial is running.
227 config DEBUG_UART_PL010
230 Select this to enable a debug UART using the pl01x driver with the
231 PL010 UART type. You will need to provide parameters to make this
232 work. The driver will be available until the real driver model
235 config DEBUG_UART_PL011
238 Select this to enable a debug UART using the pl01x driver with the
239 PL011 UART type. You will need to provide parameters to make this
240 work. The driver will be available until the real driver model
243 config DEBUG_UART_PIC32
244 bool "Microchip PIC32"
245 depends on PIC32_SERIAL
247 Select this to enable a debug UART using the serial_pic32 driver. You
248 will need to provide parameters to make this work. The driver will
249 be available until the real driver model serial is running.
251 config DEBUG_UART_UNIPHIER
252 bool "UniPhier on-chip UART"
253 depends on ARCH_UNIPHIER
255 Select this to enable a debug UART using the UniPhier on-chip UART.
256 You will need to provide DEBUG_UART_BASE to make this work. The
257 driver will be available until the real driver-model serial is
262 config DEBUG_UART_BASE
263 hex "Base address of UART"
264 depends on DEBUG_UART
266 This is the base address of your UART for memory-mapped UARTs.
268 A default should be provided by your board, but if not you will need
269 to use the correct value here.
271 config DEBUG_UART_CLOCK
272 int "UART input clock"
273 depends on DEBUG_UART
275 The UART input clock determines the speed of the internal UART
276 circuitry. The baud rate is derived from this by dividing the input
279 A default should be provided by your board, but if not you will need
280 to use the correct value here.
282 config DEBUG_UART_SHIFT
283 int "UART register shift"
284 depends on DEBUG_UART
285 default 0 if DEBUG_UART
287 Some UARTs (notably ns16550) support different register layouts
288 where the registers are spaced either as bytes, words or some other
289 value. Use this value to specify the shift to use, where 0=byte
290 registers, 2=32-bit word registers, etc.
292 config DEBUG_UART_BOARD_INIT
293 bool "Enable board-specific debug UART init"
294 depends on DEBUG_UART
296 Some boards need to set things up before the debug UART can be used.
297 On these boards a call to debug_uart_init() is insufficient. When
298 this option is enabled, the function board_debug_uart_init() will
299 be called when debug_uart_init() is called. You can put any code
300 here that is needed to set up the UART ready for use, such as set
301 pin multiplexing or enable clocks.
303 config DEBUG_UART_ANNOUNCE
304 bool "Show a message when the debug UART starts up"
305 depends on DEBUG_UART
307 Enable this option to show a message when the debug UART is ready
308 for use. You will see a message like "<debug_uart> " as soon as
309 U-Boot has the UART ready for use (i.e. your code calls
310 debug_uart_init()). This can be useful just as a check that
311 everything is working.
313 config DEBUG_UART_SKIP_INIT
314 bool "Skip UART initialization"
316 Select this if the UART you want to use for debug output is already
317 initialized by the time U-Boot starts its execution.
319 config ALTERA_JTAG_UART
320 bool "Altera JTAG UART support"
323 Select this to enable an JTAG UART for Altera devices.The JTAG UART
324 core implements a method to communicate serial character streams
325 between a host PC and a Qsys system on an Altera FPGA. Please find
326 details on the "Embedded Peripherals IP User Guide" of Altera.
328 config ALTERA_JTAG_UART_BYPASS
329 bool "Bypass output when no connection"
330 depends on ALTERA_JTAG_UART
332 Bypass console output and keep going even if there is no JTAG
333 terminal connection with the host. The console output will resume
334 once the JTAG terminal is connected. Without the bypass, the console
335 output will wait forever until a JTAG terminal is connected. If you
339 bool "Altera UART support"
342 Select this to enable an UART for Altera devices. Please find
343 details on the "Embedded Peripherals IP User Guide" of Altera.
346 bool "QCA/Atheros ar933x UART support"
347 depends on DM_SERIAL && SOC_AR933X
349 Select this to enable UART support for QCA/Atheros ar933x
350 devices. This driver uses driver model and requires a device
351 tree binding to operate, please refer to the document at
352 doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
355 bool "Atmel USART support"
357 Select this to enable USART support for Atmel SoCs. It can be
358 configured in the device tree, and input clock frequency can
359 be got from the clk node.
361 config BCM6345_SERIAL
362 bool "Support for BCM6345 UART"
363 depends on DM_SERIAL && ARCH_BMIPS
365 Select this to enable UART on BCM6345 SoCs.
368 bool "Freescale LPUART support"
370 Select this to enable a Low Power UART for Freescale VF610 and
371 QorIQ Layerscape devices.
373 config MVEBU_A3700_UART
374 bool "UART support for Armada 3700"
377 Choose this option to add support for UART driver on the Marvell
378 Armada 3700 SoC. The base address is configured via DT.
381 bool "IMX serial port support"
382 depends on MX5 || MX6
384 If you have a machine based on a Motorola IMX CPU you
385 can enable its onboard serial port by enabling this option.
388 bool "Support for Microchip PIC32 on-chip UART"
389 depends on DM_SERIAL && MACH_PIC32
392 Support for the UART found on Microchip PIC32 SoC's.
395 bool "NS16550 UART or compatible"
397 Support NS16550 UART or compatible. This can be enabled in the
398 device tree with the correct input clock frequency. If the input
399 clock frequency is not defined in the device tree, the macro
400 CONFIG_SYS_NS16550_CLK defined in a legacy board header file will
401 be used. It can be a constant or a function to get clock, eg,
404 config INTEL_MID_SERIAL
405 bool "Intel MID platform UART support"
406 depends on DM_SERIAL && OF_CONTROL
410 Select this to enable a UART for Intel MID platforms.
411 This uses the ns16550 driver as a library.
413 config ROCKCHIP_SERIAL
414 bool "Rockchip on-chip UART support"
415 depends on DM_SERIAL && SPL_OF_PLATDATA
417 Select this to enable a debug UART for Rockchip devices when using
418 CONFIG_SPL_OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
419 This uses the ns16550 driver, converting the platdata from of-platdata
420 to the ns16550 format.
422 config SANDBOX_SERIAL
423 bool "Sandbox UART support"
426 Select this to enable a seral UART for sandbox. This is required to
427 operate correctly, otherwise you will see no serial output from
428 sandbox. The emulated UART will display to the console and console
429 input will be fed into the UART. This allows you to interact with
432 The operation of the console is controlled by the -t command-line
433 flag. In raw mode, U-Boot sees all characters from the terminal
434 before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
435 is processed by the terminal, and terminates U-Boot. Valid options
438 -t raw-with-sigs Raw mode, Ctrl-C will terminate U-Boot
439 -t raw Raw mode, Ctrl-C is processed by U-Boot
440 -t cooked Cooked mode, Ctrl-C terminates
442 config UNIPHIER_SERIAL
443 bool "Support for UniPhier on-chip UART"
444 depends on ARCH_UNIPHIER
447 If you have a UniPhier based board and want to use the on-chip
448 serial ports, say Y to this option. If unsure, say N.
450 config XILINX_UARTLITE
451 bool "Xilinx Uarlite support"
452 depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
454 If you have a Xilinx based board and want to use the uartlite
455 serial ports, say Y to this option. If unsure, say N.
458 bool "Support for Amlogic Meson UART"
459 depends on DM_SERIAL && ARCH_MESON
461 If you have an Amlogic Meson based board and want to use the on-chip
462 serial ports, say Y to this option. If unsure, say N.
465 bool "Qualcomm on-chip UART"
468 Support Data Mover UART used on Qualcomm Snapdragon SoCs.
469 It should support all Qualcomm devices with UARTDM version 1.4,
470 for example APQ8016 and MSM8916.
471 Single baudrate is supported in current implementation (115200).
474 bool "PXA serial port support"
476 If you have a machine based on a Marvell XScale PXA2xx CPU you
477 can enable its onboard serial ports by enabling this option.
479 config STI_ASC_SERIAL
480 bool "STMicroelectronics on-chip UART"
481 depends on DM_SERIAL && ARCH_STI
483 Select this to enable Asynchronous Serial Controller available
484 on STiH410 SoC. This is a basic implementation, it supports
485 following baudrate 9600, 19200, 38400, 57600 and 115200.