blob: 8761a6454079401b65f89ac221a03c77db92e510 [file] [log] [blame]
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +09001#
2# Serial device configuration
3#
4
Simon Glass52510482021-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 Yamada0b11dbf2015-07-26 02:46:26 +090017
Philipp Tomsichf40574e2017-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
Algapally Santosh Sagar88198922023-09-21 16:50:42 +053027config DEFAULT_ENV_IS_RW
28 bool "Make default environment as writable"
29 help
30 Select this to enable to make default environment writable. This
31 allows modifying the default environment.
32
Hans de Goede8c458582015-08-08 17:45:18 +020033config REQUIRE_SERIAL_CONSOLE
34 bool "Require a serial port for console"
35 # Running without a serial console is not supported by the
36 # non-dm serial code
37 depends on DM_SERIAL
38 default y
39 help
40 Require a serial port for the console, and panic if none is found
41 during serial port initialization (default y). Set this to n on
42 boards which have no debug serial port whatsoever.
43
Tom Rini6f6b7cf2018-03-06 19:02:27 -050044config SPECIFY_CONSOLE_INDEX
45 bool "Specify the port number used for console"
46 default y if !DM_SERIAL || (SPL && !SPL_DM_SERIAL) || \
47 (TPL && !TPL_DM_SERIAL)
48 help
49 In various cases, we need to specify which of the UART devices that
50 a board or SoC has available are to be used for the console device
51 in U-Boot.
52
Simon Glass92c55b62015-12-13 21:36:58 -070053config SERIAL_PRESENT
54 bool "Provide a serial driver"
55 depends on DM_SERIAL
56 default y
57 help
58 In very space-constrained devices even the full UART driver is too
59 large. In this case the debug UART can still be used in some cases.
60 This option enables the full UART in U-Boot, so if is it disabled,
61 the full UART driver will be omitted, thus saving space.
62
63config SPL_SERIAL_PRESENT
64 bool "Provide a serial driver in SPL"
Adam Forda0746672019-08-24 13:50:34 -050065 depends on DM_SERIAL && SPL
Simon Glass92c55b62015-12-13 21:36:58 -070066 default y
67 help
68 In very space-constrained devices even the full UART driver is too
69 large. In this case the debug UART can still be used in some cases.
70 This option enables the full UART in SPL, so if is it disabled,
71 the full UART driver will be omitted, thus saving space.
72
Simon Glassaa0ffe82018-10-01 12:22:20 -060073config TPL_SERIAL_PRESENT
74 bool "Provide a serial driver in TPL"
Adam Forda0746672019-08-24 13:50:34 -050075 depends on DM_SERIAL && TPL
Simon Glassaa0ffe82018-10-01 12:22:20 -060076 default y
77 help
78 In very space-constrained devices even the full UART driver is too
79 large. In this case the debug UART can still be used in some cases.
80 This option enables the full UART in TPL, so if is it disabled,
81 the full UART driver will be omitted, thus saving space.
82
Simon Glass747093d2022-04-30 00:56:53 -060083config VPL_SERIAL_PRESENT
84 bool "Provide a serial driver in VPL"
85 depends on DM_SERIAL && VPL
86 default y
87 help
88 In very space-constrained devices even the full UART driver is too
89 large. In this case the debug UART can still be used in some cases.
90 This option enables the full UART in TPL, so if is it disabled,
91 the full UART driver will be omitted, thus saving space.
92
Mylène Josserand7095f862017-04-02 12:59:11 +020093config CONS_INDEX
94 int "UART used for console"
Tom Rini6f6b7cf2018-03-06 19:02:27 -050095 depends on SPECIFY_CONSOLE_INDEX
96 range 0 6
Mylène Josserand7095f862017-04-02 12:59:11 +020097 default 1
98 help
Tom Rini6f6b7cf2018-03-06 19:02:27 -050099 Set this to match the UART number of the serial console.
Mylène Josserand7095f862017-04-02 12:59:11 +0200100
Masahiro Yamadada333ae2014-10-23 22:26:09 +0900101config DM_SERIAL
102 bool "Enable Driver Model for serial drivers"
103 depends on DM
Sean Anderson327bb3b2019-12-17 21:40:09 -0500104 select SYS_MALLOC_F
Masahiro Yamadada333ae2014-10-23 22:26:09 +0900105 help
Simon Glassf94a1be2015-02-05 21:41:35 -0700106 Enable driver model for serial. This replaces
107 drivers/serial/serial.c with the serial uclass, which
108 implements serial_putc() etc. The uclass interface is
109 defined in include/serial.h.
Masahiro Yamadaff247b72014-10-23 22:26:11 +0900110
Stefan Roese3ca7a062017-08-16 17:37:16 +0200111config SERIAL_RX_BUFFER
112 bool "Enable RX buffer for serial input"
113 depends on DM_SERIAL
114 help
115 Enable RX buffer support for the serial driver. This enables
116 pasting longer strings, even when the RX FIFO of the UART is
117 not big enough (e.g. 16 bytes on the normal NS16550).
118
119config SERIAL_RX_BUFFER_SIZE
120 int "RX buffer size"
121 depends on SERIAL_RX_BUFFER
122 default 256
123 help
124 The size of the RX buffer (needs to be power of 2)
125
Sean Anderson7a763472022-03-22 16:59:34 -0400126config SERIAL_PUTS
127 bool "Enable printing strings all at once"
128 depends on DM_SERIAL
129 help
130 Some serial drivers are much more efficient when printing multiple
131 characters at once rather than printing characters individually. This
132 can be because they can load a fifo, or because individual print
133 calls have a constant overhead. With this option set, the serial
134 subsystem will try to provide serial drivers with as many characters
135 at once as possible, instead of printing characters one by one. Most
136 serial drivers do not need this config to print efficiently. If
137 unsure, say N.
138
Alexander Grafae5326a2018-01-29 13:57:20 +0100139config SERIAL_SEARCH_ALL
140 bool "Search for serial devices after default one failed"
141 depends on DM_SERIAL
142 help
143 The serial subsystem only searches for a single serial device
144 that was instantiated, but does not check whether it was probed
145 correctly. With this option set, we make successful probing
146 mandatory and search for fallback serial devices if the default
147 device does not work.
148
149 If unsure, say N.
150
Vabhav Sharma67b2ed02020-12-09 10:42:04 +0530151config SERIAL_PROBE_ALL
152 bool "Probe all available serial devices"
153 depends on DM_SERIAL
Vabhav Sharma67b2ed02020-12-09 10:42:04 +0530154 help
155 The serial subsystem only probes for a single serial device,
156 but does not probe for other remaining serial devices.
157 With this option set, we make probing and searching for
158 all available devices optional.
159 Normally, U-Boot talks to one serial port at a time, but SBSA
160 compliant UART devices like PL011 require initialization
161 by firmware and to let the kernel use serial port for sending
162 and receiving the characters.
163
164 If unsure, say N.
165
Simon Glass891f7ae2017-04-02 09:50:32 -0600166config SPL_DM_SERIAL
Heiko Schocher04249902017-06-21 06:23:10 +0200167 bool "Enable Driver Model for serial drivers in SPL"
Tom Rini6f6b7cf2018-03-06 19:02:27 -0500168 depends on DM_SERIAL && SPL_DM
169 default y
Simon Glass891f7ae2017-04-02 09:50:32 -0600170 help
171 Enable driver model for serial in SPL. This replaces
172 drivers/serial/serial.c with the serial uclass, which
173 implements serial_putc() etc. The uclass interface is
174 defined in include/serial.h.
175
176config TPL_DM_SERIAL
Heiko Schocher04249902017-06-21 06:23:10 +0200177 bool "Enable Driver Model for serial drivers in TPL"
Thomas Hebb6920f002019-11-10 08:23:55 -0800178 depends on DM_SERIAL && TPL_DM
Simon Glass891f7ae2017-04-02 09:50:32 -0600179 default y if TPL && DM_SERIAL
180 help
181 Enable driver model for serial in TPL. This replaces
182 drivers/serial/serial.c with the serial uclass, which
183 implements serial_putc() etc. The uclass interface is
184 defined in include/serial.h.
185
Simon Glass747093d2022-04-30 00:56:53 -0600186config VPL_DM_SERIAL
187 bool "Enable Driver Model for serial drivers in VPL"
188 depends on DM_SERIAL
189 default y if VPL && DM_SERIAL
190 help
191 Enable driver model for serial in VPL. This replaces
192 drivers/serial/serial.c with the serial uclass, which
193 implements serial_putc() etc. The uclass interface is
194 defined in include/serial.h.
195
Simon Glass2f964aa2015-01-26 18:27:07 -0700196config DEBUG_UART
197 bool "Enable an early debug UART for debugging"
198 help
199 The debug UART is intended for use very early in U-Boot to debug
200 problems when an ICE or other debug mechanism is not available.
201
202 To use it you should:
203 - Make sure your UART supports this interface
204 - Enable CONFIG_DEBUG_UART
205 - Enable the CONFIG for your UART to tell it to provide this interface
206 (e.g. CONFIG_DEBUG_UART_NS16550)
207 - Define the required settings as needed (see below)
208 - Call debug_uart_init() before use
209 - Call debug_uart_putc() to output a character
210
211 Depending on your platform it may be possible to use this UART before
212 a stack is available.
213
214 If your UART does not support this interface you can probably add
215 support quite easily. Remember that you cannot use driver model and
216 it is preferred to use no stack.
217
218 You must not use this UART once driver model is working and the
219 serial drivers are up and running (done in serial_init()). Otherwise
220 the drivers may conflict and you will get strange output.
221
Simon Glass21d00432015-01-26 18:27:09 -0700222choice
223 prompt "Select which UART will provide the debug UART"
224 depends on DEBUG_UART
Heinrich Schuchardtdfe08372023-09-04 13:24:04 +0200225 default DEBUG_SBI_CONSOLE if RISCV_SMODE
Thomas Choub1e361b2015-11-19 21:48:03 +0800226 default DEBUG_UART_NS16550
Simon Glass21d00432015-01-26 18:27:09 -0700227
Thomas Chou220e8022015-10-23 07:36:37 +0800228config DEBUG_UART_ALTERA_JTAGUART
229 bool "Altera JTAG UART"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200230 depends on ALTERA_JTAG_UART
Thomas Chou220e8022015-10-23 07:36:37 +0800231 help
232 Select this to enable a debug UART using the altera_jtag_uart driver.
233 You will need to provide parameters to make this work. The driver will
234 be available until the real driver model serial is running.
235
Thomas Chouda2f8382015-10-21 21:26:54 +0800236config DEBUG_UART_ALTERA_UART
237 bool "Altera UART"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200238 depends on ALTERA_UART
Thomas Chouda2f8382015-10-21 21:26:54 +0800239 help
240 Select this to enable a debug UART using the altera_uart driver.
241 You will need to provide parameters to make this work. The driver will
242 be available until the real driver model serial is running.
243
Wills Wang60b49762016-03-16 16:59:57 +0800244config DEBUG_UART_AR933X
245 bool "QCA/Atheros ar933x"
246 depends on AR933X_UART
247 help
248 Select this to enable a debug UART using the ar933x uart driver.
249 You will need to provide parameters to make this work. The
250 driver will be available until the real driver model serial is
251 running.
252
Alexey Brodkin54705012018-05-21 16:42:07 +0300253config DEBUG_ARC_SERIAL
254 bool "ARC UART"
255 depends on ARC_SERIAL
256 help
257 Select this to enable a debug UART using the ARC UART driver.
258 You will need to provide parameters to make this work. The
259 driver will be available until the real driver model serial is
260 running.
261
Wenyou Yang998cf3c2016-10-17 09:49:55 +0800262config DEBUG_UART_ATMEL
263 bool "Atmel USART"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200264 depends on ATMEL_USART
Wenyou Yang998cf3c2016-10-17 09:49:55 +0800265 help
266 Select this to enable a debug UART using the atmel usart driver. You
267 will need to provide parameters to make this work. The driver will
268 be available until the real driver-model serial is running.
269
Álvaro Fernández Rojas30581042017-04-25 00:39:16 +0200270config DEBUG_UART_BCM6345
271 bool "BCM6345 UART"
272 depends on BCM6345_SERIAL
273 help
274 Select this to enable a debug UART on BCM6345 SoCs. You
275 will need to provide parameters to make this work. The driver will
276 be available until the real driver model serial is running.
277
Simon Glass21d00432015-01-26 18:27:09 -0700278config DEBUG_UART_NS16550
279 bool "ns16550"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200280 depends on SYS_NS16550
Simon Glass21d00432015-01-26 18:27:09 -0700281 help
282 Select this to enable a debug UART using the ns16550 driver. You
283 will need to provide parameters to make this work. The driver will
284 be available until the real driver model serial is running.
285
Simon Glass275854b2015-08-04 12:33:40 -0600286config DEBUG_EFI_CONSOLE
287 bool "EFI"
288 depends on EFI_APP
289 help
290 Select this to enable a debug console which calls back to EFI to
291 output to the console. This can be useful for early debugging of
292 U-Boot when running on top of EFI (Extensive Firmware Interface).
293 This is a type of BIOS used by PCs.
294
Samuel Holland41f7be72021-09-12 10:56:09 -0500295config DEBUG_SBI_CONSOLE
296 bool "SBI"
Heinrich Schuchardtdfe08372023-09-04 13:24:04 +0200297 depends on RISCV_SMODE
Samuel Holland41f7be72021-09-12 10:56:09 -0500298 help
299 Select this to enable a debug console which calls back to SBI to
300 output to the console. This can be useful for early debugging of
301 U-Boot when running on top of SBI (Supervisor Binary Interface).
Heinrich Schuchardtdfe08372023-09-04 13:24:04 +0200302 This implementation of the debug UART is not available while in
303 M-mode (e.g. during SPL).
Samuel Holland41f7be72021-09-12 10:56:09 -0500304
Simon Glassbf6e7022015-07-02 18:15:54 -0600305config DEBUG_UART_S5P
306 bool "Samsung S5P"
Mark Kettenisd520e1f2021-10-23 16:58:04 +0200307 depends on ARCH_APPLE || ARCH_EXYNOS || ARCH_S5PC1XX
Simon Glassbf6e7022015-07-02 18:15:54 -0600308 help
309 Select this to enable a debug UART using the serial_s5p driver. You
310 will need to provide parameters to make this work. The driver will
311 be available until the real driver-model serial is running.
312
Dzmitry Sankouski324df152021-10-17 13:44:27 +0300313config DEBUG_UART_MSM_GENI
314 bool "Qualcomm snapdragon"
315 depends on ARCH_SNAPDRAGON
316 help
317 Select this to enable a debug UART using the serial_msm driver. You
318 will need to provide parameters to make this work. The driver will
319 be available until the real driver-model serial is running.
320
Beniamino Galvanibfcef282016-05-08 08:30:16 +0200321config DEBUG_UART_MESON
322 bool "Amlogic Meson"
323 depends on MESON_SERIAL
324 help
325 Select this to enable a debug UART using the serial_meson driver. You
326 will need to provide parameters to make this work. The driver will
327 be available until the real driver-model serial is running.
328
Michal Simek4166ba32015-12-14 16:55:10 +0100329config DEBUG_UART_UARTLITE
330 bool "Xilinx Uartlite"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200331 depends on XILINX_UARTLITE
Michal Simek4166ba32015-12-14 16:55:10 +0100332 help
333 Select this to enable a debug UART using the serial_uartlite driver.
334 You will need to provide parameters to make this work. The driver will
335 be available until the real driver-model serial is running.
336
Michal Simek966bfa72016-02-23 10:02:28 +0100337config DEBUG_UART_ARM_DCC
338 bool "ARM DCC"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200339 depends on ARM_DCC
Michal Simek966bfa72016-02-23 10:02:28 +0100340 help
341 Select this to enable a debug UART using the ARM JTAG DCC port.
342 The DCC port can be used for very early debugging and doesn't require
343 any additional setting like address/baudrate/clock. On systems without
344 any serial interface this is the easiest way how to get console.
345 Every ARM core has own DCC port which is the part of debug interface.
346 This port is available at least on ARMv6, ARMv7, ARMv8 and XScale
347 architectures.
348
Stefan Roese6985d492016-05-17 16:36:00 +0200349config DEBUG_MVEBU_A3700_UART
350 bool "Marvell Armada 3700"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200351 depends on MVEBU_A3700_UART
Stefan Roese6985d492016-05-17 16:36:00 +0200352 help
353 Select this to enable a debug UART using the serial_mvebu driver. You
354 will need to provide parameters to make this work. The driver will
355 be available until the real driver-model serial is running.
356
Simon Glassc54c0a42015-10-17 19:41:22 -0600357config DEBUG_UART_ZYNQ
358 bool "Xilinx Zynq"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200359 depends on ZYNQ_SERIAL
Simon Glassc54c0a42015-10-17 19:41:22 -0600360 help
Michal Simek6bf87da2015-12-01 14:29:34 +0100361 Select this to enable a debug UART using the serial_zynq driver. You
Simon Glassc54c0a42015-10-17 19:41:22 -0600362 will need to provide parameters to make this work. The driver will
363 be available until the real driver-model serial is running.
364
Francois Retiefe43ce3f2015-10-29 12:55:34 +0200365config DEBUG_UART_APBUART
366 depends on LEON3
367 bool "Gaisler APBUART"
368 help
369 Select this to enable a debug UART using the serial_leon3 driver. You
370 will need to provide parameters to make this work. The driver will
371 be available until the real driver model serial is running.
372
Sergey Temerkhanov19de8152015-10-14 09:54:24 -0700373config DEBUG_UART_PL010
374 bool "pl010"
Tom Rinibc08dc52021-05-22 08:47:08 -0400375 depends on PL01X_SERIAL
Sergey Temerkhanov19de8152015-10-14 09:54:24 -0700376 help
377 Select this to enable a debug UART using the pl01x driver with the
378 PL010 UART type. You will need to provide parameters to make this
379 work. The driver will be available until the real driver model
380 serial is running.
381
382config DEBUG_UART_PL011
383 bool "pl011"
Michal Simek5e9d2832021-06-24 13:36:23 +0200384 depends on PL01X_SERIAL || PL011_SERIAL
Sergey Temerkhanov19de8152015-10-14 09:54:24 -0700385 help
386 Select this to enable a debug UART using the pl01x driver with the
387 PL011 UART type. You will need to provide parameters to make this
388 work. The driver will be available until the real driver model
389 serial is running.
390
Paul Thacker9e160ee2016-01-28 15:30:14 +0530391config DEBUG_UART_PIC32
392 bool "Microchip PIC32"
393 depends on PIC32_SERIAL
394 help
395 Select this to enable a debug UART using the serial_pic32 driver. You
396 will need to provide parameters to make this work. The driver will
397 be available until the real driver model serial is running.
398
Jagan Teki61366b72017-06-06 05:31:51 +0000399config DEBUG_UART_MXC
400 bool "IMX Serial port"
401 depends on MXC_UART
402 help
403 Select this to enable a debug UART using the serial_mxc driver. You
404 will need to provide parameters to make this work. The driver will
405 be available until the real driver model serial is running.
406
Simon Glassee441762018-10-01 11:55:15 -0600407config DEBUG_UART_SANDBOX
408 bool "sandbox"
409 depends on SANDBOX_SERIAL
410 help
411 Select this to enable the debug UART using the sandbox driver. This
412 provides basic serial output from the console without needing to
413 start up driver model. The driver will be available until the real
414 driver model serial is running.
415
Sean Anderson74d11d32022-03-22 16:59:24 -0400416config DEBUG_UART_SEMIHOSTING
417 bool "semihosting"
418 depends on SEMIHOSTING_SERIAL
419 help
420 Select this to enable the debug UART using the semihosting driver.
421 This provides basic serial output from the console without needing to
422 start up driver model. The driver will be available until the real
423 driver model serial is running.
424
Marek Vasut836d1bf2023-02-28 22:17:22 +0100425config DEBUG_UART_SCIF
426 bool "Renesas SCIF UART"
427 depends on SH || ARCH_RMOBILE
428 help
429 Select this to enable a debug UART using the serial_sh driver. You
430 will need to provide parameters to make this work. The driver will
431 be available until the real driver-model serial is running.
432
Anup Patele2842492018-12-15 11:35:15 +0530433config DEBUG_UART_SIFIVE
434 bool "SiFive UART"
Michal Simek27b4a4a2020-07-10 12:41:13 +0200435 depends on SIFIVE_SERIAL
Anup Patele2842492018-12-15 11:35:15 +0530436 help
437 Select this to enable a debug UART using the serial_sifive driver. You
438 will need to provide parameters to make this work. The driver will
439 be available until the real driver-model serial is running.
440
Patrick Delaunay215c8be2018-05-17 14:50:42 +0200441config DEBUG_UART_STM32
442 bool "STMicroelectronics STM32"
443 depends on STM32_SERIAL
444 help
445 Select this to enable a debug UART using the serial_stm32 driver
446 You will need to provide parameters to make this work.
447 The driver will be available until the real driver model
448 serial is running.
449
Masahiro Yamadad5cf3292016-03-18 16:41:52 +0900450config DEBUG_UART_UNIPHIER
451 bool "UniPhier on-chip UART"
452 depends on ARCH_UNIPHIER
453 help
454 Select this to enable a debug UART using the UniPhier on-chip UART.
455 You will need to provide DEBUG_UART_BASE to make this work. The
456 driver will be available until the real driver-model serial is
457 running.
458
Lokesh Vutlaa52cf082017-04-22 15:57:25 +0530459config DEBUG_UART_OMAP
460 bool "OMAP uart"
Michal Simek4cc24ae2020-05-28 12:05:12 +0200461 depends on OMAP_SERIAL
Lokesh Vutlaa52cf082017-04-22 15:57:25 +0530462 help
463 Select this to enable a debug UART using the omap ns16550 driver.
464 You will need to provide parameters to make this work. The driver
465 will be available until the real driver model serial is running.
466
Ryder Lee849b1162018-11-15 10:08:02 +0800467config DEBUG_UART_MTK
468 bool "MediaTek High-speed UART"
469 depends on MTK_SERIAL
470 help
471 Select this to enable a debug UART using the MediaTek High-speed
472 UART driver.
473 You will need to provide parameters to make this work. The
474 driver will be available until the real driver model serial is
475 running.
476
Weijie Gao2161f1f2020-11-12 16:36:05 +0800477config DEBUG_UART_MT7620
478 bool "UART driver for MediaTek MT7620 and earlier SoCs"
479 depends on MT7620_SERIAL
480 help
481 Select this to enable a debug UART using the UART driver for
482 MediaTek MT7620 and earlier SoCs.
483 You will need to provide parameters to make this work. The
484 driver will be available until the real driver model serial is
485 running.
486
Simon Glass21d00432015-01-26 18:27:09 -0700487endchoice
488
Simon Glass2f964aa2015-01-26 18:27:07 -0700489config DEBUG_UART_BASE
490 hex "Base address of UART"
Tom Rini467591b2020-10-23 09:15:55 -0400491 depends on DEBUG_UART
Tom Rinia077ac12023-08-02 11:09:43 -0400492 default 0x0 if DEBUG_SBI_CONSOLE
493 default 0x0 if DEBUG_UART_SANDBOX
Michal Simekad55d992022-06-06 09:44:01 +0200494 default 0xff000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQMP
495 default 0xe0000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQ
Simon Glass2f964aa2015-01-26 18:27:07 -0700496 help
497 This is the base address of your UART for memory-mapped UARTs.
498
499 A default should be provided by your board, but if not you will need
500 to use the correct value here.
501
Pali Rohár9f971ff2022-05-06 11:05:15 +0200502config SPL_DEBUG_UART_BASE
503 hex "Base address of UART for SPL"
504 depends on SPL && DEBUG_UART
505 default DEBUG_UART_BASE
506 help
507 This is the base address of your UART for memory-mapped UARTs for SPL.
508
Pali Rohár958789f2022-05-16 18:49:09 +0200509config TPL_DEBUG_UART_BASE
510 hex "Base address of UART for TPL"
511 depends on TPL && DEBUG_UART
512 default DEBUG_UART_BASE
513 help
514 This is the base address of your UART for memory-mapped UARTs for TPL.
515
Simon Glass2f964aa2015-01-26 18:27:07 -0700516config DEBUG_UART_CLOCK
517 int "UART input clock"
Tom Rini467591b2020-10-23 09:15:55 -0400518 depends on DEBUG_UART
Samuel Holland41f7be72021-09-12 10:56:09 -0500519 default 0 if DEBUG_SBI_CONSOLE
Simon Glassee441762018-10-01 11:55:15 -0600520 default 0 if DEBUG_UART_SANDBOX
Marek Behún4a8ad582021-07-09 17:40:59 +0200521 default 0 if DEBUG_MVEBU_A3700_UART
Michal Simekad55d992022-06-06 09:44:01 +0200522 default 100000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQMP
523 default 50000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQ
Simon Glass2f964aa2015-01-26 18:27:07 -0700524 help
525 The UART input clock determines the speed of the internal UART
526 circuitry. The baud rate is derived from this by dividing the input
527 clock down.
528
529 A default should be provided by your board, but if not you will need
530 to use the correct value here.
531
Simon Glassdd0b0122015-02-27 22:06:25 -0700532config DEBUG_UART_SHIFT
533 int "UART register shift"
Tom Rini467591b2020-10-23 09:15:55 -0400534 depends on DEBUG_UART
Simon Glassdd0b0122015-02-27 22:06:25 -0700535 default 0 if DEBUG_UART
536 help
537 Some UARTs (notably ns16550) support different register layouts
538 where the registers are spaced either as bytes, words or some other
539 value. Use this value to specify the shift to use, where 0=byte
540 registers, 2=32-bit word registers, etc.
541
Simon Glass0e977bc2015-10-18 19:51:24 -0600542config DEBUG_UART_BOARD_INIT
543 bool "Enable board-specific debug UART init"
544 depends on DEBUG_UART
545 help
546 Some boards need to set things up before the debug UART can be used.
547 On these boards a call to debug_uart_init() is insufficient. When
548 this option is enabled, the function board_debug_uart_init() will
549 be called when debug_uart_init() is called. You can put any code
550 here that is needed to set up the UART ready for use, such as set
551 pin multiplexing or enable clocks.
552
Simon Glassc7fefcb2015-10-18 19:51:25 -0600553config DEBUG_UART_ANNOUNCE
554 bool "Show a message when the debug UART starts up"
555 depends on DEBUG_UART
556 help
557 Enable this option to show a message when the debug UART is ready
558 for use. You will see a message like "<debug_uart> " as soon as
559 U-Boot has the UART ready for use (i.e. your code calls
560 debug_uart_init()). This can be useful just as a check that
561 everything is working.
562
Sergey Temerkhanov19de8152015-10-14 09:54:24 -0700563config DEBUG_UART_SKIP_INIT
564 bool "Skip UART initialization"
Simon Goldschmidt7828e3c2019-01-09 20:27:09 +0100565 depends on DEBUG_UART
Sergey Temerkhanov19de8152015-10-14 09:54:24 -0700566 help
567 Select this if the UART you want to use for debug output is already
568 initialized by the time U-Boot starts its execution.
569
Simon Goldschmidtc4448bd2019-01-09 20:35:31 +0100570config DEBUG_UART_NS16550_CHECK_ENABLED
571 bool "Check if UART is enabled on output"
572 depends on DEBUG_UART
573 depends on DEBUG_UART_NS16550
574 help
575 Select this if puts()/putc() might be called before the debug UART
576 has been initialized. If this is disabled, putc() might sit in a
577 tight loop if it is called before debug_uart_init() has been called.
578
579 Note that this does not work for every ns16550-compatible UART and
580 so has to be enabled carefully or you might notice lost characters.
581
Thomas Chou220e8022015-10-23 07:36:37 +0800582config ALTERA_JTAG_UART
583 bool "Altera JTAG UART support"
584 depends on DM_SERIAL
585 help
586 Select this to enable an JTAG UART for Altera devices.The JTAG UART
587 core implements a method to communicate serial character streams
588 between a host PC and a Qsys system on an Altera FPGA. Please find
589 details on the "Embedded Peripherals IP User Guide" of Altera.
590
591config ALTERA_JTAG_UART_BYPASS
592 bool "Bypass output when no connection"
593 depends on ALTERA_JTAG_UART
594 help
595 Bypass console output and keep going even if there is no JTAG
596 terminal connection with the host. The console output will resume
597 once the JTAG terminal is connected. Without the bypass, the console
598 output will wait forever until a JTAG terminal is connected. If you
599 not are sure, say Y.
600
Thomas Chouda2f8382015-10-21 21:26:54 +0800601config ALTERA_UART
602 bool "Altera UART support"
603 depends on DM_SERIAL
604 help
605 Select this to enable an UART for Altera devices. Please find
606 details on the "Embedded Peripherals IP User Guide" of Altera.
607
Wills Wang60b49762016-03-16 16:59:57 +0800608config AR933X_UART
609 bool "QCA/Atheros ar933x UART support"
610 depends on DM_SERIAL && SOC_AR933X
611 help
612 Select this to enable UART support for QCA/Atheros ar933x
613 devices. This driver uses driver model and requires a device
614 tree binding to operate, please refer to the document at
615 doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
616
Alexey Brodkind7ac1852018-05-21 16:40:05 +0300617config ARC_SERIAL
618 bool "ARC UART support"
619 depends on DM_SERIAL
620 help
621 Select this to enable support for ARC UART now typically
622 only used in Synopsys DesignWare ARC simulators like nSIM.
623
Tom Rinic2a38412020-06-02 17:26:33 -0400624config ARM_DCC
625 bool "ARM Debug Communication Channel (DCC) as UART support"
626 depends on ARM
627 help
628 Select this to enable using the ARM DCC as a form of UART.
629
Wenyou Yang6ec739a2016-10-17 09:49:54 +0800630config ATMEL_USART
631 bool "Atmel USART support"
632 help
633 Select this to enable USART support for Atmel SoCs. It can be
634 configured in the device tree, and input clock frequency can
635 be got from the clk node.
636
Stefan Roesee567dfb2019-04-03 15:24:19 +0200637config SPL_UART_CLOCK
638 int "SPL fixed UART input clock"
639 depends on ATMEL_USART && SPL && !SPL_CLK
640 default 132096000 if ARCH_AT91
641 help
642 Provide a fixed clock value as input to the UART controller. This
643 might be needed on platforms which can't enable CONFIG_SPL_CLK
644 because of SPL image size restrictions.
645
Alexander Graffa487592018-01-25 12:05:53 +0100646config BCM283X_MU_SERIAL
647 bool "Support for BCM283x Mini-UART"
648 depends on DM_SERIAL && ARCH_BCM283X
649 default y
650 help
651 Select this to enable Mini-UART support on BCM283X family of SoCs.
652
Alexander Graf60019852018-01-25 12:05:55 +0100653config BCM283X_PL011_SERIAL
654 bool "Support for BCM283x PL011 UART"
655 depends on PL01X_SERIAL && ARCH_BCM283X
656 default y
657 help
658 Select this to enable an overriding PL011 driver for BCM283X SoCs
659 that supports automatic disable, so that it only gets used when
660 the UART is actually muxed.
661
Álvaro Fernández Rojas30581042017-04-25 00:39:16 +0200662config BCM6345_SERIAL
663 bool "Support for BCM6345 UART"
Álvaro Fernández Rojase9e8d802018-12-01 18:42:09 +0100664 depends on DM_SERIAL
Álvaro Fernández Rojas30581042017-04-25 00:39:16 +0200665 help
666 Select this to enable UART on BCM6345 SoCs.
667
Simon Glass44482e82019-12-19 17:58:20 -0700668config COREBOOT_SERIAL
669 bool "Coreboot UART support"
670 depends on DM_SERIAL
671 default y if SYS_COREBOOT
672 select SYS_NS16550
673 help
674 Select this to enable a ns16550-style UART where the platform data
675 comes from the coreboot 'sysinfo' tables. This allows U-Boot to have
676 a serial console on any platform without needing to change the
677 device tree, etc.
678
Simon Glassb29dbf92023-05-04 16:55:00 -0600679config COREBOOT_SERIAL_FROM_DBG2
680 bool "Obtain UART from ACPI tables"
681 depends on COREBOOT_SERIAL
Simon Glassb1350632023-09-19 21:00:07 -0600682 default y
Simon Glassb29dbf92023-05-04 16:55:00 -0600683 help
684 Select this to try to find a DBG2 record in the ACPI tables, in the
685 event that coreboot does not provide information about the UART in the
686 normal sysinfo tables. This provides a useful fallback when serial
687 is not enabled in coreboot.
688
Jason Li0de653d2020-01-30 12:34:58 -0800689config CORTINA_UART
690 bool "Cortina UART support"
691 depends on DM_SERIAL
692 help
693 Select this to enable UART support for Cortina-Access UART devices
694 found on CAxxxx SoCs.
695
Tuomas Tynkkynenfac379e2018-04-09 04:34:34 +0300696config FSL_LINFLEXUART
697 bool "Freescale Linflex UART support"
698 depends on DM_SERIAL
699 help
700 Select this to enable the Linflex serial module found on some
701 NXP SoCs like S32V234.
702
Bin Meng5ed07cf2016-01-13 19:39:00 -0800703config FSL_LPUART
704 bool "Freescale LPUART support"
705 help
706 Select this to enable a Low Power UART for Freescale VF610 and
707 QorIQ Layerscape devices.
708
Tom Rinidb48e522022-03-23 17:20:00 -0400709config LPUART
710 bool "Use the LPUART as console"
711 depends on FSL_LPUART
712
Stefan Roese6985d492016-05-17 16:36:00 +0200713config MVEBU_A3700_UART
714 bool "UART support for Armada 3700"
Stefan Roese6985d492016-05-17 16:36:00 +0200715 help
716 Choose this option to add support for UART driver on the Marvell
717 Armada 3700 SoC. The base address is configured via DT.
718
Angelo Dureghello461ea072019-03-13 21:46:49 +0100719config MCFUART
720 bool "Freescale ColdFire UART support"
721 help
722 Choose this option to add support for UART driver on the ColdFire
723 SoC's family. The serial communication channel provides a full-duplex
724 asynchronous/synchronous receiver and transmitter deriving an
725 operating frequency from the internal bus clock or an external clock.
726
Jagan Teki8829e662016-10-08 18:00:08 +0530727config MXC_UART
728 bool "IMX serial port support"
Tom Rini8ba59602021-09-09 07:54:50 -0400729 depends on ARCH_MX31 || MX5 || MX6 || MX7 || IMX8M
Jagan Teki8829e662016-10-08 18:00:08 +0530730 help
731 If you have a machine based on a Motorola IMX CPU you
732 can enable its onboard serial port by enabling this option.
733
Keng Soon Cheahcac73f22017-08-24 20:29:07 -0700734config NULLDEV_SERIAL
735 bool "Null serial device"
736 help
737 Select this to enable null serial device support. A null serial
738 device merely acts as a placeholder for a serial device and does
739 nothing for all it's operation.
740
Paul Thacker9e160ee2016-01-28 15:30:14 +0530741config PIC32_SERIAL
742 bool "Support for Microchip PIC32 on-chip UART"
743 depends on DM_SERIAL && MACH_PIC32
744 default y
745 help
746 Support for the UART found on Microchip PIC32 SoC's.
747
Tom Rini9591b632022-12-04 09:39:03 -0500748config SYS_NS16550_SERIAL
749 bool "NS16550 UART or compatible legacy driver"
750 depends on !DM_SERIAL
751 select SYS_NS16550
752
753config SPL_SYS_NS16550_SERIAL
754 bool "NS16550 UART or compatible legacy driver in SPL"
755 depends on SPL && !SPL_DM_SERIAL
756 default y if SYS_NS16550_SERIAL || ARCH_SUNXI || ARCH_OMAP2PLUS
757 select SYS_NS16550
758
Thomas Chou9e390032015-11-19 21:48:14 +0800759config SYS_NS16550
760 bool "NS16550 UART or compatible"
761 help
762 Support NS16550 UART or compatible. This can be enabled in the
763 device tree with the correct input clock frequency. If the input
764 clock frequency is not defined in the device tree, the macro
Tom Rini91092132022-11-16 13:10:28 -0500765 CFG_SYS_NS16550_CLK defined in a legacy board header file will
Thomas Chou9e390032015-11-19 21:48:14 +0800766 be used. It can be a constant or a function to get clock, eg,
767 get_serial_clock().
768
Simon Glass62cbde42019-12-19 17:58:18 -0700769config NS16550_DYNAMIC
770 bool "Allow NS16550 to be configured at runtime"
Tom Rini9591b632022-12-04 09:39:03 -0500771 depends on SYS_NS16550
Simon Glass62cbde42019-12-19 17:58:18 -0700772 default y if SYS_COREBOOT || SYS_SLIMBOOTLOADER
773 help
774 Enable this option to allow device-tree control of the driver.
775
776 Normally this driver is controlled by the following options:
777
Simon Glass62cbde42019-12-19 17:58:18 -0700778 It is not a good practice for a driver to be statically configured,
779 since it prevents the same driver being used for different types of
780 UARTs in a system. This option avoids this problem at the cost of a
781 slightly increased code size.
782
Tom Rini9591b632022-12-04 09:39:03 -0500783config SYS_NS16550_MEM32
784 bool "If memory-mapped, 32bit access is needed for ns16550 register access"
785 depends on SYS_NS16550
786 help
787 If enabled, if memory-mapped, indicates that 32-bit access should be
788 used (instead of 8-bit) for register access.
789
790config SYS_NS16550_PORT_MAPPED
791 bool "Port I/O is used for ns16550 register access"
792 depends on SYS_NS16550
793 help
794 If enabled, port I/O is used for ns16550 register access. If not
795 enabled, then the UART is memory-mapped.
796
797config SYS_NS16550_REG_SIZE
798 int "ns16550 register width and endianness"
799 depends on SYS_NS16550_SERIAL || SPL_SYS_NS16550_SERIAL
800 range -4 4
801 default -4 if ARCH_OMAP2PLUS || ARCH_SUNXI
802 default 1
803 help
804 Indicates register width and also endianness. If positive, big-endian
805 access is used. If negative, little-endian is used.
806
807config SPL_NS16550_MIN_FUNCTIONS
808 bool "Only provide NS16550_init and NS16550_putc in SPL"
809 depends on SPL_SYS_NS16550_SERIAL && PPC
810 help
811 Enable this if you desire to only have use of the NS16550_init and
812 NS16550_putc functions for the serial driver located at
813 drivers/serial/ns16550.c. This option is useful for saving space for
814 already greatly restricted images, including but not limited to
815 NAND_SPL configurations.
816
Andy Shevchenkoc5f8dd42017-02-28 14:04:10 +0200817config INTEL_MID_SERIAL
818 bool "Intel MID platform UART support"
819 depends on DM_SERIAL && OF_CONTROL
820 depends on INTEL_MID
821 select SYS_NS16550
822 help
823 Select this to enable a UART for Intel MID platforms.
824 This uses the ns16550 driver as a library.
825
Alexander Grafd10fc502018-01-25 12:05:51 +0100826config PL011_SERIAL
827 bool "ARM PL011 driver"
828 depends on !DM_SERIAL
829 help
830 Select this to enable a UART for platforms using PL011.
831
Alexander Grafcf2c7782018-01-25 12:05:52 +0100832config PL01X_SERIAL
833 bool "ARM PL010 and PL011 driver"
834 depends on DM_SERIAL
835 help
836 Select this to enable a UART for platforms using PL010 or PL011.
837
Simon Glass2fc24d52016-07-04 11:58:24 -0600838config ROCKCHIP_SERIAL
839 bool "Rockchip on-chip UART support"
Johan Jonker9ee6c072022-04-09 18:55:14 +0200840 depends on DM_SERIAL
Johan Jonker6dcaf2d2022-04-09 18:55:13 +0200841 select SYS_NS16550
Simon Glass2fc24d52016-07-04 11:58:24 -0600842 help
843 Select this to enable a debug UART for Rockchip devices when using
Johan Jonker9ee6c072022-04-09 18:55:14 +0200844 OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
Simon Glass2fc24d52016-07-04 11:58:24 -0600845 This uses the ns16550 driver, converting the platdata from of-platdata
846 to the ns16550 format.
847
Mark Kettenis0d9ff952021-02-12 23:22:18 +0100848config S5P_SERIAL
849 bool "Support for Samsung S5P UART"
Mark Kettenisd520e1f2021-10-23 16:58:04 +0200850 depends on ARCH_APPLE || ARCH_EXYNOS || ARCH_S5PC1XX
Mark Kettenis0d9ff952021-02-12 23:22:18 +0100851 default y
852 help
853 Select this to enable Samsung S5P UART support.
854
Stefan Bosch5745de22022-12-18 12:25:33 +0000855config S5P4418_PL011_SERIAL
856 bool "Extended PL011 driver for S5P4418"
857 depends on DM_SERIAL && PL01X_SERIAL && ARCH_NEXELL
858 default y
859 help
860 Select this to enable support of the PL011 UARTs in the S5P4418 SOC.
861 With this driver the UART-clocks are set to the appropriate rate
862 (if not 'skip-init').
863
Simon Glassaf282242015-03-06 13:19:03 -0700864config SANDBOX_SERIAL
865 bool "Sandbox UART support"
Masahiro Yamada2ea65f32015-08-28 20:14:21 +0900866 depends on SANDBOX
Sean Andersonefa51f22022-04-04 14:17:58 -0400867 imply SERIAL_PUTS
Simon Glassaf282242015-03-06 13:19:03 -0700868 help
869 Select this to enable a seral UART for sandbox. This is required to
870 operate correctly, otherwise you will see no serial output from
871 sandbox. The emulated UART will display to the console and console
872 input will be fed into the UART. This allows you to interact with
873 U-Boot.
874
875 The operation of the console is controlled by the -t command-line
876 flag. In raw mode, U-Boot sees all characters from the terminal
877 before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
878 is processed by the terminal, and terminates U-Boot. Valid options
879 are:
880
881 -t raw-with-sigs Raw mode, Ctrl-C will terminate U-Boot
882 -t raw Raw mode, Ctrl-C is processed by U-Boot
883 -t cooked Cooked mode, Ctrl-C terminates
884
Marek Vasut03a38a32017-07-21 23:18:46 +0200885config SCIF_CONSOLE
886 bool "Renesas SCIF UART support"
887 depends on SH || ARCH_RMOBILE
888 help
889 Select this to enable Renesas SCIF UART. To operate serial ports
890 on systems with RCar or SH SoCs, say Y to this option. If unsure,
891 say N.
892
Tom Rinif9f32092022-03-30 18:07:21 -0400893choice
894 prompt "SCIF console port"
895 depends on SCIF_CONSOLE && (!DM_SERIAL || (SPL && !SPL_DM_SERIAL))
896
897config CONS_SCIF0
898 bool "SCIF0"
899
900config CONS_SCIF1
901 bool "SCIF1"
902
903config CONS_SCIF2
904 bool "SCIF2"
905
906config CONS_SCIF4
907 bool "SCIF4"
908
909config CONS_SCIFA0
910 bool "SCIFA0"
911
912endchoice
913
Tom Rini5d14c332022-03-30 18:07:22 -0400914config SH_SCIF_CLK_FREQ
915 int "SCIF console clock frequency"
916 depends on SCIF_CONSOLE && (!DM_SERIAL || (SPL && !SPL_DM_SERIAL))
917 default 65000000
918
Sean Anderson74d11d32022-03-22 16:59:24 -0400919config SEMIHOSTING_SERIAL
920 bool "Semihosting UART support"
921 depends on SEMIHOSTING && !SERIAL_RX_BUFFER
Sean Anderson34855b32022-04-04 14:18:00 -0400922 imply SERIAL_PUTS
Sean Anderson74d11d32022-03-22 16:59:24 -0400923 help
924 Select this to enable a serial UART using semihosting. Special halt
925 instructions will be issued which an external debugger (such as a
926 JTAG emulator) may interpret. The debugger will display U-Boot's
927 console output on the host system.
928
929 Enable this option only if you are using a debugger which supports
930 semihosting. If you are not using a debugger, this driver will halt
931 the boot.
932
Masahiro Yamadaff247b72014-10-23 22:26:11 +0900933config UNIPHIER_SERIAL
Masahiro Yamadab6ef3a32015-05-29 17:30:01 +0900934 bool "Support for UniPhier on-chip UART"
Masahiro Yamada2ea65f32015-08-28 20:14:21 +0900935 depends on ARCH_UNIPHIER
Masahiro Yamada85dc2fe2016-08-25 19:00:37 +0900936 default y
Masahiro Yamadaff247b72014-10-23 22:26:11 +0900937 help
Masahiro Yamadab6ef3a32015-05-29 17:30:01 +0900938 If you have a UniPhier based board and want to use the on-chip
939 serial ports, say Y to this option. If unsure, say N.
Simon Glassdcfe4a52015-07-27 15:47:23 -0600940
Michal Simek54e24d32015-12-09 12:50:05 +0100941config XILINX_UARTLITE
942 bool "Xilinx Uarlite support"
Michal Simek54fdef22020-08-24 14:41:51 +0200943 depends on DM_SERIAL
Michal Simek54e24d32015-12-09 12:50:05 +0100944 help
945 If you have a Xilinx based board and want to use the uartlite
946 serial ports, say Y to this option. If unsure, say N.
947
Beniamino Galvanibfcef282016-05-08 08:30:16 +0200948config MESON_SERIAL
949 bool "Support for Amlogic Meson UART"
950 depends on DM_SERIAL && ARCH_MESON
951 help
952 If you have an Amlogic Meson based board and want to use the on-chip
953 serial ports, say Y to this option. If unsure, say N.
954
Mateusz Kulikowski142a20c2016-03-31 23:12:14 +0200955config MSM_SERIAL
956 bool "Qualcomm on-chip UART"
957 depends on DM_SERIAL
958 help
959 Support Data Mover UART used on Qualcomm Snapdragon SoCs.
960 It should support all Qualcomm devices with UARTDM version 1.4,
961 for example APQ8016 and MSM8916.
962 Single baudrate is supported in current implementation (115200).
Stefan Roese6985d492016-05-17 16:36:00 +0200963
Dzmitry Sankouski324df152021-10-17 13:44:27 +0300964config MSM_GENI_SERIAL
965 bool "Qualcomm on-chip GENI UART"
Vladimir Zapolskiy10ea2a72023-04-21 20:50:40 +0300966 select MISC
967 imply QCOM_GENI_SE
Dzmitry Sankouski324df152021-10-17 13:44:27 +0300968 help
969 Support UART based on Generic Interface (GENI) Serial Engine (SE),
970 used on Qualcomm Snapdragon SoCs. Should support all qualcomm SOCs
971 with Qualcomm Universal Peripheral (QUP) Wrapper cores,
972 i.e. newer ones, starting from SDM845.
973 Driver works in FIFO mode.
974 Multiple baudrates supported.
975
Marek Vasutff476892023-05-06 16:43:31 +0200976config MXS_AUART_SERIAL
977 bool "MXS AUART"
978 depends on DM_SERIAL
979 help
980 Support for Freescale i.MX23 / i.MX28 AUART or Application UART IP.
981 This IP is present in the aforementioned SoCs, however this is not
982 the IP used to drive the Debug UART port, for that see PL01X_SERIAL .
983
Stefan Roesef1054662021-04-07 09:12:31 +0200984config OCTEON_SERIAL_BOOTCMD
985 bool "MIPS Octeon PCI remote bootcmd input"
986 depends on ARCH_OCTEON
987 depends on DM_SERIAL
988 select SYS_IS_IN_ENV
989 select CONSOLE_MUX
990 help
991 This driver supports remote input over the PCIe bus from a host
992 to U-Boot for entering commands. It is utilized by the host
993 commands 'oct-remote-load' and 'oct-remote-bootcmd'.
994
Stefan Roese4dead102021-04-07 09:12:30 +0200995config OCTEON_SERIAL_PCIE_CONSOLE
996 bool "MIPS Octeon PCIe remote console"
997 depends on ARCH_OCTEON
998 depends on (DM_SERIAL && DM_STDIO)
999 select SYS_STDIO_DEREGISTER
1000 select SYS_CONSOLE_IS_IN_ENV
1001 select CONSOLE_MUX
1002 help
1003 This driver supports remote console over the PCIe bus when the
1004 Octeon is running in PCIe target mode. The host program
1005 'oct-remote-console' can be used to connect to this console.
1006 The console number will likely be 0 or 1.
1007
Lokesh Vutla5d754192018-08-27 15:55:24 +05301008config OMAP_SERIAL
1009 bool "Support for OMAP specific UART"
1010 depends on DM_SERIAL
Lokesh Vutla586bde92018-08-27 15:57:08 +05301011 default y if (ARCH_OMAP2PLUS || ARCH_K3)
Lokesh Vutla5d754192018-08-27 15:55:24 +05301012 select SYS_NS16550
1013 help
1014 If you have an TI based SoC and want to use the on-chip serial
1015 port, say Y to this option. If unsure say N.
1016
Manivannan Sadhasivam6f9347f2018-06-14 23:38:38 +05301017config OWL_SERIAL
1018 bool "Actions Semi OWL UART"
1019 depends on DM_SERIAL && ARCH_OWL
1020 help
1021 If you have a Actions Semi OWL based board and want to use the on-chip
1022 serial port, say Y to this option. If unsure, say N.
1023 Single baudrate is supported in current implementation (115200).
1024
Anup Pateld6ba7872022-01-27 11:41:07 +05301025config HTIF_CONSOLE
1026 bool "RISC-V HTIF console support"
1027 depends on DM_SERIAL && 64BIT
1028 help
1029 Select this to enable host transfer interface (HTIF) based serial
1030 console. The HTIF device is quite common in RISC-V emulators and
1031 RISC-V ISS so this driver allows using U-Boot on such platforms.
1032
Anup Patele2842492018-12-15 11:35:15 +05301033config SIFIVE_SERIAL
1034 bool "SiFive UART support"
1035 depends on DM_SERIAL
1036 help
1037 This driver supports the SiFive UART. If unsure say N.
1038
Patrice Chotard214a17e2017-02-21 13:37:07 +01001039config STI_ASC_SERIAL
1040 bool "STMicroelectronics on-chip UART"
1041 depends on DM_SERIAL && ARCH_STI
1042 help
1043 Select this to enable Asynchronous Serial Controller available
1044 on STiH410 SoC. This is a basic implementation, it supports
1045 following baudrate 9600, 19200, 38400, 57600 and 115200.
1046
Patrice Chotardae74de02018-01-12 09:23:49 +01001047config STM32_SERIAL
Patrice Chotard84e9dcc2017-07-26 15:48:39 +02001048 bool "STMicroelectronics STM32 SoCs on-chip UART"
Patrick Delaunay2514c2d2018-03-12 10:46:10 +01001049 depends on DM_SERIAL && (STM32F4 || STM32F7 || STM32H7 || ARCH_STM32MP)
Patrice Chotard84e9dcc2017-07-26 15:48:39 +02001050 help
Patrick Delaunay2514c2d2018-03-12 10:46:10 +01001051 If you have a machine based on a STM32 F4, F7, H7 or MP1 SOC
1052 you can enable its onboard serial ports, say Y to this option.
Patrice Chotard776b2dd2017-09-13 18:00:05 +02001053 If unsure, say N.
Patrice Chotard84e9dcc2017-07-26 15:48:39 +02001054
Michal Simek809704e2017-11-06 09:16:05 +01001055config ZYNQ_SERIAL
1056 bool "Cadence (Xilinx Zynq) UART support"
Michal Simek54fdef22020-08-24 14:41:51 +02001057 depends on DM_SERIAL
Michal Simek809704e2017-11-06 09:16:05 +01001058 help
1059 This driver supports the Cadence UART. It is found e.g. in Xilinx
1060 Zynq/ZynqMP.
1061
Ryder Lee849b1162018-11-15 10:08:02 +08001062config MTK_SERIAL
1063 bool "MediaTek High-speed UART support"
1064 depends on DM_SERIAL
1065 help
1066 Select this to enable UART support for MediaTek High-speed UART
1067 devices. This driver uses driver model and requires a device
1068 tree binding to operate.
1069 The High-speed UART is compatible with the ns16550a UART and have
1070 its own high-speed registers.
1071
Weijie Gao2161f1f2020-11-12 16:36:05 +08001072config MT7620_SERIAL
1073 bool "UART driver for MediaTek MT7620 and earlier SoCs"
1074 depends on DM_SERIAL
1075 help
1076 Select this to enable UART support for MediaTek MT7620 and earlier
1077 SoCs. This driver uses driver model and requires a device tree
1078 binding to operate.
1079 The UART driver for MediaTek MT7620 and earlier SoCs is *NOT*
1080 compatible with the ns16550a UART.
1081
Christophe Leroydd7ff472017-07-06 10:33:27 +02001082config MPC8XX_CONS
1083 bool "Console driver for MPC8XX"
Christophe Leroyee1e6002018-03-16 17:20:41 +01001084 depends on MPC8xx
Christophe Leroydd7ff472017-07-06 10:33:27 +02001085 default y
1086
Jim Liu6f6a0b72022-04-19 13:32:21 +08001087config NPCM_SERIAL
1088 bool "Nuvoton NPCM UART driver"
1089 depends on DM_SERIAL
1090 help
1091 Select this to enable UART support for Nuvoton BMCs
1092 (NPCM7xx and NPCM8xx).
1093 The driver enables the onboard serial port with 8-N-1
1094 configuration.
1095
Peng Fan384d5cf2020-08-06 12:42:50 +03001096config XEN_SERIAL
1097 bool "XEN serial support"
1098 depends on XEN
1099 help
1100 If built without DM support, then requires Xen
1101 to be built with CONFIG_VERBOSE_DEBUG.
1102
Christophe Leroydd7ff472017-07-06 10:33:27 +02001103choice
1104 prompt "Console port"
1105 default 8xx_CONS_SMC1
1106 depends on MPC8XX_CONS
1107 help
1108 Depending on board, select one serial port
1109 (CONFIG_8xx_CONS_SMC1 or CONFIG_8xx_CONS_SMC2)
1110
1111config 8xx_CONS_SMC1
1112 bool "SMC1"
1113
1114config 8xx_CONS_SMC2
1115 bool "SMC2"
1116
1117endchoice
1118
1119config SYS_SMC_RXBUFLEN
1120 int "Console Rx buffer length"
1121 depends on MPC8XX_CONS
1122 default 1
1123 help
1124 With CONFIG_SYS_SMC_RXBUFLEN it is possible to define
1125 the maximum receive buffer length for the SMC.
1126 This option is actual only for 8xx possible.
1127 If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE
1128 must be defined, to setup the maximum idle timeout for
1129 the SMC.
1130
1131config SYS_MAXIDLE
1132 int "maximum idle timeout"
1133 depends on MPC8XX_CONS
1134 default 0
1135
1136config SYS_BRGCLK_PRESCALE
1137 int "BRG Clock Prescale"
1138 depends on MPC8XX_CONS
1139 default 1
1140
1141config SYS_SDSR
1142 hex "SDSR Value"
1143 depends on MPC8XX_CONS
1144 default 0x83
1145
1146config SYS_SDMR
1147 hex "SDMR Value"
1148 depends on MPC8XX_CONS
Tom Rinia077ac12023-08-02 11:09:43 -04001149 default 0x0
Christophe Leroydd7ff472017-07-06 10:33:27 +02001150
Simon Glass52510482021-08-08 12:20:13 -06001151endif