xref: /openbmc/u-boot/drivers/serial/Kconfig (revision 77c07e7e)
10b11dbf7SMasahiro Yamada#
20b11dbf7SMasahiro Yamada# Serial device configuration
30b11dbf7SMasahiro Yamada#
40b11dbf7SMasahiro Yamada
50b11dbf7SMasahiro Yamadamenu "Serial drivers"
60b11dbf7SMasahiro Yamada
7f40574e2SPhilipp Tomsichconfig BAUDRATE
8f40574e2SPhilipp Tomsich	int "Default baudrate"
9f40574e2SPhilipp Tomsich	default 115200
10f40574e2SPhilipp Tomsich	help
11f40574e2SPhilipp Tomsich	  Select a default baudrate, where "default" has a driver-specific
12f40574e2SPhilipp Tomsich	  meaning of either setting the baudrate for the early debug UART
13f40574e2SPhilipp Tomsich	  in the SPL stage (most drivers) or for choosing a default baudrate
14f40574e2SPhilipp Tomsich	  in the absence of an environment setting (serial_mxc.c).
15f40574e2SPhilipp Tomsich
168c458588SHans de Goedeconfig REQUIRE_SERIAL_CONSOLE
178c458588SHans de Goede	bool "Require a serial port for console"
188c458588SHans de Goede	# Running without a serial console is not supported by the
198c458588SHans de Goede	# non-dm serial code
208c458588SHans de Goede	depends on DM_SERIAL
218c458588SHans de Goede	default y
228c458588SHans de Goede	help
238c458588SHans de Goede	  Require a serial port for the console, and panic if none is found
248c458588SHans de Goede	  during serial port initialization (default y). Set this to n on
258c458588SHans de Goede	  boards which have no debug serial port whatsoever.
268c458588SHans de Goede
276f6b7cfaSTom Riniconfig SPECIFY_CONSOLE_INDEX
286f6b7cfaSTom Rini	bool "Specify the port number used for console"
296f6b7cfaSTom Rini	default y if !DM_SERIAL || (SPL && !SPL_DM_SERIAL) || \
306f6b7cfaSTom Rini		(TPL && !TPL_DM_SERIAL)
316f6b7cfaSTom Rini	help
326f6b7cfaSTom Rini	  In various cases, we need to specify which of the UART devices that
336f6b7cfaSTom Rini	  a board or SoC has available are to be used for the console device
346f6b7cfaSTom Rini	  in U-Boot.
356f6b7cfaSTom Rini
3692c55b68SSimon Glassconfig SERIAL_PRESENT
3792c55b68SSimon Glass	bool "Provide a serial driver"
3892c55b68SSimon Glass	depends on DM_SERIAL
3992c55b68SSimon Glass	default y
4092c55b68SSimon Glass	help
4192c55b68SSimon Glass	  In very space-constrained devices even the full UART driver is too
4292c55b68SSimon Glass	  large. In this case the debug UART can still be used in some cases.
4392c55b68SSimon Glass	  This option enables the full UART in U-Boot, so if is it disabled,
4492c55b68SSimon Glass	  the full UART driver will be omitted, thus saving space.
4592c55b68SSimon Glass
4692c55b68SSimon Glassconfig SPL_SERIAL_PRESENT
4792c55b68SSimon Glass	bool "Provide a serial driver in SPL"
4892c55b68SSimon Glass	depends on DM_SERIAL
4992c55b68SSimon Glass	default y
5092c55b68SSimon Glass	help
5192c55b68SSimon Glass	  In very space-constrained devices even the full UART driver is too
5292c55b68SSimon Glass	  large. In this case the debug UART can still be used in some cases.
5392c55b68SSimon Glass	  This option enables the full UART in SPL, so if is it disabled,
5492c55b68SSimon Glass	  the full UART driver will be omitted, thus saving space.
5592c55b68SSimon Glass
56aa0ffe8eSSimon Glassconfig TPL_SERIAL_PRESENT
57aa0ffe8eSSimon Glass	bool "Provide a serial driver in TPL"
58aa0ffe8eSSimon Glass	depends on DM_SERIAL
59aa0ffe8eSSimon Glass	default y
60aa0ffe8eSSimon Glass	help
61aa0ffe8eSSimon Glass	  In very space-constrained devices even the full UART driver is too
62aa0ffe8eSSimon Glass	  large. In this case the debug UART can still be used in some cases.
63aa0ffe8eSSimon Glass	  This option enables the full UART in TPL, so if is it disabled,
64aa0ffe8eSSimon Glass	  the full UART driver will be omitted, thus saving space.
65aa0ffe8eSSimon Glass
666f6b7cfaSTom Rini# Logic to allow us to use the imply keyword to set what the default port
676f6b7cfaSTom Rini# should be.  The default is otherwise 1.
686f6b7cfaSTom Riniconfig CONS_INDEX_0
696f6b7cfaSTom Rini	bool
706f6b7cfaSTom Rini
716f6b7cfaSTom Riniconfig CONS_INDEX_2
726f6b7cfaSTom Rini	bool
736f6b7cfaSTom Rini
746f6b7cfaSTom Riniconfig CONS_INDEX_3
756f6b7cfaSTom Rini	bool
766f6b7cfaSTom Rini
776f6b7cfaSTom Riniconfig CONS_INDEX_4
786f6b7cfaSTom Rini	bool
796f6b7cfaSTom Rini
806f6b7cfaSTom Riniconfig CONS_INDEX_5
816f6b7cfaSTom Rini	bool
826f6b7cfaSTom Rini
836f6b7cfaSTom Riniconfig CONS_INDEX_6
846f6b7cfaSTom Rini	bool
856f6b7cfaSTom Rini
867095f864SMylène Josserandconfig CONS_INDEX
877095f864SMylène Josserand	int "UART used for console"
886f6b7cfaSTom Rini	depends on SPECIFY_CONSOLE_INDEX
896f6b7cfaSTom Rini	range 0 6
906f6b7cfaSTom Rini	default 0 if CONS_INDEX_0
916f6b7cfaSTom Rini	default 2 if CONS_INDEX_2
926f6b7cfaSTom Rini	default 3 if CONS_INDEX_3
936f6b7cfaSTom Rini	default 4 if CONS_INDEX_4
946f6b7cfaSTom Rini	default 5 if CONS_INDEX_5
956f6b7cfaSTom Rini	default 6 if CONS_INDEX_6
967095f864SMylène Josserand	default 1
977095f864SMylène Josserand	help
986f6b7cfaSTom Rini	  Set this to match the UART number of the serial console.
997095f864SMylène Josserand
100da333ae7SMasahiro Yamadaconfig DM_SERIAL
101da333ae7SMasahiro Yamada	bool "Enable Driver Model for serial drivers"
102da333ae7SMasahiro Yamada	depends on DM
103da333ae7SMasahiro Yamada	help
104f94a1bedSSimon Glass	  Enable driver model for serial. This replaces
105f94a1bedSSimon Glass	  drivers/serial/serial.c with the serial uclass, which
106f94a1bedSSimon Glass	  implements serial_putc() etc. The uclass interface is
107f94a1bedSSimon Glass	  defined in include/serial.h.
108ff247b7aSMasahiro Yamada
1093ca7a06aSStefan Roeseconfig SERIAL_RX_BUFFER
1103ca7a06aSStefan Roese	bool "Enable RX buffer for serial input"
1113ca7a06aSStefan Roese	depends on DM_SERIAL
1123ca7a06aSStefan Roese	help
1133ca7a06aSStefan Roese	  Enable RX buffer support for the serial driver. This enables
1143ca7a06aSStefan Roese	  pasting longer strings, even when the RX FIFO of the UART is
1153ca7a06aSStefan Roese	  not big enough (e.g. 16 bytes on the normal NS16550).
1163ca7a06aSStefan Roese
1173ca7a06aSStefan Roeseconfig SERIAL_RX_BUFFER_SIZE
1183ca7a06aSStefan Roese	int "RX buffer size"
1193ca7a06aSStefan Roese	depends on SERIAL_RX_BUFFER
1203ca7a06aSStefan Roese	default 256
1213ca7a06aSStefan Roese	help
1223ca7a06aSStefan Roese	  The size of the RX buffer (needs to be power of 2)
1233ca7a06aSStefan Roese
124ae5326a6SAlexander Grafconfig SERIAL_SEARCH_ALL
125ae5326a6SAlexander Graf	bool "Search for serial devices after default one failed"
126ae5326a6SAlexander Graf	depends on DM_SERIAL
127ae5326a6SAlexander Graf	help
128ae5326a6SAlexander Graf	  The serial subsystem only searches for a single serial device
129ae5326a6SAlexander Graf	  that was instantiated, but does not check whether it was probed
130ae5326a6SAlexander Graf	  correctly. With this option set, we make successful probing
131ae5326a6SAlexander Graf	  mandatory and search for fallback serial devices if the default
132ae5326a6SAlexander Graf	  device does not work.
133ae5326a6SAlexander Graf
134ae5326a6SAlexander Graf	  If unsure, say N.
135ae5326a6SAlexander Graf
136891f7ae6SSimon Glassconfig SPL_DM_SERIAL
1370424990cSHeiko Schocher	bool "Enable Driver Model for serial drivers in SPL"
1386f6b7cfaSTom Rini	depends on DM_SERIAL && SPL_DM
1396f6b7cfaSTom Rini	default y
140891f7ae6SSimon Glass	help
141891f7ae6SSimon Glass	  Enable driver model for serial in SPL. This replaces
142891f7ae6SSimon Glass	  drivers/serial/serial.c with the serial uclass, which
143891f7ae6SSimon Glass	  implements serial_putc() etc. The uclass interface is
144891f7ae6SSimon Glass	  defined in include/serial.h.
145891f7ae6SSimon Glass
146891f7ae6SSimon Glassconfig TPL_DM_SERIAL
1470424990cSHeiko Schocher	bool "Enable Driver Model for serial drivers in TPL"
148891f7ae6SSimon Glass	depends on DM_SERIAL
149891f7ae6SSimon Glass	default y if TPL && DM_SERIAL
150891f7ae6SSimon Glass	help
151891f7ae6SSimon Glass	  Enable driver model for serial in TPL. This replaces
152891f7ae6SSimon Glass	  drivers/serial/serial.c with the serial uclass, which
153891f7ae6SSimon Glass	  implements serial_putc() etc. The uclass interface is
154891f7ae6SSimon Glass	  defined in include/serial.h.
155891f7ae6SSimon Glass
1562f964aa7SSimon Glassconfig DEBUG_UART
1572f964aa7SSimon Glass	bool "Enable an early debug UART for debugging"
1582f964aa7SSimon Glass	help
1592f964aa7SSimon Glass	  The debug UART is intended for use very early in U-Boot to debug
1602f964aa7SSimon Glass	  problems when an ICE or other debug mechanism is not available.
1612f964aa7SSimon Glass
1622f964aa7SSimon Glass	  To use it you should:
1632f964aa7SSimon Glass	  - Make sure your UART supports this interface
1642f964aa7SSimon Glass	  - Enable CONFIG_DEBUG_UART
1652f964aa7SSimon Glass	  - Enable the CONFIG for your UART to tell it to provide this interface
1662f964aa7SSimon Glass	        (e.g. CONFIG_DEBUG_UART_NS16550)
1672f964aa7SSimon Glass	  - Define the required settings as needed (see below)
1682f964aa7SSimon Glass	  - Call debug_uart_init() before use
1692f964aa7SSimon Glass	  - Call debug_uart_putc() to output a character
1702f964aa7SSimon Glass
1712f964aa7SSimon Glass	  Depending on your platform it may be possible to use this UART before
1722f964aa7SSimon Glass	  a stack is available.
1732f964aa7SSimon Glass
1742f964aa7SSimon Glass	  If your UART does not support this interface you can probably add
1752f964aa7SSimon Glass	  support quite easily. Remember that you cannot use driver model and
1762f964aa7SSimon Glass	  it is preferred to use no stack.
1772f964aa7SSimon Glass
1782f964aa7SSimon Glass	  You must not use this UART once driver model is working and the
1792f964aa7SSimon Glass	  serial drivers are up and running (done in serial_init()). Otherwise
1802f964aa7SSimon Glass	  the drivers may conflict and you will get strange output.
1812f964aa7SSimon Glass
18221d00436SSimon Glasschoice
18321d00436SSimon Glass	prompt "Select which UART will provide the debug UART"
18421d00436SSimon Glass	depends on DEBUG_UART
185b1e361b6SThomas Chou	default DEBUG_UART_NS16550
18621d00436SSimon Glass
187220e8021SThomas Chouconfig DEBUG_UART_ALTERA_JTAGUART
188220e8021SThomas Chou	bool "Altera JTAG UART"
189220e8021SThomas Chou	help
190220e8021SThomas Chou	  Select this to enable a debug UART using the altera_jtag_uart driver.
191220e8021SThomas Chou	  You will need to provide parameters to make this work. The driver will
192220e8021SThomas Chou	  be available until the real driver model serial is running.
193220e8021SThomas Chou
194da2f838dSThomas Chouconfig DEBUG_UART_ALTERA_UART
195da2f838dSThomas Chou	bool "Altera UART"
196da2f838dSThomas Chou	help
197da2f838dSThomas Chou	  Select this to enable a debug UART using the altera_uart driver.
198da2f838dSThomas Chou	  You will need to provide parameters to make this work. The driver will
199da2f838dSThomas Chou	  be available until the real driver model serial is running.
200da2f838dSThomas Chou
20160b49761SWills Wangconfig DEBUG_UART_AR933X
20260b49761SWills Wang	bool "QCA/Atheros ar933x"
20360b49761SWills Wang	depends on AR933X_UART
20460b49761SWills Wang	help
20560b49761SWills Wang	  Select this to enable a debug UART using the ar933x uart driver.
20660b49761SWills Wang	  You will need to provide parameters to make this work. The
20760b49761SWills Wang	  driver will be available until the real driver model serial is
20860b49761SWills Wang	  running.
20960b49761SWills Wang
21054705016SAlexey Brodkinconfig DEBUG_ARC_SERIAL
21154705016SAlexey Brodkin	bool "ARC UART"
21254705016SAlexey Brodkin	depends on ARC_SERIAL
21354705016SAlexey Brodkin	help
21454705016SAlexey Brodkin	  Select this to enable a debug UART using the ARC UART driver.
21554705016SAlexey Brodkin	  You will need to provide parameters to make this work. The
21654705016SAlexey Brodkin	  driver will be available until the real driver model serial is
21754705016SAlexey Brodkin	  running.
21854705016SAlexey Brodkin
219998cf3c2SWenyou Yangconfig DEBUG_UART_ATMEL
220998cf3c2SWenyou Yang	bool "Atmel USART"
221998cf3c2SWenyou Yang	help
222998cf3c2SWenyou Yang	  Select this to enable a debug UART using the atmel usart driver. You
223998cf3c2SWenyou Yang	  will need to provide parameters to make this work. The driver will
224998cf3c2SWenyou Yang	  be available until the real driver-model serial is running.
225998cf3c2SWenyou Yang
22630581040SÁlvaro Fernández Rojasconfig DEBUG_UART_BCM6345
22730581040SÁlvaro Fernández Rojas	bool "BCM6345 UART"
22830581040SÁlvaro Fernández Rojas	depends on BCM6345_SERIAL
22930581040SÁlvaro Fernández Rojas	help
23030581040SÁlvaro Fernández Rojas	  Select this to enable a debug UART on BCM6345 SoCs. You
23130581040SÁlvaro Fernández Rojas	  will need to provide parameters to make this work. The driver will
23230581040SÁlvaro Fernández Rojas	  be available until the real driver model serial is running.
23330581040SÁlvaro Fernández Rojas
23421d00436SSimon Glassconfig DEBUG_UART_NS16550
23521d00436SSimon Glass	bool "ns16550"
23621d00436SSimon Glass	help
23721d00436SSimon Glass	  Select this to enable a debug UART using the ns16550 driver. You
23821d00436SSimon Glass	  will need to provide parameters to make this work. The driver will
23921d00436SSimon Glass	  be available until the real driver model serial is running.
24021d00436SSimon Glass
241275854baSSimon Glassconfig DEBUG_EFI_CONSOLE
242275854baSSimon Glass	bool "EFI"
243275854baSSimon Glass	depends on EFI_APP
244275854baSSimon Glass	help
245275854baSSimon Glass	  Select this to enable a debug console which calls back to EFI to
246275854baSSimon Glass	  output to the console. This can be useful for early debugging of
247275854baSSimon Glass	  U-Boot when running on top of EFI (Extensive Firmware Interface).
248275854baSSimon Glass	  This is a type of BIOS used by PCs.
249275854baSSimon Glass
250bf6e7022SSimon Glassconfig DEBUG_UART_S5P
251bf6e7022SSimon Glass	bool "Samsung S5P"
252bf6e7022SSimon Glass	help
253bf6e7022SSimon Glass	  Select this to enable a debug UART using the serial_s5p driver. You
254bf6e7022SSimon Glass	  will need to provide parameters to make this work. The driver will
255bf6e7022SSimon Glass	  be available until the real driver-model serial is running.
256bf6e7022SSimon Glass
257bfcef28aSBeniamino Galvaniconfig DEBUG_UART_MESON
258bfcef28aSBeniamino Galvani	bool "Amlogic Meson"
259bfcef28aSBeniamino Galvani	depends on MESON_SERIAL
260bfcef28aSBeniamino Galvani	help
261bfcef28aSBeniamino Galvani	  Select this to enable a debug UART using the serial_meson driver. You
262bfcef28aSBeniamino Galvani	  will need to provide parameters to make this work. The driver will
263bfcef28aSBeniamino Galvani	  be available until the real driver-model serial is running.
264bfcef28aSBeniamino Galvani
2654166ba3bSMichal Simekconfig DEBUG_UART_UARTLITE
2664166ba3bSMichal Simek	bool "Xilinx Uartlite"
2674166ba3bSMichal Simek	help
2684166ba3bSMichal Simek	  Select this to enable a debug UART using the serial_uartlite driver.
2694166ba3bSMichal Simek	  You will need to provide parameters to make this work. The driver will
2704166ba3bSMichal Simek	  be available until the real driver-model serial is running.
2714166ba3bSMichal Simek
272966bfa73SMichal Simekconfig DEBUG_UART_ARM_DCC
273966bfa73SMichal Simek	bool "ARM DCC"
274966bfa73SMichal Simek	help
275966bfa73SMichal Simek	  Select this to enable a debug UART using the ARM JTAG DCC port.
276966bfa73SMichal Simek	  The DCC port can be used for very early debugging and doesn't require
277966bfa73SMichal Simek	  any additional setting like address/baudrate/clock. On systems without
278966bfa73SMichal Simek	  any serial interface this is the easiest way how to get console.
279966bfa73SMichal Simek	  Every ARM core has own DCC port which is the part of debug interface.
280966bfa73SMichal Simek	  This port is available at least on ARMv6, ARMv7, ARMv8 and XScale
281966bfa73SMichal Simek	  architectures.
282966bfa73SMichal Simek
2836985d496SStefan Roeseconfig DEBUG_MVEBU_A3700_UART
2846985d496SStefan Roese	bool "Marvell Armada 3700"
2856985d496SStefan Roese	help
2866985d496SStefan Roese	  Select this to enable a debug UART using the serial_mvebu driver. You
2876985d496SStefan Roese	  will need to provide parameters to make this work. The driver will
2886985d496SStefan Roese	  be available until the real driver-model serial is running.
2896985d496SStefan Roese
290c54c0a4cSSimon Glassconfig DEBUG_UART_ZYNQ
291c54c0a4cSSimon Glass	bool "Xilinx Zynq"
292c54c0a4cSSimon Glass	help
2936bf87dacSMichal Simek	  Select this to enable a debug UART using the serial_zynq driver. You
294c54c0a4cSSimon Glass	  will need to provide parameters to make this work. The driver will
295c54c0a4cSSimon Glass	  be available until the real driver-model serial is running.
296c54c0a4cSSimon Glass
297e43ce3fcSFrancois Retiefconfig DEBUG_UART_APBUART
298e43ce3fcSFrancois Retief	depends on LEON3
299e43ce3fcSFrancois Retief	bool "Gaisler APBUART"
300e43ce3fcSFrancois Retief	help
301e43ce3fcSFrancois Retief	  Select this to enable a debug UART using the serial_leon3 driver. You
302e43ce3fcSFrancois Retief	  will need to provide parameters to make this work. The driver will
303e43ce3fcSFrancois Retief	  be available until the real driver model serial is running.
304e43ce3fcSFrancois Retief
30519de8150SSergey Temerkhanovconfig DEBUG_UART_PL010
30619de8150SSergey Temerkhanov	bool "pl010"
30719de8150SSergey Temerkhanov	help
30819de8150SSergey Temerkhanov	  Select this to enable a debug UART using the pl01x driver with the
30919de8150SSergey Temerkhanov	  PL010 UART type. You will need to provide parameters to make this
31019de8150SSergey Temerkhanov	  work. The driver will be available until the real driver model
31119de8150SSergey Temerkhanov	  serial is running.
31219de8150SSergey Temerkhanov
31319de8150SSergey Temerkhanovconfig DEBUG_UART_PL011
31419de8150SSergey Temerkhanov	bool "pl011"
31519de8150SSergey Temerkhanov	help
31619de8150SSergey Temerkhanov	  Select this to enable a debug UART using the pl01x driver with the
31719de8150SSergey Temerkhanov	  PL011 UART type. You will need to provide parameters to make this
31819de8150SSergey Temerkhanov	  work. The driver will be available until the real driver model
31919de8150SSergey Temerkhanov	  serial is running.
32019de8150SSergey Temerkhanov
3219e160ee8SPaul Thackerconfig DEBUG_UART_PIC32
3229e160ee8SPaul Thacker	bool "Microchip PIC32"
3239e160ee8SPaul Thacker	depends on PIC32_SERIAL
3249e160ee8SPaul Thacker	help
3259e160ee8SPaul Thacker	  Select this to enable a debug UART using the serial_pic32 driver. You
3269e160ee8SPaul Thacker	  will need to provide parameters to make this work. The driver will
3279e160ee8SPaul Thacker	  be available until the real driver model serial is running.
3289e160ee8SPaul Thacker
32961366b71SJagan Tekiconfig DEBUG_UART_MXC
33061366b71SJagan Teki	bool "IMX Serial port"
33161366b71SJagan Teki	depends on MXC_UART
33261366b71SJagan Teki	help
33361366b71SJagan Teki	  Select this to enable a debug UART using the serial_mxc driver. You
33461366b71SJagan Teki	  will need to provide parameters to make this work. The driver will
33561366b71SJagan Teki	  be available until the real driver model serial is running.
33661366b71SJagan Teki
337ee441764SSimon Glassconfig DEBUG_UART_SANDBOX
338ee441764SSimon Glass	bool "sandbox"
339ee441764SSimon Glass	depends on SANDBOX_SERIAL
340ee441764SSimon Glass	help
341ee441764SSimon Glass	  Select this to enable the debug UART using the sandbox driver. This
342ee441764SSimon Glass	  provides basic serial output from the console without needing to
343ee441764SSimon Glass	  start up driver model. The driver will be available until the real
344ee441764SSimon Glass	  driver model serial is running.
345ee441764SSimon Glass
346e2842496SAnup Patelconfig DEBUG_UART_SIFIVE
347e2842496SAnup Patel	bool "SiFive UART"
348e2842496SAnup Patel	help
349e2842496SAnup Patel	  Select this to enable a debug UART using the serial_sifive driver. You
350e2842496SAnup Patel	  will need to provide parameters to make this work. The driver will
351e2842496SAnup Patel	  be available until the real driver-model serial is running.
352e2842496SAnup Patel
353215c8bedSPatrick Delaunayconfig DEBUG_UART_STM32
354215c8bedSPatrick Delaunay	bool "STMicroelectronics STM32"
355215c8bedSPatrick Delaunay	depends on STM32_SERIAL
356215c8bedSPatrick Delaunay	help
357215c8bedSPatrick Delaunay	  Select this to enable a debug UART using the serial_stm32 driver
358215c8bedSPatrick Delaunay	  You will need to provide parameters to make this work.
359215c8bedSPatrick Delaunay	  The driver will be available until the real driver model
360215c8bedSPatrick Delaunay	  serial is running.
361215c8bedSPatrick Delaunay
362d5cf3297SMasahiro Yamadaconfig DEBUG_UART_UNIPHIER
363d5cf3297SMasahiro Yamada	bool "UniPhier on-chip UART"
364d5cf3297SMasahiro Yamada	depends on ARCH_UNIPHIER
365d5cf3297SMasahiro Yamada	help
366d5cf3297SMasahiro Yamada	  Select this to enable a debug UART using the UniPhier on-chip UART.
367d5cf3297SMasahiro Yamada	  You will need to provide DEBUG_UART_BASE to make this work.  The
368d5cf3297SMasahiro Yamada	  driver will be available until the real driver-model serial is
369d5cf3297SMasahiro Yamada	  running.
370d5cf3297SMasahiro Yamada
371a52cf086SLokesh Vutlaconfig DEBUG_UART_OMAP
372a52cf086SLokesh Vutla	bool "OMAP uart"
373a52cf086SLokesh Vutla	help
374a52cf086SLokesh Vutla	  Select this to enable a debug UART using the omap ns16550 driver.
375a52cf086SLokesh Vutla	  You will need to provide parameters to make this work. The driver
376a52cf086SLokesh Vutla	  will be available until the real driver model serial is running.
377a52cf086SLokesh Vutla
378849b1160SRyder Leeconfig DEBUG_UART_MTK
379849b1160SRyder Lee	bool "MediaTek High-speed UART"
380849b1160SRyder Lee	depends on MTK_SERIAL
381849b1160SRyder Lee	help
382849b1160SRyder Lee	  Select this to enable a debug UART using the MediaTek High-speed
383849b1160SRyder Lee	  UART driver.
384849b1160SRyder Lee	  You will need to provide parameters to make this work. The
385849b1160SRyder Lee	  driver will be available until the real driver model serial is
386849b1160SRyder Lee	  running.
387849b1160SRyder Lee
38821d00436SSimon Glassendchoice
38921d00436SSimon Glass
3902f964aa7SSimon Glassconfig DEBUG_UART_BASE
3912f964aa7SSimon Glass	hex "Base address of UART"
3922f964aa7SSimon Glass	depends on DEBUG_UART
393ee441764SSimon Glass	default 0 if DEBUG_UART_SANDBOX
3942f964aa7SSimon Glass	help
3952f964aa7SSimon Glass	  This is the base address of your UART for memory-mapped UARTs.
3962f964aa7SSimon Glass
3972f964aa7SSimon Glass	  A default should be provided by your board, but if not you will need
3982f964aa7SSimon Glass	  to use the correct value here.
3992f964aa7SSimon Glass
4002f964aa7SSimon Glassconfig DEBUG_UART_CLOCK
4012f964aa7SSimon Glass	int "UART input clock"
4022f964aa7SSimon Glass	depends on DEBUG_UART
403ee441764SSimon Glass	default 0 if DEBUG_UART_SANDBOX
4042f964aa7SSimon Glass	help
4052f964aa7SSimon Glass	  The UART input clock determines the speed of the internal UART
4062f964aa7SSimon Glass	  circuitry. The baud rate is derived from this by dividing the input
4072f964aa7SSimon Glass	  clock down.
4082f964aa7SSimon Glass
4092f964aa7SSimon Glass	  A default should be provided by your board, but if not you will need
4102f964aa7SSimon Glass	  to use the correct value here.
4112f964aa7SSimon Glass
412dd0b0122SSimon Glassconfig DEBUG_UART_SHIFT
413dd0b0122SSimon Glass	int "UART register shift"
414dd0b0122SSimon Glass	depends on DEBUG_UART
415dd0b0122SSimon Glass	default 0 if DEBUG_UART
416dd0b0122SSimon Glass	help
417dd0b0122SSimon Glass	  Some UARTs (notably ns16550) support different register layouts
418dd0b0122SSimon Glass	  where the registers are spaced either as bytes, words or some other
419dd0b0122SSimon Glass	  value. Use this value to specify the shift to use, where 0=byte
420dd0b0122SSimon Glass	  registers, 2=32-bit word registers, etc.
421dd0b0122SSimon Glass
4220e977bc1SSimon Glassconfig DEBUG_UART_BOARD_INIT
4230e977bc1SSimon Glass	bool "Enable board-specific debug UART init"
4240e977bc1SSimon Glass	depends on DEBUG_UART
4250e977bc1SSimon Glass	help
4260e977bc1SSimon Glass	  Some boards need to set things up before the debug UART can be used.
4270e977bc1SSimon Glass	  On these boards a call to debug_uart_init() is insufficient. When
4280e977bc1SSimon Glass	  this option is enabled, the function board_debug_uart_init() will
4290e977bc1SSimon Glass	  be called when debug_uart_init() is called. You can put any code
4300e977bc1SSimon Glass	  here that is needed to set up the UART ready for use, such as set
4310e977bc1SSimon Glass	  pin multiplexing or enable clocks.
4320e977bc1SSimon Glass
433c7fefcb9SSimon Glassconfig DEBUG_UART_ANNOUNCE
434c7fefcb9SSimon Glass	bool "Show a message when the debug UART starts up"
435c7fefcb9SSimon Glass	depends on DEBUG_UART
436c7fefcb9SSimon Glass	help
437c7fefcb9SSimon Glass	  Enable this option to show a message when the debug UART is ready
438c7fefcb9SSimon Glass	  for use. You will see a message like "<debug_uart> " as soon as
439c7fefcb9SSimon Glass	  U-Boot has the UART ready for use (i.e. your code calls
440c7fefcb9SSimon Glass	  debug_uart_init()). This can be useful just as a check that
441c7fefcb9SSimon Glass	  everything is working.
442c7fefcb9SSimon Glass
44319de8150SSergey Temerkhanovconfig DEBUG_UART_SKIP_INIT
44419de8150SSergey Temerkhanov	bool "Skip UART initialization"
4457828e3cfSSimon Goldschmidt	depends on DEBUG_UART
44619de8150SSergey Temerkhanov	help
44719de8150SSergey Temerkhanov	  Select this if the UART you want to use for debug output is already
44819de8150SSergey Temerkhanov	  initialized by the time U-Boot starts its execution.
44919de8150SSergey Temerkhanov
450*c4448bdcSSimon Goldschmidtconfig DEBUG_UART_NS16550_CHECK_ENABLED
451*c4448bdcSSimon Goldschmidt	bool "Check if UART is enabled on output"
452*c4448bdcSSimon Goldschmidt	depends on DEBUG_UART
453*c4448bdcSSimon Goldschmidt	depends on DEBUG_UART_NS16550
454*c4448bdcSSimon Goldschmidt	help
455*c4448bdcSSimon Goldschmidt	  Select this if puts()/putc() might be called before the debug UART
456*c4448bdcSSimon Goldschmidt	  has been initialized. If this is disabled, putc() might sit in a
457*c4448bdcSSimon Goldschmidt	  tight loop if it is called before debug_uart_init() has been called.
458*c4448bdcSSimon Goldschmidt
459*c4448bdcSSimon Goldschmidt	  Note that this does not work for every ns16550-compatible UART and
460*c4448bdcSSimon Goldschmidt	  so has to be enabled carefully or you might notice lost characters.
461*c4448bdcSSimon Goldschmidt
462220e8021SThomas Chouconfig ALTERA_JTAG_UART
463220e8021SThomas Chou	bool "Altera JTAG UART support"
464220e8021SThomas Chou	depends on DM_SERIAL
465220e8021SThomas Chou	help
466220e8021SThomas Chou	  Select this to enable an JTAG UART for Altera devices.The JTAG UART
467220e8021SThomas Chou	  core implements a method to communicate serial character streams
468220e8021SThomas Chou	  between a host PC and a Qsys system on an Altera FPGA. Please find
469220e8021SThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
470220e8021SThomas Chou
471220e8021SThomas Chouconfig ALTERA_JTAG_UART_BYPASS
472220e8021SThomas Chou	bool "Bypass output when no connection"
473220e8021SThomas Chou	depends on ALTERA_JTAG_UART
474220e8021SThomas Chou	help
475220e8021SThomas Chou	  Bypass console output and keep going even if there is no JTAG
476220e8021SThomas Chou	  terminal connection with the host. The console output will resume
477220e8021SThomas Chou	  once the JTAG terminal is connected. Without the bypass, the console
478220e8021SThomas Chou	  output will wait forever until a JTAG terminal is connected. If you
479220e8021SThomas Chou	  not are sure, say Y.
480220e8021SThomas Chou
481da2f838dSThomas Chouconfig ALTERA_UART
482da2f838dSThomas Chou	bool "Altera UART support"
483da2f838dSThomas Chou	depends on DM_SERIAL
484da2f838dSThomas Chou	help
485da2f838dSThomas Chou	  Select this to enable an UART for Altera devices. Please find
486da2f838dSThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
487da2f838dSThomas Chou
48860b49761SWills Wangconfig AR933X_UART
48960b49761SWills Wang	bool "QCA/Atheros ar933x UART support"
49060b49761SWills Wang	depends on DM_SERIAL && SOC_AR933X
49160b49761SWills Wang	help
49260b49761SWills Wang	  Select this to enable UART support for QCA/Atheros ar933x
49360b49761SWills Wang	  devices. This driver uses driver model and requires a device
49460b49761SWills Wang	  tree binding to operate, please refer to the document at
49560b49761SWills Wang	  doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
49660b49761SWills Wang
497d7ac185fSAlexey Brodkinconfig ARC_SERIAL
498d7ac185fSAlexey Brodkin	bool "ARC UART support"
499d7ac185fSAlexey Brodkin	depends on DM_SERIAL
500d7ac185fSAlexey Brodkin	help
501d7ac185fSAlexey Brodkin	  Select this to enable support for ARC UART now typically
502d7ac185fSAlexey Brodkin	  only used in Synopsys DesignWare ARC simulators like nSIM.
503d7ac185fSAlexey Brodkin
5046ec739aaSWenyou Yangconfig ATMEL_USART
5056ec739aaSWenyou Yang	bool "Atmel USART support"
5066ec739aaSWenyou Yang	help
5076ec739aaSWenyou Yang	  Select this to enable USART support for Atmel SoCs. It can be
5086ec739aaSWenyou Yang	  configured in the device tree, and input clock frequency can
5096ec739aaSWenyou Yang	  be got from the clk node.
5106ec739aaSWenyou Yang
511fa487594SAlexander Grafconfig BCM283X_MU_SERIAL
512fa487594SAlexander Graf	bool "Support for BCM283x Mini-UART"
513fa487594SAlexander Graf	depends on DM_SERIAL && ARCH_BCM283X
514fa487594SAlexander Graf	default y
515fa487594SAlexander Graf	help
516fa487594SAlexander Graf	  Select this to enable Mini-UART support on BCM283X family of SoCs.
517fa487594SAlexander Graf
5186001985fSAlexander Grafconfig BCM283X_PL011_SERIAL
5196001985fSAlexander Graf	bool "Support for BCM283x PL011 UART"
5206001985fSAlexander Graf	depends on PL01X_SERIAL && ARCH_BCM283X
5216001985fSAlexander Graf	default y
5226001985fSAlexander Graf	help
5236001985fSAlexander Graf	  Select this to enable an overriding PL011 driver for BCM283X SoCs
5246001985fSAlexander Graf	  that supports automatic disable, so that it only gets used when
5256001985fSAlexander Graf	  the UART is actually muxed.
5266001985fSAlexander Graf
52730581040SÁlvaro Fernández Rojasconfig BCM6345_SERIAL
52830581040SÁlvaro Fernández Rojas	bool "Support for BCM6345 UART"
529e9e8d80dSÁlvaro Fernández Rojas	depends on DM_SERIAL
53030581040SÁlvaro Fernández Rojas	help
53130581040SÁlvaro Fernández Rojas	  Select this to enable UART on BCM6345 SoCs.
53230581040SÁlvaro Fernández Rojas
533fac379e1STuomas Tynkkynenconfig FSL_LINFLEXUART
534fac379e1STuomas Tynkkynen	bool "Freescale Linflex UART support"
535fac379e1STuomas Tynkkynen	depends on DM_SERIAL
536fac379e1STuomas Tynkkynen	help
537fac379e1STuomas Tynkkynen	  Select this to enable the Linflex serial module found on some
538fac379e1STuomas Tynkkynen	  NXP SoCs like S32V234.
539fac379e1STuomas Tynkkynen
5405ed07cf5SBin Mengconfig FSL_LPUART
5415ed07cf5SBin Meng	bool "Freescale LPUART support"
5425ed07cf5SBin Meng	help
5435ed07cf5SBin Meng	  Select this to enable a Low Power UART for Freescale VF610 and
5445ed07cf5SBin Meng	  QorIQ Layerscape devices.
5455ed07cf5SBin Meng
5466985d496SStefan Roeseconfig MVEBU_A3700_UART
5476985d496SStefan Roese	bool "UART support for Armada 3700"
5486985d496SStefan Roese	default n
5496985d496SStefan Roese	help
5506985d496SStefan Roese	  Choose this option to add support for UART driver on the Marvell
5516985d496SStefan Roese	  Armada 3700 SoC. The base address is configured via DT.
5526985d496SStefan Roese
5538829e662SJagan Tekiconfig MXC_UART
5548829e662SJagan Teki	bool "IMX serial port support"
55598d62e61SPatrick Bruenn	depends on MX5 || MX6
5568829e662SJagan Teki	help
5578829e662SJagan Teki	  If you have a machine based on a Motorola IMX CPU you
5588829e662SJagan Teki	  can enable its onboard serial port by enabling this option.
5598829e662SJagan Teki
560cac73f20SKeng Soon Cheahconfig NULLDEV_SERIAL
561cac73f20SKeng Soon Cheah	bool "Null serial device"
562cac73f20SKeng Soon Cheah	help
563cac73f20SKeng Soon Cheah	  Select this to enable null serial device support. A null serial
564cac73f20SKeng Soon Cheah	  device merely acts as a placeholder for a serial device and does
565cac73f20SKeng Soon Cheah	  nothing for all it's operation.
566cac73f20SKeng Soon Cheah
5679e160ee8SPaul Thackerconfig PIC32_SERIAL
5689e160ee8SPaul Thacker	bool "Support for Microchip PIC32 on-chip UART"
5699e160ee8SPaul Thacker	depends on DM_SERIAL && MACH_PIC32
5709e160ee8SPaul Thacker	default y
5719e160ee8SPaul Thacker	help
5729e160ee8SPaul Thacker	  Support for the UART found on Microchip PIC32 SoC's.
5739e160ee8SPaul Thacker
5749e39003eSThomas Chouconfig SYS_NS16550
5759e39003eSThomas Chou	bool "NS16550 UART or compatible"
5769e39003eSThomas Chou	help
5779e39003eSThomas Chou	  Support NS16550 UART or compatible. This can be enabled in the
5789e39003eSThomas Chou	  device tree with the correct input clock frequency. If the input
5799e39003eSThomas Chou	  clock frequency is not defined in the device tree, the macro
5809e39003eSThomas Chou	  CONFIG_SYS_NS16550_CLK defined in a legacy board header file will
5819e39003eSThomas Chou	  be used. It can be a constant or a function to get clock, eg,
5829e39003eSThomas Chou	  get_serial_clock().
5839e39003eSThomas Chou
584c5f8dd48SAndy Shevchenkoconfig INTEL_MID_SERIAL
585c5f8dd48SAndy Shevchenko	bool "Intel MID platform UART support"
586c5f8dd48SAndy Shevchenko	depends on DM_SERIAL && OF_CONTROL
587c5f8dd48SAndy Shevchenko	depends on INTEL_MID
588c5f8dd48SAndy Shevchenko	select SYS_NS16550
589c5f8dd48SAndy Shevchenko	help
590c5f8dd48SAndy Shevchenko	  Select this to enable a UART for Intel MID platforms.
591c5f8dd48SAndy Shevchenko	  This uses the ns16550 driver as a library.
592c5f8dd48SAndy Shevchenko
593884f9013SAlexander Grafconfig PL010_SERIAL
594884f9013SAlexander Graf	bool "ARM PL010 driver"
595884f9013SAlexander Graf	depends on !DM_SERIAL
596884f9013SAlexander Graf	help
597884f9013SAlexander Graf	  Select this to enable a UART for platforms using PL010.
598884f9013SAlexander Graf
599d10fc50fSAlexander Grafconfig PL011_SERIAL
600d10fc50fSAlexander Graf	bool "ARM PL011 driver"
601d10fc50fSAlexander Graf	depends on !DM_SERIAL
602d10fc50fSAlexander Graf	help
603d10fc50fSAlexander Graf	  Select this to enable a UART for platforms using PL011.
604d10fc50fSAlexander Graf
605cf2c7784SAlexander Grafconfig PL01X_SERIAL
606cf2c7784SAlexander Graf	bool "ARM PL010 and PL011 driver"
607cf2c7784SAlexander Graf	depends on DM_SERIAL
608cf2c7784SAlexander Graf	help
609cf2c7784SAlexander Graf	  Select this to enable a UART for platforms using PL010 or PL011.
610cf2c7784SAlexander Graf
6112fc24d53SSimon Glassconfig ROCKCHIP_SERIAL
6122fc24d53SSimon Glass	bool "Rockchip on-chip UART support"
6132fc24d53SSimon Glass	depends on DM_SERIAL && SPL_OF_PLATDATA
6142fc24d53SSimon Glass	help
6152fc24d53SSimon Glass	  Select this to enable a debug UART for Rockchip devices when using
6167f73ca48STom Rini	  CONFIG_SPL_OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
6172fc24d53SSimon Glass	  This uses the ns16550 driver, converting the platdata from of-platdata
6182fc24d53SSimon Glass	  to the ns16550 format.
6192fc24d53SSimon Glass
620af282245SSimon Glassconfig SANDBOX_SERIAL
621af282245SSimon Glass	bool "Sandbox UART support"
6222ea65f3eSMasahiro Yamada	depends on SANDBOX
623af282245SSimon Glass	help
624af282245SSimon Glass	  Select this to enable a seral UART for sandbox. This is required to
625af282245SSimon Glass	  operate correctly, otherwise you will see no serial output from
626af282245SSimon Glass	  sandbox. The emulated UART will display to the console and console
627af282245SSimon Glass	  input will be fed into the UART. This allows you to interact with
628af282245SSimon Glass	  U-Boot.
629af282245SSimon Glass
630af282245SSimon Glass	  The operation of the console is controlled by the -t command-line
631af282245SSimon Glass	  flag. In raw mode, U-Boot sees all characters from the terminal
632af282245SSimon Glass	  before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
633af282245SSimon Glass	  is processed by the terminal, and terminates U-Boot. Valid options
634af282245SSimon Glass	  are:
635af282245SSimon Glass
636af282245SSimon Glass	     -t raw-with-sigs	Raw mode, Ctrl-C will terminate U-Boot
637af282245SSimon Glass	     -t raw		Raw mode, Ctrl-C is processed by U-Boot
638af282245SSimon Glass	     -t cooked		Cooked mode, Ctrl-C terminates
639af282245SSimon Glass
64003a38a39SMarek Vasutconfig SCIF_CONSOLE
64103a38a39SMarek Vasut	bool "Renesas SCIF UART support"
64203a38a39SMarek Vasut	depends on SH || ARCH_RMOBILE
64303a38a39SMarek Vasut	help
64403a38a39SMarek Vasut	  Select this to enable Renesas SCIF UART. To operate serial ports
64503a38a39SMarek Vasut	  on systems with RCar or SH SoCs, say Y to this option. If unsure,
64603a38a39SMarek Vasut	  say N.
64703a38a39SMarek Vasut
648ff247b7aSMasahiro Yamadaconfig UNIPHIER_SERIAL
649b6ef3a3fSMasahiro Yamada	bool "Support for UniPhier on-chip UART"
6502ea65f3eSMasahiro Yamada	depends on ARCH_UNIPHIER
65185dc2fe1SMasahiro Yamada	default y
652ff247b7aSMasahiro Yamada	help
653b6ef3a3fSMasahiro Yamada	  If you have a UniPhier based board and want to use the on-chip
654b6ef3a3fSMasahiro Yamada	  serial ports, say Y to this option. If unsure, say N.
655dcfe4a54SSimon Glass
65654e24d33SMichal Simekconfig XILINX_UARTLITE
65754e24d33SMichal Simek	bool "Xilinx Uarlite support"
65880cce262SRicardo Ribalda Delgado	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
65954e24d33SMichal Simek	help
66054e24d33SMichal Simek	  If you have a Xilinx based board and want to use the uartlite
66154e24d33SMichal Simek	  serial ports, say Y to this option. If unsure, say N.
66254e24d33SMichal Simek
663bfcef28aSBeniamino Galvaniconfig MESON_SERIAL
664bfcef28aSBeniamino Galvani	bool "Support for Amlogic Meson UART"
665bfcef28aSBeniamino Galvani	depends on DM_SERIAL && ARCH_MESON
666bfcef28aSBeniamino Galvani	help
667bfcef28aSBeniamino Galvani	  If you have an Amlogic Meson based board and want to use the on-chip
668bfcef28aSBeniamino Galvani	  serial ports, say Y to this option. If unsure, say N.
669bfcef28aSBeniamino Galvani
670142a20c3SMateusz Kulikowskiconfig MSM_SERIAL
671142a20c3SMateusz Kulikowski	bool "Qualcomm on-chip UART"
672142a20c3SMateusz Kulikowski	depends on DM_SERIAL
673142a20c3SMateusz Kulikowski	help
674142a20c3SMateusz Kulikowski	  Support Data Mover UART used on Qualcomm Snapdragon SoCs.
675142a20c3SMateusz Kulikowski	  It should support all Qualcomm devices with UARTDM version 1.4,
676142a20c3SMateusz Kulikowski	  for example APQ8016 and MSM8916.
677142a20c3SMateusz Kulikowski	  Single baudrate is supported in current implementation (115200).
6786985d496SStefan Roese
6795d754197SLokesh Vutlaconfig OMAP_SERIAL
6805d754197SLokesh Vutla	bool "Support for OMAP specific UART"
6815d754197SLokesh Vutla	depends on DM_SERIAL
682586bde93SLokesh Vutla	default y if (ARCH_OMAP2PLUS || ARCH_K3)
6835d754197SLokesh Vutla	select SYS_NS16550
6845d754197SLokesh Vutla	help
6855d754197SLokesh Vutla	  If you have an TI based SoC and want to use the on-chip serial
6865d754197SLokesh Vutla	  port, say Y to this option. If unsure say N.
6875d754197SLokesh Vutla
6886f9347f3SManivannan Sadhasivamconfig OWL_SERIAL
6896f9347f3SManivannan Sadhasivam	bool "Actions Semi OWL UART"
6906f9347f3SManivannan Sadhasivam	depends on DM_SERIAL && ARCH_OWL
6916f9347f3SManivannan Sadhasivam	help
6926f9347f3SManivannan Sadhasivam	  If you have a Actions Semi OWL based board and want to use the on-chip
6936f9347f3SManivannan Sadhasivam	  serial port, say Y to this option. If unsure, say N.
6946f9347f3SManivannan Sadhasivam	  Single baudrate is supported in current implementation (115200).
6956f9347f3SManivannan Sadhasivam
696d804a5e1SMarcel Ziswilerconfig PXA_SERIAL
697d804a5e1SMarcel Ziswiler	bool "PXA serial port support"
698d804a5e1SMarcel Ziswiler	help
699d804a5e1SMarcel Ziswiler	  If you have a machine based on a Marvell XScale PXA2xx CPU you
700d804a5e1SMarcel Ziswiler	  can enable its onboard serial ports by enabling this option.
701d804a5e1SMarcel Ziswiler
702e2842496SAnup Patelconfig SIFIVE_SERIAL
703e2842496SAnup Patel	bool "SiFive UART support"
704e2842496SAnup Patel	depends on DM_SERIAL
705e2842496SAnup Patel	help
706e2842496SAnup Patel	  This driver supports the SiFive UART. If unsure say N.
707e2842496SAnup Patel
708214a17e6SPatrice Chotardconfig STI_ASC_SERIAL
709214a17e6SPatrice Chotard	bool "STMicroelectronics on-chip UART"
710214a17e6SPatrice Chotard	depends on DM_SERIAL && ARCH_STI
711214a17e6SPatrice Chotard	help
712214a17e6SPatrice Chotard	  Select this to enable Asynchronous Serial Controller available
713214a17e6SPatrice Chotard	  on STiH410 SoC. This is a basic implementation,  it supports
714214a17e6SPatrice Chotard	  following baudrate 9600, 19200, 38400, 57600 and 115200.
715214a17e6SPatrice Chotard
716ae74de0dSPatrice Chotardconfig STM32_SERIAL
71784e9dcc1SPatrice Chotard	bool "STMicroelectronics STM32 SoCs on-chip UART"
7182514c2d0SPatrick Delaunay	depends on DM_SERIAL && (STM32F4 || STM32F7 || STM32H7 || ARCH_STM32MP)
71984e9dcc1SPatrice Chotard	help
7202514c2d0SPatrick Delaunay	  If you have a machine based on a STM32 F4, F7, H7 or MP1 SOC
7212514c2d0SPatrick Delaunay	  you can enable its onboard serial ports, say Y to this option.
722776b2ddbSPatrice Chotard	  If unsure, say N.
72384e9dcc1SPatrice Chotard
724809704ebSMichal Simekconfig ZYNQ_SERIAL
725809704ebSMichal Simek	bool "Cadence (Xilinx Zynq) UART support"
7261d6c54ecSMichal Simek	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_ZYNQMP_R5)
727809704ebSMichal Simek	help
728809704ebSMichal Simek	  This driver supports the Cadence UART. It is found e.g. in Xilinx
729809704ebSMichal Simek	  Zynq/ZynqMP.
730809704ebSMichal Simek
731849b1160SRyder Leeconfig MTK_SERIAL
732849b1160SRyder Lee	bool "MediaTek High-speed UART support"
733849b1160SRyder Lee	depends on DM_SERIAL
734849b1160SRyder Lee	help
735849b1160SRyder Lee	  Select this to enable UART support for MediaTek High-speed UART
736849b1160SRyder Lee	  devices. This driver uses driver model and requires a device
737849b1160SRyder Lee	  tree binding to operate.
738849b1160SRyder Lee	  The High-speed UART is compatible with the ns16550a UART and have
739849b1160SRyder Lee	  its own high-speed registers.
740849b1160SRyder Lee
741dd7ff472SChristophe Leroyconfig MPC8XX_CONS
742dd7ff472SChristophe Leroy	bool "Console driver for MPC8XX"
743ee1e600cSChristophe Leroy	depends on MPC8xx
744dd7ff472SChristophe Leroy	default y
745dd7ff472SChristophe Leroy
746dd7ff472SChristophe Leroychoice
747dd7ff472SChristophe Leroy	prompt "Console port"
748dd7ff472SChristophe Leroy	default 8xx_CONS_SMC1
749dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
750dd7ff472SChristophe Leroy	help
751dd7ff472SChristophe Leroy	  Depending on board, select one serial port
752dd7ff472SChristophe Leroy	  (CONFIG_8xx_CONS_SMC1 or CONFIG_8xx_CONS_SMC2)
753dd7ff472SChristophe Leroy
754dd7ff472SChristophe Leroyconfig 8xx_CONS_SMC1
755dd7ff472SChristophe Leroy	bool "SMC1"
756dd7ff472SChristophe Leroy
757dd7ff472SChristophe Leroyconfig 8xx_CONS_SMC2
758dd7ff472SChristophe Leroy	bool "SMC2"
759dd7ff472SChristophe Leroy
760dd7ff472SChristophe Leroyendchoice
761dd7ff472SChristophe Leroy
762dd7ff472SChristophe Leroyconfig SYS_SMC_RXBUFLEN
763dd7ff472SChristophe Leroy	int "Console Rx buffer length"
764dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
765dd7ff472SChristophe Leroy	default 1
766dd7ff472SChristophe Leroy	help
767dd7ff472SChristophe Leroy	  With CONFIG_SYS_SMC_RXBUFLEN it is possible to define
768dd7ff472SChristophe Leroy	  the maximum receive buffer length for the SMC.
769dd7ff472SChristophe Leroy	  This option is actual only for 8xx possible.
770dd7ff472SChristophe Leroy	  If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE
771dd7ff472SChristophe Leroy	  must be defined, to setup the maximum idle timeout for
772dd7ff472SChristophe Leroy	  the SMC.
773dd7ff472SChristophe Leroy
774dd7ff472SChristophe Leroyconfig SYS_MAXIDLE
775dd7ff472SChristophe Leroy	int "maximum idle timeout"
776dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
777dd7ff472SChristophe Leroy	default 0
778dd7ff472SChristophe Leroy
779dd7ff472SChristophe Leroyconfig SYS_BRGCLK_PRESCALE
780dd7ff472SChristophe Leroy	int "BRG Clock Prescale"
781dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
782dd7ff472SChristophe Leroy	default 1
783dd7ff472SChristophe Leroy
784dd7ff472SChristophe Leroyconfig SYS_SDSR
785dd7ff472SChristophe Leroy	hex "SDSR Value"
786dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
787dd7ff472SChristophe Leroy	default 0x83
788dd7ff472SChristophe Leroy
789dd7ff472SChristophe Leroyconfig SYS_SDMR
790dd7ff472SChristophe Leroy	hex "SDMR Value"
791dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
792dd7ff472SChristophe Leroy	default 0
793dd7ff472SChristophe Leroy
7940b11dbf7SMasahiro Yamadaendmenu
795