xref: /openbmc/u-boot/drivers/serial/Kconfig (revision 7828e3cf)
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"
445*7828e3cfSSimon 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
450220e8021SThomas Chouconfig ALTERA_JTAG_UART
451220e8021SThomas Chou	bool "Altera JTAG UART support"
452220e8021SThomas Chou	depends on DM_SERIAL
453220e8021SThomas Chou	help
454220e8021SThomas Chou	  Select this to enable an JTAG UART for Altera devices.The JTAG UART
455220e8021SThomas Chou	  core implements a method to communicate serial character streams
456220e8021SThomas Chou	  between a host PC and a Qsys system on an Altera FPGA. Please find
457220e8021SThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
458220e8021SThomas Chou
459220e8021SThomas Chouconfig ALTERA_JTAG_UART_BYPASS
460220e8021SThomas Chou	bool "Bypass output when no connection"
461220e8021SThomas Chou	depends on ALTERA_JTAG_UART
462220e8021SThomas Chou	help
463220e8021SThomas Chou	  Bypass console output and keep going even if there is no JTAG
464220e8021SThomas Chou	  terminal connection with the host. The console output will resume
465220e8021SThomas Chou	  once the JTAG terminal is connected. Without the bypass, the console
466220e8021SThomas Chou	  output will wait forever until a JTAG terminal is connected. If you
467220e8021SThomas Chou	  not are sure, say Y.
468220e8021SThomas Chou
469da2f838dSThomas Chouconfig ALTERA_UART
470da2f838dSThomas Chou	bool "Altera UART support"
471da2f838dSThomas Chou	depends on DM_SERIAL
472da2f838dSThomas Chou	help
473da2f838dSThomas Chou	  Select this to enable an UART for Altera devices. Please find
474da2f838dSThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
475da2f838dSThomas Chou
47660b49761SWills Wangconfig AR933X_UART
47760b49761SWills Wang	bool "QCA/Atheros ar933x UART support"
47860b49761SWills Wang	depends on DM_SERIAL && SOC_AR933X
47960b49761SWills Wang	help
48060b49761SWills Wang	  Select this to enable UART support for QCA/Atheros ar933x
48160b49761SWills Wang	  devices. This driver uses driver model and requires a device
48260b49761SWills Wang	  tree binding to operate, please refer to the document at
48360b49761SWills Wang	  doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
48460b49761SWills Wang
485d7ac185fSAlexey Brodkinconfig ARC_SERIAL
486d7ac185fSAlexey Brodkin	bool "ARC UART support"
487d7ac185fSAlexey Brodkin	depends on DM_SERIAL
488d7ac185fSAlexey Brodkin	help
489d7ac185fSAlexey Brodkin	  Select this to enable support for ARC UART now typically
490d7ac185fSAlexey Brodkin	  only used in Synopsys DesignWare ARC simulators like nSIM.
491d7ac185fSAlexey Brodkin
4926ec739aaSWenyou Yangconfig ATMEL_USART
4936ec739aaSWenyou Yang	bool "Atmel USART support"
4946ec739aaSWenyou Yang	help
4956ec739aaSWenyou Yang	  Select this to enable USART support for Atmel SoCs. It can be
4966ec739aaSWenyou Yang	  configured in the device tree, and input clock frequency can
4976ec739aaSWenyou Yang	  be got from the clk node.
4986ec739aaSWenyou Yang
499fa487594SAlexander Grafconfig BCM283X_MU_SERIAL
500fa487594SAlexander Graf	bool "Support for BCM283x Mini-UART"
501fa487594SAlexander Graf	depends on DM_SERIAL && ARCH_BCM283X
502fa487594SAlexander Graf	default y
503fa487594SAlexander Graf	help
504fa487594SAlexander Graf	  Select this to enable Mini-UART support on BCM283X family of SoCs.
505fa487594SAlexander Graf
5066001985fSAlexander Grafconfig BCM283X_PL011_SERIAL
5076001985fSAlexander Graf	bool "Support for BCM283x PL011 UART"
5086001985fSAlexander Graf	depends on PL01X_SERIAL && ARCH_BCM283X
5096001985fSAlexander Graf	default y
5106001985fSAlexander Graf	help
5116001985fSAlexander Graf	  Select this to enable an overriding PL011 driver for BCM283X SoCs
5126001985fSAlexander Graf	  that supports automatic disable, so that it only gets used when
5136001985fSAlexander Graf	  the UART is actually muxed.
5146001985fSAlexander Graf
51530581040SÁlvaro Fernández Rojasconfig BCM6345_SERIAL
51630581040SÁlvaro Fernández Rojas	bool "Support for BCM6345 UART"
517e9e8d80dSÁlvaro Fernández Rojas	depends on DM_SERIAL
51830581040SÁlvaro Fernández Rojas	help
51930581040SÁlvaro Fernández Rojas	  Select this to enable UART on BCM6345 SoCs.
52030581040SÁlvaro Fernández Rojas
521fac379e1STuomas Tynkkynenconfig FSL_LINFLEXUART
522fac379e1STuomas Tynkkynen	bool "Freescale Linflex UART support"
523fac379e1STuomas Tynkkynen	depends on DM_SERIAL
524fac379e1STuomas Tynkkynen	help
525fac379e1STuomas Tynkkynen	  Select this to enable the Linflex serial module found on some
526fac379e1STuomas Tynkkynen	  NXP SoCs like S32V234.
527fac379e1STuomas Tynkkynen
5285ed07cf5SBin Mengconfig FSL_LPUART
5295ed07cf5SBin Meng	bool "Freescale LPUART support"
5305ed07cf5SBin Meng	help
5315ed07cf5SBin Meng	  Select this to enable a Low Power UART for Freescale VF610 and
5325ed07cf5SBin Meng	  QorIQ Layerscape devices.
5335ed07cf5SBin Meng
5346985d496SStefan Roeseconfig MVEBU_A3700_UART
5356985d496SStefan Roese	bool "UART support for Armada 3700"
5366985d496SStefan Roese	default n
5376985d496SStefan Roese	help
5386985d496SStefan Roese	  Choose this option to add support for UART driver on the Marvell
5396985d496SStefan Roese	  Armada 3700 SoC. The base address is configured via DT.
5406985d496SStefan Roese
5418829e662SJagan Tekiconfig MXC_UART
5428829e662SJagan Teki	bool "IMX serial port support"
54398d62e61SPatrick Bruenn	depends on MX5 || MX6
5448829e662SJagan Teki	help
5458829e662SJagan Teki	  If you have a machine based on a Motorola IMX CPU you
5468829e662SJagan Teki	  can enable its onboard serial port by enabling this option.
5478829e662SJagan Teki
548cac73f20SKeng Soon Cheahconfig NULLDEV_SERIAL
549cac73f20SKeng Soon Cheah	bool "Null serial device"
550cac73f20SKeng Soon Cheah	help
551cac73f20SKeng Soon Cheah	  Select this to enable null serial device support. A null serial
552cac73f20SKeng Soon Cheah	  device merely acts as a placeholder for a serial device and does
553cac73f20SKeng Soon Cheah	  nothing for all it's operation.
554cac73f20SKeng Soon Cheah
5559e160ee8SPaul Thackerconfig PIC32_SERIAL
5569e160ee8SPaul Thacker	bool "Support for Microchip PIC32 on-chip UART"
5579e160ee8SPaul Thacker	depends on DM_SERIAL && MACH_PIC32
5589e160ee8SPaul Thacker	default y
5599e160ee8SPaul Thacker	help
5609e160ee8SPaul Thacker	  Support for the UART found on Microchip PIC32 SoC's.
5619e160ee8SPaul Thacker
5629e39003eSThomas Chouconfig SYS_NS16550
5639e39003eSThomas Chou	bool "NS16550 UART or compatible"
5649e39003eSThomas Chou	help
5659e39003eSThomas Chou	  Support NS16550 UART or compatible. This can be enabled in the
5669e39003eSThomas Chou	  device tree with the correct input clock frequency. If the input
5679e39003eSThomas Chou	  clock frequency is not defined in the device tree, the macro
5689e39003eSThomas Chou	  CONFIG_SYS_NS16550_CLK defined in a legacy board header file will
5699e39003eSThomas Chou	  be used. It can be a constant or a function to get clock, eg,
5709e39003eSThomas Chou	  get_serial_clock().
5719e39003eSThomas Chou
572c5f8dd48SAndy Shevchenkoconfig INTEL_MID_SERIAL
573c5f8dd48SAndy Shevchenko	bool "Intel MID platform UART support"
574c5f8dd48SAndy Shevchenko	depends on DM_SERIAL && OF_CONTROL
575c5f8dd48SAndy Shevchenko	depends on INTEL_MID
576c5f8dd48SAndy Shevchenko	select SYS_NS16550
577c5f8dd48SAndy Shevchenko	help
578c5f8dd48SAndy Shevchenko	  Select this to enable a UART for Intel MID platforms.
579c5f8dd48SAndy Shevchenko	  This uses the ns16550 driver as a library.
580c5f8dd48SAndy Shevchenko
581884f9013SAlexander Grafconfig PL010_SERIAL
582884f9013SAlexander Graf	bool "ARM PL010 driver"
583884f9013SAlexander Graf	depends on !DM_SERIAL
584884f9013SAlexander Graf	help
585884f9013SAlexander Graf	  Select this to enable a UART for platforms using PL010.
586884f9013SAlexander Graf
587d10fc50fSAlexander Grafconfig PL011_SERIAL
588d10fc50fSAlexander Graf	bool "ARM PL011 driver"
589d10fc50fSAlexander Graf	depends on !DM_SERIAL
590d10fc50fSAlexander Graf	help
591d10fc50fSAlexander Graf	  Select this to enable a UART for platforms using PL011.
592d10fc50fSAlexander Graf
593cf2c7784SAlexander Grafconfig PL01X_SERIAL
594cf2c7784SAlexander Graf	bool "ARM PL010 and PL011 driver"
595cf2c7784SAlexander Graf	depends on DM_SERIAL
596cf2c7784SAlexander Graf	help
597cf2c7784SAlexander Graf	  Select this to enable a UART for platforms using PL010 or PL011.
598cf2c7784SAlexander Graf
5992fc24d53SSimon Glassconfig ROCKCHIP_SERIAL
6002fc24d53SSimon Glass	bool "Rockchip on-chip UART support"
6012fc24d53SSimon Glass	depends on DM_SERIAL && SPL_OF_PLATDATA
6022fc24d53SSimon Glass	help
6032fc24d53SSimon Glass	  Select this to enable a debug UART for Rockchip devices when using
6047f73ca48STom Rini	  CONFIG_SPL_OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
6052fc24d53SSimon Glass	  This uses the ns16550 driver, converting the platdata from of-platdata
6062fc24d53SSimon Glass	  to the ns16550 format.
6072fc24d53SSimon Glass
608af282245SSimon Glassconfig SANDBOX_SERIAL
609af282245SSimon Glass	bool "Sandbox UART support"
6102ea65f3eSMasahiro Yamada	depends on SANDBOX
611af282245SSimon Glass	help
612af282245SSimon Glass	  Select this to enable a seral UART for sandbox. This is required to
613af282245SSimon Glass	  operate correctly, otherwise you will see no serial output from
614af282245SSimon Glass	  sandbox. The emulated UART will display to the console and console
615af282245SSimon Glass	  input will be fed into the UART. This allows you to interact with
616af282245SSimon Glass	  U-Boot.
617af282245SSimon Glass
618af282245SSimon Glass	  The operation of the console is controlled by the -t command-line
619af282245SSimon Glass	  flag. In raw mode, U-Boot sees all characters from the terminal
620af282245SSimon Glass	  before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
621af282245SSimon Glass	  is processed by the terminal, and terminates U-Boot. Valid options
622af282245SSimon Glass	  are:
623af282245SSimon Glass
624af282245SSimon Glass	     -t raw-with-sigs	Raw mode, Ctrl-C will terminate U-Boot
625af282245SSimon Glass	     -t raw		Raw mode, Ctrl-C is processed by U-Boot
626af282245SSimon Glass	     -t cooked		Cooked mode, Ctrl-C terminates
627af282245SSimon Glass
62803a38a39SMarek Vasutconfig SCIF_CONSOLE
62903a38a39SMarek Vasut	bool "Renesas SCIF UART support"
63003a38a39SMarek Vasut	depends on SH || ARCH_RMOBILE
63103a38a39SMarek Vasut	help
63203a38a39SMarek Vasut	  Select this to enable Renesas SCIF UART. To operate serial ports
63303a38a39SMarek Vasut	  on systems with RCar or SH SoCs, say Y to this option. If unsure,
63403a38a39SMarek Vasut	  say N.
63503a38a39SMarek Vasut
636ff247b7aSMasahiro Yamadaconfig UNIPHIER_SERIAL
637b6ef3a3fSMasahiro Yamada	bool "Support for UniPhier on-chip UART"
6382ea65f3eSMasahiro Yamada	depends on ARCH_UNIPHIER
63985dc2fe1SMasahiro Yamada	default y
640ff247b7aSMasahiro Yamada	help
641b6ef3a3fSMasahiro Yamada	  If you have a UniPhier based board and want to use the on-chip
642b6ef3a3fSMasahiro Yamada	  serial ports, say Y to this option. If unsure, say N.
643dcfe4a54SSimon Glass
64454e24d33SMichal Simekconfig XILINX_UARTLITE
64554e24d33SMichal Simek	bool "Xilinx Uarlite support"
64680cce262SRicardo Ribalda Delgado	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
64754e24d33SMichal Simek	help
64854e24d33SMichal Simek	  If you have a Xilinx based board and want to use the uartlite
64954e24d33SMichal Simek	  serial ports, say Y to this option. If unsure, say N.
65054e24d33SMichal Simek
651bfcef28aSBeniamino Galvaniconfig MESON_SERIAL
652bfcef28aSBeniamino Galvani	bool "Support for Amlogic Meson UART"
653bfcef28aSBeniamino Galvani	depends on DM_SERIAL && ARCH_MESON
654bfcef28aSBeniamino Galvani	help
655bfcef28aSBeniamino Galvani	  If you have an Amlogic Meson based board and want to use the on-chip
656bfcef28aSBeniamino Galvani	  serial ports, say Y to this option. If unsure, say N.
657bfcef28aSBeniamino Galvani
658142a20c3SMateusz Kulikowskiconfig MSM_SERIAL
659142a20c3SMateusz Kulikowski	bool "Qualcomm on-chip UART"
660142a20c3SMateusz Kulikowski	depends on DM_SERIAL
661142a20c3SMateusz Kulikowski	help
662142a20c3SMateusz Kulikowski	  Support Data Mover UART used on Qualcomm Snapdragon SoCs.
663142a20c3SMateusz Kulikowski	  It should support all Qualcomm devices with UARTDM version 1.4,
664142a20c3SMateusz Kulikowski	  for example APQ8016 and MSM8916.
665142a20c3SMateusz Kulikowski	  Single baudrate is supported in current implementation (115200).
6666985d496SStefan Roese
6675d754197SLokesh Vutlaconfig OMAP_SERIAL
6685d754197SLokesh Vutla	bool "Support for OMAP specific UART"
6695d754197SLokesh Vutla	depends on DM_SERIAL
670586bde93SLokesh Vutla	default y if (ARCH_OMAP2PLUS || ARCH_K3)
6715d754197SLokesh Vutla	select SYS_NS16550
6725d754197SLokesh Vutla	help
6735d754197SLokesh Vutla	  If you have an TI based SoC and want to use the on-chip serial
6745d754197SLokesh Vutla	  port, say Y to this option. If unsure say N.
6755d754197SLokesh Vutla
6766f9347f3SManivannan Sadhasivamconfig OWL_SERIAL
6776f9347f3SManivannan Sadhasivam	bool "Actions Semi OWL UART"
6786f9347f3SManivannan Sadhasivam	depends on DM_SERIAL && ARCH_OWL
6796f9347f3SManivannan Sadhasivam	help
6806f9347f3SManivannan Sadhasivam	  If you have a Actions Semi OWL based board and want to use the on-chip
6816f9347f3SManivannan Sadhasivam	  serial port, say Y to this option. If unsure, say N.
6826f9347f3SManivannan Sadhasivam	  Single baudrate is supported in current implementation (115200).
6836f9347f3SManivannan Sadhasivam
684d804a5e1SMarcel Ziswilerconfig PXA_SERIAL
685d804a5e1SMarcel Ziswiler	bool "PXA serial port support"
686d804a5e1SMarcel Ziswiler	help
687d804a5e1SMarcel Ziswiler	  If you have a machine based on a Marvell XScale PXA2xx CPU you
688d804a5e1SMarcel Ziswiler	  can enable its onboard serial ports by enabling this option.
689d804a5e1SMarcel Ziswiler
690e2842496SAnup Patelconfig SIFIVE_SERIAL
691e2842496SAnup Patel	bool "SiFive UART support"
692e2842496SAnup Patel	depends on DM_SERIAL
693e2842496SAnup Patel	help
694e2842496SAnup Patel	  This driver supports the SiFive UART. If unsure say N.
695e2842496SAnup Patel
696214a17e6SPatrice Chotardconfig STI_ASC_SERIAL
697214a17e6SPatrice Chotard	bool "STMicroelectronics on-chip UART"
698214a17e6SPatrice Chotard	depends on DM_SERIAL && ARCH_STI
699214a17e6SPatrice Chotard	help
700214a17e6SPatrice Chotard	  Select this to enable Asynchronous Serial Controller available
701214a17e6SPatrice Chotard	  on STiH410 SoC. This is a basic implementation,  it supports
702214a17e6SPatrice Chotard	  following baudrate 9600, 19200, 38400, 57600 and 115200.
703214a17e6SPatrice Chotard
704ae74de0dSPatrice Chotardconfig STM32_SERIAL
70584e9dcc1SPatrice Chotard	bool "STMicroelectronics STM32 SoCs on-chip UART"
7062514c2d0SPatrick Delaunay	depends on DM_SERIAL && (STM32F4 || STM32F7 || STM32H7 || ARCH_STM32MP)
70784e9dcc1SPatrice Chotard	help
7082514c2d0SPatrick Delaunay	  If you have a machine based on a STM32 F4, F7, H7 or MP1 SOC
7092514c2d0SPatrick Delaunay	  you can enable its onboard serial ports, say Y to this option.
710776b2ddbSPatrice Chotard	  If unsure, say N.
71184e9dcc1SPatrice Chotard
712809704ebSMichal Simekconfig ZYNQ_SERIAL
713809704ebSMichal Simek	bool "Cadence (Xilinx Zynq) UART support"
7141d6c54ecSMichal Simek	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_ZYNQMP_R5)
715809704ebSMichal Simek	help
716809704ebSMichal Simek	  This driver supports the Cadence UART. It is found e.g. in Xilinx
717809704ebSMichal Simek	  Zynq/ZynqMP.
718809704ebSMichal Simek
719849b1160SRyder Leeconfig MTK_SERIAL
720849b1160SRyder Lee	bool "MediaTek High-speed UART support"
721849b1160SRyder Lee	depends on DM_SERIAL
722849b1160SRyder Lee	help
723849b1160SRyder Lee	  Select this to enable UART support for MediaTek High-speed UART
724849b1160SRyder Lee	  devices. This driver uses driver model and requires a device
725849b1160SRyder Lee	  tree binding to operate.
726849b1160SRyder Lee	  The High-speed UART is compatible with the ns16550a UART and have
727849b1160SRyder Lee	  its own high-speed registers.
728849b1160SRyder Lee
729dd7ff472SChristophe Leroyconfig MPC8XX_CONS
730dd7ff472SChristophe Leroy	bool "Console driver for MPC8XX"
731ee1e600cSChristophe Leroy	depends on MPC8xx
732dd7ff472SChristophe Leroy	default y
733dd7ff472SChristophe Leroy
734dd7ff472SChristophe Leroychoice
735dd7ff472SChristophe Leroy	prompt "Console port"
736dd7ff472SChristophe Leroy	default 8xx_CONS_SMC1
737dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
738dd7ff472SChristophe Leroy	help
739dd7ff472SChristophe Leroy	  Depending on board, select one serial port
740dd7ff472SChristophe Leroy	  (CONFIG_8xx_CONS_SMC1 or CONFIG_8xx_CONS_SMC2)
741dd7ff472SChristophe Leroy
742dd7ff472SChristophe Leroyconfig 8xx_CONS_SMC1
743dd7ff472SChristophe Leroy	bool "SMC1"
744dd7ff472SChristophe Leroy
745dd7ff472SChristophe Leroyconfig 8xx_CONS_SMC2
746dd7ff472SChristophe Leroy	bool "SMC2"
747dd7ff472SChristophe Leroy
748dd7ff472SChristophe Leroyendchoice
749dd7ff472SChristophe Leroy
750dd7ff472SChristophe Leroyconfig SYS_SMC_RXBUFLEN
751dd7ff472SChristophe Leroy	int "Console Rx buffer length"
752dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
753dd7ff472SChristophe Leroy	default 1
754dd7ff472SChristophe Leroy	help
755dd7ff472SChristophe Leroy	  With CONFIG_SYS_SMC_RXBUFLEN it is possible to define
756dd7ff472SChristophe Leroy	  the maximum receive buffer length for the SMC.
757dd7ff472SChristophe Leroy	  This option is actual only for 8xx possible.
758dd7ff472SChristophe Leroy	  If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE
759dd7ff472SChristophe Leroy	  must be defined, to setup the maximum idle timeout for
760dd7ff472SChristophe Leroy	  the SMC.
761dd7ff472SChristophe Leroy
762dd7ff472SChristophe Leroyconfig SYS_MAXIDLE
763dd7ff472SChristophe Leroy	int "maximum idle timeout"
764dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
765dd7ff472SChristophe Leroy	default 0
766dd7ff472SChristophe Leroy
767dd7ff472SChristophe Leroyconfig SYS_BRGCLK_PRESCALE
768dd7ff472SChristophe Leroy	int "BRG Clock Prescale"
769dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
770dd7ff472SChristophe Leroy	default 1
771dd7ff472SChristophe Leroy
772dd7ff472SChristophe Leroyconfig SYS_SDSR
773dd7ff472SChristophe Leroy	hex "SDSR Value"
774dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
775dd7ff472SChristophe Leroy	default 0x83
776dd7ff472SChristophe Leroy
777dd7ff472SChristophe Leroyconfig SYS_SDMR
778dd7ff472SChristophe Leroy	hex "SDMR Value"
779dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
780dd7ff472SChristophe Leroy	default 0
781dd7ff472SChristophe Leroy
7820b11dbf7SMasahiro Yamadaendmenu
783