blob: 9f0f84c9b426f5a3945370a3b1a8632644d48164 [file] [log] [blame]
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001#
2# Serial device configuration
3#
4
Simon Glass388f78e2021-08-08 12:20:13 -06005menuconfig SERIAL
6 bool "Serial"
7 default y
8 help
9 Enable support for serial drivers. This allows use of a serial UART
10 for displaying messages while U-Boot is running. It also brings in
11 printf() and panic() functions. This should normally be enabled
12 unless there are space reasons not to. If you just need to disable
13 the console you can adjust the stdout environment variable or use
14 SILENT_CONSOLE.
15
16if SERIAL
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +090017
Philipp Tomsich29c8bc02017-03-17 20:34:53 +010018config BAUDRATE
19 int "Default baudrate"
20 default 115200
21 help
22 Select a default baudrate, where "default" has a driver-specific
23 meaning of either setting the baudrate for the early debug UART
24 in the SPL stage (most drivers) or for choosing a default baudrate
25 in the absence of an environment setting (serial_mxc.c).
26
Hans de Goede04f80942015-08-08 17:45:18 +020027config REQUIRE_SERIAL_CONSOLE
28 bool "Require a serial port for console"
29 # Running without a serial console is not supported by the
30 # non-dm serial code
31 depends on DM_SERIAL
32 default y
33 help
34 Require a serial port for the console, and panic if none is found
35 during serial port initialization (default y). Set this to n on
36 boards which have no debug serial port whatsoever.
37
Tom Rinie69ba982018-03-06 19:02:27 -050038config SPECIFY_CONSOLE_INDEX
39 bool "Specify the port number used for console"
40 default y if !DM_SERIAL || (SPL && !SPL_DM_SERIAL) || \
41 (TPL && !TPL_DM_SERIAL)
42 help
43 In various cases, we need to specify which of the UART devices that
44 a board or SoC has available are to be used for the console device
45 in U-Boot.
46
Simon Glass30a13492015-12-13 21:36:58 -070047config SERIAL_PRESENT
48 bool "Provide a serial driver"
49 depends on DM_SERIAL
50 default y
51 help
52 In very space-constrained devices even the full UART driver is too
53 large. In this case the debug UART can still be used in some cases.
54 This option enables the full UART in U-Boot, so if is it disabled,
55 the full UART driver will be omitted, thus saving space.
56
57config SPL_SERIAL_PRESENT
58 bool "Provide a serial driver in SPL"
Adam Fordac4d80e2019-08-24 13:50:34 -050059 depends on DM_SERIAL && SPL
Simon Glass30a13492015-12-13 21:36:58 -070060 default y
61 help
62 In very space-constrained devices even the full UART driver is too
63 large. In this case the debug UART can still be used in some cases.
64 This option enables the full UART in SPL, so if is it disabled,
65 the full UART driver will be omitted, thus saving space.
66
Simon Glass60573922018-10-01 12:22:20 -060067config TPL_SERIAL_PRESENT
68 bool "Provide a serial driver in TPL"
Adam Fordac4d80e2019-08-24 13:50:34 -050069 depends on DM_SERIAL && TPL
Simon Glass60573922018-10-01 12:22:20 -060070 default y
71 help
72 In very space-constrained devices even the full UART driver is too
73 large. In this case the debug UART can still be used in some cases.
74 This option enables the full UART in TPL, so if is it disabled,
75 the full UART driver will be omitted, thus saving space.
76
Simon Glasse7ca7da2022-04-30 00:56:53 -060077config VPL_SERIAL_PRESENT
78 bool "Provide a serial driver in VPL"
79 depends on DM_SERIAL && VPL
80 default y
81 help
82 In very space-constrained devices even the full UART driver is too
83 large. In this case the debug UART can still be used in some cases.
84 This option enables the full UART in TPL, so if is it disabled,
85 the full UART driver will be omitted, thus saving space.
86
Mylène Josserand80b96442017-04-02 12:59:11 +020087config CONS_INDEX
88 int "UART used for console"
Tom Rinie69ba982018-03-06 19:02:27 -050089 depends on SPECIFY_CONSOLE_INDEX
90 range 0 6
Mylène Josserand80b96442017-04-02 12:59:11 +020091 default 1
92 help
Tom Rinie69ba982018-03-06 19:02:27 -050093 Set this to match the UART number of the serial console.
Mylène Josserand80b96442017-04-02 12:59:11 +020094
Masahiro Yamada57ad8ee2014-10-23 22:26:09 +090095config DM_SERIAL
96 bool "Enable Driver Model for serial drivers"
97 depends on DM
Sean Anderson08c854a2019-12-17 21:40:09 -050098 select SYS_MALLOC_F
Masahiro Yamada57ad8ee2014-10-23 22:26:09 +090099 help
Simon Glassd8b771d2015-02-05 21:41:35 -0700100 Enable driver model for serial. This replaces
101 drivers/serial/serial.c with the serial uclass, which
102 implements serial_putc() etc. The uclass interface is
103 defined in include/serial.h.
Masahiro Yamada4261c642014-10-23 22:26:11 +0900104
Stefan Roese02072832017-08-16 17:37:16 +0200105config SERIAL_RX_BUFFER
106 bool "Enable RX buffer for serial input"
107 depends on DM_SERIAL
108 help
109 Enable RX buffer support for the serial driver. This enables
110 pasting longer strings, even when the RX FIFO of the UART is
111 not big enough (e.g. 16 bytes on the normal NS16550).
112
113config SERIAL_RX_BUFFER_SIZE
114 int "RX buffer size"
115 depends on SERIAL_RX_BUFFER
116 default 256
117 help
118 The size of the RX buffer (needs to be power of 2)
119
Sean Andersonaa22f972022-03-22 16:59:34 -0400120config SERIAL_PUTS
121 bool "Enable printing strings all at once"
122 depends on DM_SERIAL
123 help
124 Some serial drivers are much more efficient when printing multiple
125 characters at once rather than printing characters individually. This
126 can be because they can load a fifo, or because individual print
127 calls have a constant overhead. With this option set, the serial
128 subsystem will try to provide serial drivers with as many characters
129 at once as possible, instead of printing characters one by one. Most
130 serial drivers do not need this config to print efficiently. If
131 unsure, say N.
132
Alexander Grafc8bda542018-01-29 13:57:20 +0100133config SERIAL_SEARCH_ALL
134 bool "Search for serial devices after default one failed"
135 depends on DM_SERIAL
136 help
137 The serial subsystem only searches for a single serial device
138 that was instantiated, but does not check whether it was probed
139 correctly. With this option set, we make successful probing
140 mandatory and search for fallback serial devices if the default
141 device does not work.
142
143 If unsure, say N.
144
Vabhav Sharma42149c92020-12-09 10:42:04 +0530145config SERIAL_PROBE_ALL
146 bool "Probe all available serial devices"
147 depends on DM_SERIAL
Vabhav Sharma42149c92020-12-09 10:42:04 +0530148 help
149 The serial subsystem only probes for a single serial device,
150 but does not probe for other remaining serial devices.
151 With this option set, we make probing and searching for
152 all available devices optional.
153 Normally, U-Boot talks to one serial port at a time, but SBSA
154 compliant UART devices like PL011 require initialization
155 by firmware and to let the kernel use serial port for sending
156 and receiving the characters.
157
158 If unsure, say N.
159
Simon Glassf9512aa2017-04-02 09:50:32 -0600160config SPL_DM_SERIAL
Heiko Schocherb0b588f2017-06-21 06:23:10 +0200161 bool "Enable Driver Model for serial drivers in SPL"
Tom Rinie69ba982018-03-06 19:02:27 -0500162 depends on DM_SERIAL && SPL_DM
163 default y
Simon Glassf9512aa2017-04-02 09:50:32 -0600164 help
165 Enable driver model for serial in SPL. This replaces
166 drivers/serial/serial.c with the serial uclass, which
167 implements serial_putc() etc. The uclass interface is
168 defined in include/serial.h.
169
170config TPL_DM_SERIAL
Heiko Schocherb0b588f2017-06-21 06:23:10 +0200171 bool "Enable Driver Model for serial drivers in TPL"
Thomas Hebbc850c6a2019-11-10 08:23:55 -0800172 depends on DM_SERIAL && TPL_DM
Simon Glassf9512aa2017-04-02 09:50:32 -0600173 default y if TPL && DM_SERIAL
174 help
175 Enable driver model for serial in TPL. This replaces
176 drivers/serial/serial.c with the serial uclass, which
177 implements serial_putc() etc. The uclass interface is
178 defined in include/serial.h.
179
Simon Glasse7ca7da2022-04-30 00:56:53 -0600180config VPL_DM_SERIAL
181 bool "Enable Driver Model for serial drivers in VPL"
182 depends on DM_SERIAL
183 default y if VPL && DM_SERIAL
184 help
185 Enable driver model for serial in VPL. This replaces
186 drivers/serial/serial.c with the serial uclass, which
187 implements serial_putc() etc. The uclass interface is
188 defined in include/serial.h.
189
Simon Glassbac6fd82015-01-26 18:27:07 -0700190config DEBUG_UART
191 bool "Enable an early debug UART for debugging"
192 help
193 The debug UART is intended for use very early in U-Boot to debug
194 problems when an ICE or other debug mechanism is not available.
195
196 To use it you should:
197 - Make sure your UART supports this interface
198 - Enable CONFIG_DEBUG_UART
199 - Enable the CONFIG for your UART to tell it to provide this interface
200 (e.g. CONFIG_DEBUG_UART_NS16550)
201 - Define the required settings as needed (see below)
202 - Call debug_uart_init() before use
203 - Call debug_uart_putc() to output a character
204
205 Depending on your platform it may be possible to use this UART before
206 a stack is available.
207
208 If your UART does not support this interface you can probably add
209 support quite easily. Remember that you cannot use driver model and
210 it is preferred to use no stack.
211
212 You must not use this UART once driver model is working and the
213 serial drivers are up and running (done in serial_init()). Otherwise
214 the drivers may conflict and you will get strange output.
215
Simon Glass27afb522015-01-26 18:27:09 -0700216choice
217 prompt "Select which UART will provide the debug UART"
218 depends on DEBUG_UART
Heinrich Schuchardt444c6c52023-09-04 13:24:04 +0200219 default DEBUG_SBI_CONSOLE if RISCV_SMODE
Thomas Choud0738412015-11-19 21:48:03 +0800220 default DEBUG_UART_NS16550
Simon Glass27afb522015-01-26 18:27:09 -0700221
Thomas Chou26066df2015-10-23 07:36:37 +0800222config DEBUG_UART_ALTERA_JTAGUART
223 bool "Altera JTAG UART"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200224 depends on ALTERA_JTAG_UART
Thomas Chou26066df2015-10-23 07:36:37 +0800225 help
226 Select this to enable a debug UART using the altera_jtag_uart driver.
227 You will need to provide parameters to make this work. The driver will
228 be available until the real driver model serial is running.
229
Thomas Chou6917a5d2015-10-21 21:26:54 +0800230config DEBUG_UART_ALTERA_UART
231 bool "Altera UART"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200232 depends on ALTERA_UART
Thomas Chou6917a5d2015-10-21 21:26:54 +0800233 help
234 Select this to enable a debug UART using the altera_uart driver.
235 You will need to provide parameters to make this work. The driver will
236 be available until the real driver model serial is running.
237
Wills Wangcb48c6d2016-03-16 16:59:57 +0800238config DEBUG_UART_AR933X
239 bool "QCA/Atheros ar933x"
240 depends on AR933X_UART
241 help
242 Select this to enable a debug UART using the ar933x uart driver.
243 You will need to provide parameters to make this work. The
244 driver will be available until the real driver model serial is
245 running.
246
Alexey Brodkineede1672018-05-21 16:42:07 +0300247config DEBUG_ARC_SERIAL
248 bool "ARC UART"
249 depends on ARC_SERIAL
250 help
251 Select this to enable a debug UART using the ARC UART driver.
252 You will need to provide parameters to make this work. The
253 driver will be available until the real driver model serial is
254 running.
255
Wenyou Yang6b611e62016-10-17 09:49:55 +0800256config DEBUG_UART_ATMEL
257 bool "Atmel USART"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200258 depends on ATMEL_USART
Wenyou Yang6b611e62016-10-17 09:49:55 +0800259 help
260 Select this to enable a debug UART using the atmel usart driver. You
261 will need to provide parameters to make this work. The driver will
262 be available until the real driver-model serial is running.
263
Álvaro Fernández Rojas842cfaf2017-04-25 00:39:16 +0200264config DEBUG_UART_BCM6345
265 bool "BCM6345 UART"
266 depends on BCM6345_SERIAL
267 help
268 Select this to enable a debug UART on BCM6345 SoCs. You
269 will need to provide parameters to make this work. The driver will
270 be available until the real driver model serial is running.
271
Simon Glass27afb522015-01-26 18:27:09 -0700272config DEBUG_UART_NS16550
273 bool "ns16550"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200274 depends on SYS_NS16550
Simon Glass27afb522015-01-26 18:27:09 -0700275 help
276 Select this to enable a debug UART using the ns16550 driver. You
277 will need to provide parameters to make this work. The driver will
278 be available until the real driver model serial is running.
279
Simon Glass5a991bd2015-08-04 12:33:40 -0600280config DEBUG_EFI_CONSOLE
281 bool "EFI"
282 depends on EFI_APP
283 help
284 Select this to enable a debug console which calls back to EFI to
285 output to the console. This can be useful for early debugging of
286 U-Boot when running on top of EFI (Extensive Firmware Interface).
287 This is a type of BIOS used by PCs.
288
Samuel Holland4c33c262021-09-12 10:56:09 -0500289config DEBUG_SBI_CONSOLE
290 bool "SBI"
Heinrich Schuchardt444c6c52023-09-04 13:24:04 +0200291 depends on RISCV_SMODE
Samuel Holland4c33c262021-09-12 10:56:09 -0500292 help
293 Select this to enable a debug console which calls back to SBI to
294 output to the console. This can be useful for early debugging of
295 U-Boot when running on top of SBI (Supervisor Binary Interface).
Heinrich Schuchardt444c6c52023-09-04 13:24:04 +0200296 This implementation of the debug UART is not available while in
297 M-mode (e.g. during SPL).
Samuel Holland4c33c262021-09-12 10:56:09 -0500298
Simon Glass74afb292015-07-02 18:15:54 -0600299config DEBUG_UART_S5P
300 bool "Samsung S5P"
Mark Kettenis835cb5d2021-10-23 16:58:04 +0200301 depends on ARCH_APPLE || ARCH_EXYNOS || ARCH_S5PC1XX
Simon Glass74afb292015-07-02 18:15:54 -0600302 help
303 Select this to enable a debug UART using the serial_s5p driver. You
304 will need to provide parameters to make this work. The driver will
305 be available until the real driver-model serial is running.
306
Dzmitry Sankouskif5be5c82021-10-17 13:44:27 +0300307config DEBUG_UART_MSM_GENI
308 bool "Qualcomm snapdragon"
309 depends on ARCH_SNAPDRAGON
310 help
311 Select this to enable a debug UART using the serial_msm driver. You
312 will need to provide parameters to make this work. The driver will
313 be available until the real driver-model serial is running.
314
Beniamino Galvanid1037e42016-05-08 08:30:16 +0200315config DEBUG_UART_MESON
316 bool "Amlogic Meson"
317 depends on MESON_SERIAL
318 help
319 Select this to enable a debug UART using the serial_meson driver. You
320 will need to provide parameters to make this work. The driver will
321 be available until the real driver-model serial is running.
322
Michal Simek8af618b2015-12-14 16:55:10 +0100323config DEBUG_UART_UARTLITE
324 bool "Xilinx Uartlite"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200325 depends on XILINX_UARTLITE
Michal Simek8af618b2015-12-14 16:55:10 +0100326 help
327 Select this to enable a debug UART using the serial_uartlite driver.
328 You will need to provide parameters to make this work. The driver will
329 be available until the real driver-model serial is running.
330
Michal Simekb3cc2602016-02-23 10:02:28 +0100331config DEBUG_UART_ARM_DCC
332 bool "ARM DCC"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200333 depends on ARM_DCC
Michal Simekb3cc2602016-02-23 10:02:28 +0100334 help
335 Select this to enable a debug UART using the ARM JTAG DCC port.
336 The DCC port can be used for very early debugging and doesn't require
337 any additional setting like address/baudrate/clock. On systems without
338 any serial interface this is the easiest way how to get console.
339 Every ARM core has own DCC port which is the part of debug interface.
340 This port is available at least on ARMv6, ARMv7, ARMv8 and XScale
341 architectures.
342
Stefan Roese027276a2016-05-17 16:36:00 +0200343config DEBUG_MVEBU_A3700_UART
344 bool "Marvell Armada 3700"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200345 depends on MVEBU_A3700_UART
Stefan Roese027276a2016-05-17 16:36:00 +0200346 help
347 Select this to enable a debug UART using the serial_mvebu driver. You
348 will need to provide parameters to make this work. The driver will
349 be available until the real driver-model serial is running.
350
Simon Glass091f6a32015-10-17 19:41:22 -0600351config DEBUG_UART_ZYNQ
352 bool "Xilinx Zynq"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200353 depends on ZYNQ_SERIAL
Simon Glass091f6a32015-10-17 19:41:22 -0600354 help
Michal Simek49e12762015-12-01 14:29:34 +0100355 Select this to enable a debug UART using the serial_zynq driver. You
Simon Glass091f6a32015-10-17 19:41:22 -0600356 will need to provide parameters to make this work. The driver will
357 be available until the real driver-model serial is running.
358
Francois Retiefd18eb7b2015-10-29 12:55:34 +0200359config DEBUG_UART_APBUART
360 depends on LEON3
361 bool "Gaisler APBUART"
362 help
363 Select this to enable a debug UART using the serial_leon3 driver. You
364 will need to provide parameters to make this work. The driver will
365 be available until the real driver model serial is running.
366
Sergey Temerkhanov5710d7e2015-10-14 09:54:24 -0700367config DEBUG_UART_PL010
368 bool "pl010"
Tom Rini0ba2f372021-05-22 08:47:08 -0400369 depends on PL01X_SERIAL
Sergey Temerkhanov5710d7e2015-10-14 09:54:24 -0700370 help
371 Select this to enable a debug UART using the pl01x driver with the
372 PL010 UART type. You will need to provide parameters to make this
373 work. The driver will be available until the real driver model
374 serial is running.
375
376config DEBUG_UART_PL011
377 bool "pl011"
Michal Simekceedd3a2021-06-24 13:36:23 +0200378 depends on PL01X_SERIAL || PL011_SERIAL
Sergey Temerkhanov5710d7e2015-10-14 09:54:24 -0700379 help
380 Select this to enable a debug UART using the pl01x driver with the
381 PL011 UART type. You will need to provide parameters to make this
382 work. The driver will be available until the real driver model
383 serial is running.
384
Paul Thacker1dc42832016-01-28 15:30:14 +0530385config DEBUG_UART_PIC32
386 bool "Microchip PIC32"
387 depends on PIC32_SERIAL
388 help
389 Select this to enable a debug UART using the serial_pic32 driver. You
390 will need to provide parameters to make this work. The driver will
391 be available until the real driver model serial is running.
392
Jagan Tekicf6db162017-06-06 05:31:51 +0000393config DEBUG_UART_MXC
394 bool "IMX Serial port"
395 depends on MXC_UART
396 help
397 Select this to enable a debug UART using the serial_mxc driver. You
398 will need to provide parameters to make this work. The driver will
399 be available until the real driver model serial is running.
400
Simon Glasse3057f32018-10-01 11:55:15 -0600401config DEBUG_UART_SANDBOX
402 bool "sandbox"
403 depends on SANDBOX_SERIAL
404 help
405 Select this to enable the debug UART using the sandbox driver. This
406 provides basic serial output from the console without needing to
407 start up driver model. The driver will be available until the real
408 driver model serial is running.
409
Sean Andersond4f131a2022-03-22 16:59:24 -0400410config DEBUG_UART_SEMIHOSTING
411 bool "semihosting"
412 depends on SEMIHOSTING_SERIAL
413 help
414 Select this to enable the debug UART using the semihosting driver.
415 This provides basic serial output from the console without needing to
416 start up driver model. The driver will be available until the real
417 driver model serial is running.
418
Marek Vasut98ae2812023-02-28 22:17:22 +0100419config DEBUG_UART_SCIF
420 bool "Renesas SCIF UART"
421 depends on SH || ARCH_RMOBILE
422 help
423 Select this to enable a debug UART using the serial_sh driver. You
424 will need to provide parameters to make this work. The driver will
425 be available until the real driver-model serial is running.
426
Anup Patel4b1d68f2018-12-15 11:35:15 +0530427config DEBUG_UART_SIFIVE
428 bool "SiFive UART"
Michal Simekf0410172020-07-10 12:41:13 +0200429 depends on SIFIVE_SERIAL
Anup Patel4b1d68f2018-12-15 11:35:15 +0530430 help
431 Select this to enable a debug UART using the serial_sifive driver. You
432 will need to provide parameters to make this work. The driver will
433 be available until the real driver-model serial is running.
434
Patrick Delaunayab8e5d22018-05-17 14:50:42 +0200435config DEBUG_UART_STM32
436 bool "STMicroelectronics STM32"
437 depends on STM32_SERIAL
438 help
439 Select this to enable a debug UART using the serial_stm32 driver
440 You will need to provide parameters to make this work.
441 The driver will be available until the real driver model
442 serial is running.
443
Masahiro Yamada52f0c512016-03-18 16:41:52 +0900444config DEBUG_UART_UNIPHIER
445 bool "UniPhier on-chip UART"
446 depends on ARCH_UNIPHIER
447 help
448 Select this to enable a debug UART using the UniPhier on-chip UART.
449 You will need to provide DEBUG_UART_BASE to make this work. The
450 driver will be available until the real driver-model serial is
451 running.
452
Lokesh Vutla771d69c2017-04-22 15:57:25 +0530453config DEBUG_UART_OMAP
454 bool "OMAP uart"
Michal Simek8da3a6b2020-05-28 12:05:12 +0200455 depends on OMAP_SERIAL
Lokesh Vutla771d69c2017-04-22 15:57:25 +0530456 help
457 Select this to enable a debug UART using the omap ns16550 driver.
458 You will need to provide parameters to make this work. The driver
459 will be available until the real driver model serial is running.
460
developer90af58f2018-11-15 10:08:02 +0800461config DEBUG_UART_MTK
462 bool "MediaTek High-speed UART"
463 depends on MTK_SERIAL
464 help
465 Select this to enable a debug UART using the MediaTek High-speed
466 UART driver.
467 You will need to provide parameters to make this work. The
468 driver will be available until the real driver model serial is
469 running.
470
developere076b9e2020-11-12 16:36:05 +0800471config DEBUG_UART_MT7620
472 bool "UART driver for MediaTek MT7620 and earlier SoCs"
473 depends on MT7620_SERIAL
474 help
475 Select this to enable a debug UART using the UART driver for
476 MediaTek MT7620 and earlier SoCs.
477 You will need to provide parameters to make this work. The
478 driver will be available until the real driver model serial is
479 running.
480
Simon Glass27afb522015-01-26 18:27:09 -0700481endchoice
482
Simon Glassbac6fd82015-01-26 18:27:07 -0700483config DEBUG_UART_BASE
484 hex "Base address of UART"
Tom Riniae965f22020-10-23 09:15:55 -0400485 depends on DEBUG_UART
Tom Rinif18679c2023-08-02 11:09:43 -0400486 default 0x0 if DEBUG_SBI_CONSOLE
487 default 0x0 if DEBUG_UART_SANDBOX
Michal Simek3b9271a2022-06-06 09:44:01 +0200488 default 0xff000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQMP
489 default 0xe0000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQ
Simon Glassbac6fd82015-01-26 18:27:07 -0700490 help
491 This is the base address of your UART for memory-mapped UARTs.
492
493 A default should be provided by your board, but if not you will need
494 to use the correct value here.
495
Pali Rohárb4e29802022-05-06 11:05:15 +0200496config SPL_DEBUG_UART_BASE
497 hex "Base address of UART for SPL"
498 depends on SPL && DEBUG_UART
499 default DEBUG_UART_BASE
500 help
501 This is the base address of your UART for memory-mapped UARTs for SPL.
502
Pali Rohár784f5692022-05-16 18:49:09 +0200503config TPL_DEBUG_UART_BASE
504 hex "Base address of UART for TPL"
505 depends on TPL && DEBUG_UART
506 default DEBUG_UART_BASE
507 help
508 This is the base address of your UART for memory-mapped UARTs for TPL.
509
Simon Glassbac6fd82015-01-26 18:27:07 -0700510config DEBUG_UART_CLOCK
511 int "UART input clock"
Tom Riniae965f22020-10-23 09:15:55 -0400512 depends on DEBUG_UART
Samuel Holland4c33c262021-09-12 10:56:09 -0500513 default 0 if DEBUG_SBI_CONSOLE
Simon Glasse3057f32018-10-01 11:55:15 -0600514 default 0 if DEBUG_UART_SANDBOX
Marek Behún6e0e23c2021-07-09 17:40:59 +0200515 default 0 if DEBUG_MVEBU_A3700_UART
Michal Simek3b9271a2022-06-06 09:44:01 +0200516 default 100000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQMP
517 default 50000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQ
Simon Glassbac6fd82015-01-26 18:27:07 -0700518 help
519 The UART input clock determines the speed of the internal UART
520 circuitry. The baud rate is derived from this by dividing the input
521 clock down.
522
523 A default should be provided by your board, but if not you will need
524 to use the correct value here.
525
Simon Glass54111292015-02-27 22:06:25 -0700526config DEBUG_UART_SHIFT
527 int "UART register shift"
Tom Riniae965f22020-10-23 09:15:55 -0400528 depends on DEBUG_UART
Simon Glass54111292015-02-27 22:06:25 -0700529 default 0 if DEBUG_UART
530 help
531 Some UARTs (notably ns16550) support different register layouts
532 where the registers are spaced either as bytes, words or some other
533 value. Use this value to specify the shift to use, where 0=byte
534 registers, 2=32-bit word registers, etc.
535
Simon Glassc52be122015-10-18 19:51:24 -0600536config DEBUG_UART_BOARD_INIT
537 bool "Enable board-specific debug UART init"
538 depends on DEBUG_UART
539 help
540 Some boards need to set things up before the debug UART can be used.
541 On these boards a call to debug_uart_init() is insufficient. When
542 this option is enabled, the function board_debug_uart_init() will
543 be called when debug_uart_init() is called. You can put any code
544 here that is needed to set up the UART ready for use, such as set
545 pin multiplexing or enable clocks.
546
Simon Glass1f7338a2015-10-18 19:51:25 -0600547config DEBUG_UART_ANNOUNCE
548 bool "Show a message when the debug UART starts up"
549 depends on DEBUG_UART
550 help
551 Enable this option to show a message when the debug UART is ready
552 for use. You will see a message like "<debug_uart> " as soon as
553 U-Boot has the UART ready for use (i.e. your code calls
554 debug_uart_init()). This can be useful just as a check that
555 everything is working.
556
Sergey Temerkhanov5710d7e2015-10-14 09:54:24 -0700557config DEBUG_UART_SKIP_INIT
558 bool "Skip UART initialization"
Simon Goldschmidt03a96832019-01-09 20:27:09 +0100559 depends on DEBUG_UART
Sergey Temerkhanov5710d7e2015-10-14 09:54:24 -0700560 help
561 Select this if the UART you want to use for debug output is already
562 initialized by the time U-Boot starts its execution.
563
Simon Goldschmidte03ad212019-01-09 20:35:31 +0100564config DEBUG_UART_NS16550_CHECK_ENABLED
565 bool "Check if UART is enabled on output"
566 depends on DEBUG_UART
567 depends on DEBUG_UART_NS16550
568 help
569 Select this if puts()/putc() might be called before the debug UART
570 has been initialized. If this is disabled, putc() might sit in a
571 tight loop if it is called before debug_uart_init() has been called.
572
573 Note that this does not work for every ns16550-compatible UART and
574 so has to be enabled carefully or you might notice lost characters.
575
Thomas Chou26066df2015-10-23 07:36:37 +0800576config ALTERA_JTAG_UART
577 bool "Altera JTAG UART support"
578 depends on DM_SERIAL
579 help
580 Select this to enable an JTAG UART for Altera devices.The JTAG UART
581 core implements a method to communicate serial character streams
582 between a host PC and a Qsys system on an Altera FPGA. Please find
583 details on the "Embedded Peripherals IP User Guide" of Altera.
584
585config ALTERA_JTAG_UART_BYPASS
586 bool "Bypass output when no connection"
587 depends on ALTERA_JTAG_UART
588 help
589 Bypass console output and keep going even if there is no JTAG
590 terminal connection with the host. The console output will resume
591 once the JTAG terminal is connected. Without the bypass, the console
592 output will wait forever until a JTAG terminal is connected. If you
593 not are sure, say Y.
594
Thomas Chou6917a5d2015-10-21 21:26:54 +0800595config ALTERA_UART
596 bool "Altera UART support"
597 depends on DM_SERIAL
598 help
599 Select this to enable an UART for Altera devices. Please find
600 details on the "Embedded Peripherals IP User Guide" of Altera.
601
Wills Wangcb48c6d2016-03-16 16:59:57 +0800602config AR933X_UART
603 bool "QCA/Atheros ar933x UART support"
604 depends on DM_SERIAL && SOC_AR933X
605 help
606 Select this to enable UART support for QCA/Atheros ar933x
607 devices. This driver uses driver model and requires a device
608 tree binding to operate, please refer to the document at
609 doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
610
Alexey Brodkinb9a0a422018-05-21 16:40:05 +0300611config ARC_SERIAL
612 bool "ARC UART support"
613 depends on DM_SERIAL
614 help
615 Select this to enable support for ARC UART now typically
616 only used in Synopsys DesignWare ARC simulators like nSIM.
617
Tom Rini0f73ac62020-06-02 17:26:33 -0400618config ARM_DCC
619 bool "ARM Debug Communication Channel (DCC) as UART support"
620 depends on ARM
621 help
622 Select this to enable using the ARM DCC as a form of UART.
623
Wenyou Yang58d44482016-10-17 09:49:54 +0800624config ATMEL_USART
625 bool "Atmel USART support"
626 help
627 Select this to enable USART support for Atmel SoCs. It can be
628 configured in the device tree, and input clock frequency can
629 be got from the clk node.
630
Stefan Roeseb1f3da82019-04-03 15:24:19 +0200631config SPL_UART_CLOCK
632 int "SPL fixed UART input clock"
633 depends on ATMEL_USART && SPL && !SPL_CLK
634 default 132096000 if ARCH_AT91
635 help
636 Provide a fixed clock value as input to the UART controller. This
637 might be needed on platforms which can't enable CONFIG_SPL_CLK
638 because of SPL image size restrictions.
639
Alexander Graf1b442952018-01-25 12:05:53 +0100640config BCM283X_MU_SERIAL
641 bool "Support for BCM283x Mini-UART"
642 depends on DM_SERIAL && ARCH_BCM283X
643 default y
644 help
645 Select this to enable Mini-UART support on BCM283X family of SoCs.
646
Alexander Grafa73b0ec2018-01-25 12:05:55 +0100647config BCM283X_PL011_SERIAL
648 bool "Support for BCM283x PL011 UART"
649 depends on PL01X_SERIAL && ARCH_BCM283X
650 default y
651 help
652 Select this to enable an overriding PL011 driver for BCM283X SoCs
653 that supports automatic disable, so that it only gets used when
654 the UART is actually muxed.
655
Álvaro Fernández Rojas842cfaf2017-04-25 00:39:16 +0200656config BCM6345_SERIAL
657 bool "Support for BCM6345 UART"
Álvaro Fernández Rojas4ab29872018-12-01 18:42:09 +0100658 depends on DM_SERIAL
Álvaro Fernández Rojas842cfaf2017-04-25 00:39:16 +0200659 help
660 Select this to enable UART on BCM6345 SoCs.
661
Simon Glass4d221072019-12-19 17:58:20 -0700662config COREBOOT_SERIAL
663 bool "Coreboot UART support"
664 depends on DM_SERIAL
665 default y if SYS_COREBOOT
666 select SYS_NS16550
667 help
668 Select this to enable a ns16550-style UART where the platform data
669 comes from the coreboot 'sysinfo' tables. This allows U-Boot to have
670 a serial console on any platform without needing to change the
671 device tree, etc.
672
Simon Glass684bc742023-05-04 16:55:00 -0600673config COREBOOT_SERIAL_FROM_DBG2
674 bool "Obtain UART from ACPI tables"
675 depends on COREBOOT_SERIAL
Simon Glassa2ee2262023-09-19 21:00:07 -0600676 default y
Simon Glass684bc742023-05-04 16:55:00 -0600677 help
678 Select this to try to find a DBG2 record in the ACPI tables, in the
679 event that coreboot does not provide information about the UART in the
680 normal sysinfo tables. This provides a useful fallback when serial
681 is not enabled in coreboot.
682
Jason Liadca83a2020-01-30 12:34:58 -0800683config CORTINA_UART
684 bool "Cortina UART support"
685 depends on DM_SERIAL
686 help
687 Select this to enable UART support for Cortina-Access UART devices
688 found on CAxxxx SoCs.
689
Tuomas Tynkkynenf2c84702018-04-09 04:34:34 +0300690config FSL_LINFLEXUART
691 bool "Freescale Linflex UART support"
692 depends on DM_SERIAL
693 help
694 Select this to enable the Linflex serial module found on some
695 NXP SoCs like S32V234.
696
Bin Meng4409dcf2016-01-13 19:39:00 -0800697config FSL_LPUART
698 bool "Freescale LPUART support"
699 help
700 Select this to enable a Low Power UART for Freescale VF610 and
701 QorIQ Layerscape devices.
702
Tom Rini037415a2022-03-23 17:20:00 -0400703config LPUART
704 bool "Use the LPUART as console"
705 depends on FSL_LPUART
706
Stefan Roese027276a2016-05-17 16:36:00 +0200707config MVEBU_A3700_UART
708 bool "UART support for Armada 3700"
Stefan Roese027276a2016-05-17 16:36:00 +0200709 help
710 Choose this option to add support for UART driver on the Marvell
711 Armada 3700 SoC. The base address is configured via DT.
712
Angelo Dureghello6d542f32019-03-13 21:46:49 +0100713config MCFUART
714 bool "Freescale ColdFire UART support"
715 help
716 Choose this option to add support for UART driver on the ColdFire
717 SoC's family. The serial communication channel provides a full-duplex
718 asynchronous/synchronous receiver and transmitter deriving an
719 operating frequency from the internal bus clock or an external clock.
720
Jagan Tekia73597a2016-10-08 18:00:08 +0530721config MXC_UART
722 bool "IMX serial port support"
Tom Rinieac76b82021-09-09 07:54:50 -0400723 depends on ARCH_MX31 || MX5 || MX6 || MX7 || IMX8M
Jagan Tekia73597a2016-10-08 18:00:08 +0530724 help
725 If you have a machine based on a Motorola IMX CPU you
726 can enable its onboard serial port by enabling this option.
727
Keng Soon Cheah755e2d02017-08-24 20:29:07 -0700728config NULLDEV_SERIAL
729 bool "Null serial device"
730 help
731 Select this to enable null serial device support. A null serial
732 device merely acts as a placeholder for a serial device and does
733 nothing for all it's operation.
734
Paul Thacker1dc42832016-01-28 15:30:14 +0530735config PIC32_SERIAL
736 bool "Support for Microchip PIC32 on-chip UART"
737 depends on DM_SERIAL && MACH_PIC32
738 default y
739 help
740 Support for the UART found on Microchip PIC32 SoC's.
741
Tom Rinidc172ee2022-12-04 09:39:03 -0500742config SYS_NS16550_SERIAL
743 bool "NS16550 UART or compatible legacy driver"
744 depends on !DM_SERIAL
745 select SYS_NS16550
746
747config SPL_SYS_NS16550_SERIAL
748 bool "NS16550 UART or compatible legacy driver in SPL"
749 depends on SPL && !SPL_DM_SERIAL
750 default y if SYS_NS16550_SERIAL || ARCH_SUNXI || ARCH_OMAP2PLUS
751 select SYS_NS16550
752
Thomas Choua6cec012015-11-19 21:48:14 +0800753config SYS_NS16550
754 bool "NS16550 UART or compatible"
755 help
756 Support NS16550 UART or compatible. This can be enabled in the
757 device tree with the correct input clock frequency. If the input
758 clock frequency is not defined in the device tree, the macro
Tom Rinidf6a2152022-11-16 13:10:28 -0500759 CFG_SYS_NS16550_CLK defined in a legacy board header file will
Thomas Choua6cec012015-11-19 21:48:14 +0800760 be used. It can be a constant or a function to get clock, eg,
761 get_serial_clock().
762
Simon Glassf8b1a242019-12-19 17:58:18 -0700763config NS16550_DYNAMIC
764 bool "Allow NS16550 to be configured at runtime"
Tom Rinidc172ee2022-12-04 09:39:03 -0500765 depends on SYS_NS16550
Simon Glassf8b1a242019-12-19 17:58:18 -0700766 default y if SYS_COREBOOT || SYS_SLIMBOOTLOADER
767 help
768 Enable this option to allow device-tree control of the driver.
769
770 Normally this driver is controlled by the following options:
771
Simon Glassf8b1a242019-12-19 17:58:18 -0700772 It is not a good practice for a driver to be statically configured,
773 since it prevents the same driver being used for different types of
774 UARTs in a system. This option avoids this problem at the cost of a
775 slightly increased code size.
776
Tom Rinidc172ee2022-12-04 09:39:03 -0500777config SYS_NS16550_MEM32
778 bool "If memory-mapped, 32bit access is needed for ns16550 register access"
779 depends on SYS_NS16550
780 help
781 If enabled, if memory-mapped, indicates that 32-bit access should be
782 used (instead of 8-bit) for register access.
783
784config SYS_NS16550_PORT_MAPPED
785 bool "Port I/O is used for ns16550 register access"
786 depends on SYS_NS16550
787 help
788 If enabled, port I/O is used for ns16550 register access. If not
789 enabled, then the UART is memory-mapped.
790
791config SYS_NS16550_REG_SIZE
792 int "ns16550 register width and endianness"
793 depends on SYS_NS16550_SERIAL || SPL_SYS_NS16550_SERIAL
794 range -4 4
795 default -4 if ARCH_OMAP2PLUS || ARCH_SUNXI
796 default 1
797 help
798 Indicates register width and also endianness. If positive, big-endian
799 access is used. If negative, little-endian is used.
800
801config SPL_NS16550_MIN_FUNCTIONS
802 bool "Only provide NS16550_init and NS16550_putc in SPL"
803 depends on SPL_SYS_NS16550_SERIAL && PPC
804 help
805 Enable this if you desire to only have use of the NS16550_init and
806 NS16550_putc functions for the serial driver located at
807 drivers/serial/ns16550.c. This option is useful for saving space for
808 already greatly restricted images, including but not limited to
809 NAND_SPL configurations.
810
Andy Shevchenkoc65a7fe2017-02-28 14:04:10 +0200811config INTEL_MID_SERIAL
812 bool "Intel MID platform UART support"
813 depends on DM_SERIAL && OF_CONTROL
814 depends on INTEL_MID
815 select SYS_NS16550
816 help
817 Select this to enable a UART for Intel MID platforms.
818 This uses the ns16550 driver as a library.
819
Alexander Graf65bfb422018-01-25 12:05:51 +0100820config PL011_SERIAL
821 bool "ARM PL011 driver"
822 depends on !DM_SERIAL
823 help
824 Select this to enable a UART for platforms using PL011.
825
Alexander Graf633ef892018-01-25 12:05:52 +0100826config PL01X_SERIAL
827 bool "ARM PL010 and PL011 driver"
828 depends on DM_SERIAL
829 help
830 Select this to enable a UART for platforms using PL010 or PL011.
831
Simon Glassb3068ad2016-07-04 11:58:24 -0600832config ROCKCHIP_SERIAL
833 bool "Rockchip on-chip UART support"
Johan Jonkere5adbb22022-04-09 18:55:14 +0200834 depends on DM_SERIAL
Johan Jonker40cb6612022-04-09 18:55:13 +0200835 select SYS_NS16550
Simon Glassb3068ad2016-07-04 11:58:24 -0600836 help
837 Select this to enable a debug UART for Rockchip devices when using
Johan Jonkere5adbb22022-04-09 18:55:14 +0200838 OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
Simon Glassb3068ad2016-07-04 11:58:24 -0600839 This uses the ns16550 driver, converting the platdata from of-platdata
840 to the ns16550 format.
841
Mark Kettenis3b9ad302021-02-12 23:22:18 +0100842config S5P_SERIAL
843 bool "Support for Samsung S5P UART"
Mark Kettenis835cb5d2021-10-23 16:58:04 +0200844 depends on ARCH_APPLE || ARCH_EXYNOS || ARCH_S5PC1XX
Mark Kettenis3b9ad302021-02-12 23:22:18 +0100845 default y
846 help
847 Select this to enable Samsung S5P UART support.
848
Stefan Bosch86a200a2022-12-18 12:25:33 +0000849config S5P4418_PL011_SERIAL
850 bool "Extended PL011 driver for S5P4418"
851 depends on DM_SERIAL && PL01X_SERIAL && ARCH_NEXELL
852 default y
853 help
854 Select this to enable support of the PL011 UARTs in the S5P4418 SOC.
855 With this driver the UART-clocks are set to the appropriate rate
856 (if not 'skip-init').
857
Simon Glass8579a512015-03-06 13:19:03 -0700858config SANDBOX_SERIAL
859 bool "Sandbox UART support"
Masahiro Yamadaa8318672015-08-28 20:14:21 +0900860 depends on SANDBOX
Sean Anderson85898852022-04-04 14:17:58 -0400861 imply SERIAL_PUTS
Simon Glass8579a512015-03-06 13:19:03 -0700862 help
863 Select this to enable a seral UART for sandbox. This is required to
864 operate correctly, otherwise you will see no serial output from
865 sandbox. The emulated UART will display to the console and console
866 input will be fed into the UART. This allows you to interact with
867 U-Boot.
868
869 The operation of the console is controlled by the -t command-line
870 flag. In raw mode, U-Boot sees all characters from the terminal
871 before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
872 is processed by the terminal, and terminates U-Boot. Valid options
873 are:
874
875 -t raw-with-sigs Raw mode, Ctrl-C will terminate U-Boot
876 -t raw Raw mode, Ctrl-C is processed by U-Boot
877 -t cooked Cooked mode, Ctrl-C terminates
878
Marek Vasut2b2e4832017-07-21 23:18:46 +0200879config SCIF_CONSOLE
880 bool "Renesas SCIF UART support"
881 depends on SH || ARCH_RMOBILE
882 help
883 Select this to enable Renesas SCIF UART. To operate serial ports
884 on systems with RCar or SH SoCs, say Y to this option. If unsure,
885 say N.
886
Tom Rini83038892022-03-30 18:07:21 -0400887choice
888 prompt "SCIF console port"
889 depends on SCIF_CONSOLE && (!DM_SERIAL || (SPL && !SPL_DM_SERIAL))
890
891config CONS_SCIF0
892 bool "SCIF0"
893
894config CONS_SCIF1
895 bool "SCIF1"
896
897config CONS_SCIF2
898 bool "SCIF2"
899
900config CONS_SCIF4
901 bool "SCIF4"
902
903config CONS_SCIFA0
904 bool "SCIFA0"
905
906endchoice
907
Tom Rinica57d3b2022-03-30 18:07:22 -0400908config SH_SCIF_CLK_FREQ
909 int "SCIF console clock frequency"
910 depends on SCIF_CONSOLE && (!DM_SERIAL || (SPL && !SPL_DM_SERIAL))
911 default 65000000
912
Sean Andersond4f131a2022-03-22 16:59:24 -0400913config SEMIHOSTING_SERIAL
914 bool "Semihosting UART support"
915 depends on SEMIHOSTING && !SERIAL_RX_BUFFER
Sean Anderson760089a2022-04-04 14:18:00 -0400916 imply SERIAL_PUTS
Sean Andersond4f131a2022-03-22 16:59:24 -0400917 help
918 Select this to enable a serial UART using semihosting. Special halt
919 instructions will be issued which an external debugger (such as a
920 JTAG emulator) may interpret. The debugger will display U-Boot's
921 console output on the host system.
922
923 Enable this option only if you are using a debugger which supports
924 semihosting. If you are not using a debugger, this driver will halt
925 the boot.
926
Masahiro Yamada4261c642014-10-23 22:26:11 +0900927config UNIPHIER_SERIAL
Masahiro Yamada563ee4c2015-05-29 17:30:01 +0900928 bool "Support for UniPhier on-chip UART"
Masahiro Yamadaa8318672015-08-28 20:14:21 +0900929 depends on ARCH_UNIPHIER
Masahiro Yamadadf5fda02016-08-25 19:00:37 +0900930 default y
Masahiro Yamada4261c642014-10-23 22:26:11 +0900931 help
Masahiro Yamada563ee4c2015-05-29 17:30:01 +0900932 If you have a UniPhier based board and want to use the on-chip
933 serial ports, say Y to this option. If unsure, say N.
Simon Glass1c32bdb2015-07-27 15:47:23 -0600934
Michal Simek93ce5052015-12-09 12:50:05 +0100935config XILINX_UARTLITE
936 bool "Xilinx Uarlite support"
Michal Simek3239d712020-08-24 14:41:51 +0200937 depends on DM_SERIAL
Michal Simek93ce5052015-12-09 12:50:05 +0100938 help
939 If you have a Xilinx based board and want to use the uartlite
940 serial ports, say Y to this option. If unsure, say N.
941
Beniamino Galvanid1037e42016-05-08 08:30:16 +0200942config MESON_SERIAL
943 bool "Support for Amlogic Meson UART"
944 depends on DM_SERIAL && ARCH_MESON
945 help
946 If you have an Amlogic Meson based board and want to use the on-chip
947 serial ports, say Y to this option. If unsure, say N.
948
Mateusz Kulikowski8aac6972016-03-31 23:12:14 +0200949config MSM_SERIAL
950 bool "Qualcomm on-chip UART"
951 depends on DM_SERIAL
952 help
953 Support Data Mover UART used on Qualcomm Snapdragon SoCs.
954 It should support all Qualcomm devices with UARTDM version 1.4,
955 for example APQ8016 and MSM8916.
956 Single baudrate is supported in current implementation (115200).
Stefan Roese027276a2016-05-17 16:36:00 +0200957
Dzmitry Sankouskif5be5c82021-10-17 13:44:27 +0300958config MSM_GENI_SERIAL
959 bool "Qualcomm on-chip GENI UART"
Vladimir Zapolskiy75c472b2023-04-21 20:50:40 +0300960 select MISC
961 imply QCOM_GENI_SE
Dzmitry Sankouskif5be5c82021-10-17 13:44:27 +0300962 help
963 Support UART based on Generic Interface (GENI) Serial Engine (SE),
964 used on Qualcomm Snapdragon SoCs. Should support all qualcomm SOCs
965 with Qualcomm Universal Peripheral (QUP) Wrapper cores,
966 i.e. newer ones, starting from SDM845.
967 Driver works in FIFO mode.
968 Multiple baudrates supported.
969
Marek Vasut8cc43682023-05-06 16:43:31 +0200970config MXS_AUART_SERIAL
971 bool "MXS AUART"
972 depends on DM_SERIAL
973 help
974 Support for Freescale i.MX23 / i.MX28 AUART or Application UART IP.
975 This IP is present in the aforementioned SoCs, however this is not
976 the IP used to drive the Debug UART port, for that see PL01X_SERIAL .
977
Stefan Roese09e90762021-04-07 09:12:31 +0200978config OCTEON_SERIAL_BOOTCMD
979 bool "MIPS Octeon PCI remote bootcmd input"
980 depends on ARCH_OCTEON
981 depends on DM_SERIAL
982 select SYS_IS_IN_ENV
983 select CONSOLE_MUX
984 help
985 This driver supports remote input over the PCIe bus from a host
986 to U-Boot for entering commands. It is utilized by the host
987 commands 'oct-remote-load' and 'oct-remote-bootcmd'.
988
Stefan Roese01452252021-04-07 09:12:30 +0200989config OCTEON_SERIAL_PCIE_CONSOLE
990 bool "MIPS Octeon PCIe remote console"
991 depends on ARCH_OCTEON
992 depends on (DM_SERIAL && DM_STDIO)
993 select SYS_STDIO_DEREGISTER
994 select SYS_CONSOLE_IS_IN_ENV
995 select CONSOLE_MUX
996 help
997 This driver supports remote console over the PCIe bus when the
998 Octeon is running in PCIe target mode. The host program
999 'oct-remote-console' can be used to connect to this console.
1000 The console number will likely be 0 or 1.
1001
Lokesh Vutla42cb4b82018-08-27 15:55:24 +05301002config OMAP_SERIAL
1003 bool "Support for OMAP specific UART"
1004 depends on DM_SERIAL
Lokesh Vutla9bdec002018-08-27 15:57:08 +05301005 default y if (ARCH_OMAP2PLUS || ARCH_K3)
Lokesh Vutla42cb4b82018-08-27 15:55:24 +05301006 select SYS_NS16550
1007 help
1008 If you have an TI based SoC and want to use the on-chip serial
1009 port, say Y to this option. If unsure say N.
1010
Manivannan Sadhasivam01e47392018-06-14 23:38:38 +05301011config OWL_SERIAL
1012 bool "Actions Semi OWL UART"
1013 depends on DM_SERIAL && ARCH_OWL
1014 help
1015 If you have a Actions Semi OWL based board and want to use the on-chip
1016 serial port, say Y to this option. If unsure, say N.
1017 Single baudrate is supported in current implementation (115200).
1018
Anup Patelc0fe2842022-01-27 11:41:07 +05301019config HTIF_CONSOLE
1020 bool "RISC-V HTIF console support"
1021 depends on DM_SERIAL && 64BIT
1022 help
1023 Select this to enable host transfer interface (HTIF) based serial
1024 console. The HTIF device is quite common in RISC-V emulators and
1025 RISC-V ISS so this driver allows using U-Boot on such platforms.
1026
Anup Patel4b1d68f2018-12-15 11:35:15 +05301027config SIFIVE_SERIAL
1028 bool "SiFive UART support"
1029 depends on DM_SERIAL
1030 help
1031 This driver supports the SiFive UART. If unsure say N.
1032
Patrice Chotard42d742b2017-02-21 13:37:07 +01001033config STI_ASC_SERIAL
1034 bool "STMicroelectronics on-chip UART"
1035 depends on DM_SERIAL && ARCH_STI
1036 help
1037 Select this to enable Asynchronous Serial Controller available
1038 on STiH410 SoC. This is a basic implementation, it supports
1039 following baudrate 9600, 19200, 38400, 57600 and 115200.
1040
Patrice Chotard9e276502018-01-12 09:23:49 +01001041config STM32_SERIAL
Patrice Chotard72cefd52017-07-26 15:48:39 +02001042 bool "STMicroelectronics STM32 SoCs on-chip UART"
Patrick Delaunay85b53972018-03-12 10:46:10 +01001043 depends on DM_SERIAL && (STM32F4 || STM32F7 || STM32H7 || ARCH_STM32MP)
Patrice Chotard72cefd52017-07-26 15:48:39 +02001044 help
Patrick Delaunay85b53972018-03-12 10:46:10 +01001045 If you have a machine based on a STM32 F4, F7, H7 or MP1 SOC
1046 you can enable its onboard serial ports, say Y to this option.
Patrice Chotard3b2a14f2017-09-13 18:00:05 +02001047 If unsure, say N.
Patrice Chotard72cefd52017-07-26 15:48:39 +02001048
Michal Simekab754532017-11-06 09:16:05 +01001049config ZYNQ_SERIAL
1050 bool "Cadence (Xilinx Zynq) UART support"
Michal Simek3239d712020-08-24 14:41:51 +02001051 depends on DM_SERIAL
Michal Simekab754532017-11-06 09:16:05 +01001052 help
1053 This driver supports the Cadence UART. It is found e.g. in Xilinx
1054 Zynq/ZynqMP.
1055
developer90af58f2018-11-15 10:08:02 +08001056config MTK_SERIAL
1057 bool "MediaTek High-speed UART support"
1058 depends on DM_SERIAL
1059 help
1060 Select this to enable UART support for MediaTek High-speed UART
1061 devices. This driver uses driver model and requires a device
1062 tree binding to operate.
1063 The High-speed UART is compatible with the ns16550a UART and have
1064 its own high-speed registers.
1065
developere076b9e2020-11-12 16:36:05 +08001066config MT7620_SERIAL
1067 bool "UART driver for MediaTek MT7620 and earlier SoCs"
1068 depends on DM_SERIAL
1069 help
1070 Select this to enable UART support for MediaTek MT7620 and earlier
1071 SoCs. This driver uses driver model and requires a device tree
1072 binding to operate.
1073 The UART driver for MediaTek MT7620 and earlier SoCs is *NOT*
1074 compatible with the ns16550a UART.
1075
Christophe Leroy9ac4a542017-07-06 10:33:27 +02001076config MPC8XX_CONS
1077 bool "Console driver for MPC8XX"
Christophe Leroyb3510fb2018-03-16 17:20:41 +01001078 depends on MPC8xx
Christophe Leroy9ac4a542017-07-06 10:33:27 +02001079 default y
1080
Jim Liu1a2abf62022-04-19 13:32:21 +08001081config NPCM_SERIAL
1082 bool "Nuvoton NPCM UART driver"
1083 depends on DM_SERIAL
1084 help
1085 Select this to enable UART support for Nuvoton BMCs
1086 (NPCM7xx and NPCM8xx).
1087 The driver enables the onboard serial port with 8-N-1
1088 configuration.
1089
Peng Fan8162f8f2020-08-06 12:42:50 +03001090config XEN_SERIAL
1091 bool "XEN serial support"
1092 depends on XEN
1093 help
1094 If built without DM support, then requires Xen
1095 to be built with CONFIG_VERBOSE_DEBUG.
1096
Christophe Leroy9ac4a542017-07-06 10:33:27 +02001097choice
1098 prompt "Console port"
1099 default 8xx_CONS_SMC1
1100 depends on MPC8XX_CONS
1101 help
1102 Depending on board, select one serial port
1103 (CONFIG_8xx_CONS_SMC1 or CONFIG_8xx_CONS_SMC2)
1104
1105config 8xx_CONS_SMC1
1106 bool "SMC1"
1107
1108config 8xx_CONS_SMC2
1109 bool "SMC2"
1110
1111endchoice
1112
1113config SYS_SMC_RXBUFLEN
1114 int "Console Rx buffer length"
1115 depends on MPC8XX_CONS
1116 default 1
1117 help
1118 With CONFIG_SYS_SMC_RXBUFLEN it is possible to define
1119 the maximum receive buffer length for the SMC.
1120 This option is actual only for 8xx possible.
1121 If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE
1122 must be defined, to setup the maximum idle timeout for
1123 the SMC.
1124
1125config SYS_MAXIDLE
1126 int "maximum idle timeout"
1127 depends on MPC8XX_CONS
1128 default 0
1129
1130config SYS_BRGCLK_PRESCALE
1131 int "BRG Clock Prescale"
1132 depends on MPC8XX_CONS
1133 default 1
1134
1135config SYS_SDSR
1136 hex "SDSR Value"
1137 depends on MPC8XX_CONS
1138 default 0x83
1139
1140config SYS_SDMR
1141 hex "SDMR Value"
1142 depends on MPC8XX_CONS
Tom Rinif18679c2023-08-02 11:09:43 -04001143 default 0x0
Christophe Leroy9ac4a542017-07-06 10:33:27 +02001144
Simon Glass388f78e2021-08-08 12:20:13 -06001145endif