xref: /openbmc/u-boot/drivers/serial/Kconfig (revision 61366b71)
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
2792c55b68SSimon Glassconfig SERIAL_PRESENT
2892c55b68SSimon Glass	bool "Provide a serial driver"
2992c55b68SSimon Glass	depends on DM_SERIAL
3092c55b68SSimon Glass	default y
3192c55b68SSimon Glass	help
3292c55b68SSimon Glass	  In very space-constrained devices even the full UART driver is too
3392c55b68SSimon Glass	  large. In this case the debug UART can still be used in some cases.
3492c55b68SSimon Glass	  This option enables the full UART in U-Boot, so if is it disabled,
3592c55b68SSimon Glass	  the full UART driver will be omitted, thus saving space.
3692c55b68SSimon Glass
3792c55b68SSimon Glassconfig SPL_SERIAL_PRESENT
3892c55b68SSimon Glass	bool "Provide a serial driver in SPL"
3992c55b68SSimon Glass	depends on DM_SERIAL
4092c55b68SSimon Glass	default y
4192c55b68SSimon Glass	help
4292c55b68SSimon Glass	  In very space-constrained devices even the full UART driver is too
4392c55b68SSimon Glass	  large. In this case the debug UART can still be used in some cases.
4492c55b68SSimon Glass	  This option enables the full UART in SPL, so if is it disabled,
4592c55b68SSimon Glass	  the full UART driver will be omitted, thus saving space.
4692c55b68SSimon Glass
477095f864SMylène Josserandconfig CONS_INDEX
487095f864SMylène Josserand	int "UART used for console"
497095f864SMylène Josserand	depends on ARCH_SUNXI
507095f864SMylène Josserand	default 2 if MACH_SUN5I
51e8f86a02SIcenowy Zheng	default 5 if MACH_SUN8I_A23 || MACH_SUN8I_A33
527095f864SMylène Josserand	default 1
537095f864SMylène Josserand	help
547095f864SMylène Josserand	  Configures the console index.
55e8f86a02SIcenowy Zheng	  For Allwinner SoC., default values are 2 for SUN5I and 5 for A23/A33.
567095f864SMylène Josserand	  Otherwise, the index equals 1.
577095f864SMylène Josserand
58da333ae7SMasahiro Yamadaconfig DM_SERIAL
59da333ae7SMasahiro Yamada	bool "Enable Driver Model for serial drivers"
60da333ae7SMasahiro Yamada	depends on DM
61da333ae7SMasahiro Yamada	help
62f94a1bedSSimon Glass	  Enable driver model for serial. This replaces
63f94a1bedSSimon Glass	  drivers/serial/serial.c with the serial uclass, which
64f94a1bedSSimon Glass	  implements serial_putc() etc. The uclass interface is
65f94a1bedSSimon Glass	  defined in include/serial.h.
66ff247b7aSMasahiro Yamada
67891f7ae6SSimon Glassconfig SPL_DM_SERIAL
680424990cSHeiko Schocher	bool "Enable Driver Model for serial drivers in SPL"
69891f7ae6SSimon Glass	depends on DM_SERIAL
70891f7ae6SSimon Glass	default y if SPL && DM_SERIAL
71891f7ae6SSimon Glass	help
72891f7ae6SSimon Glass	  Enable driver model for serial in SPL. This replaces
73891f7ae6SSimon Glass	  drivers/serial/serial.c with the serial uclass, which
74891f7ae6SSimon Glass	  implements serial_putc() etc. The uclass interface is
75891f7ae6SSimon Glass	  defined in include/serial.h.
76891f7ae6SSimon Glass
77891f7ae6SSimon Glassconfig TPL_DM_SERIAL
780424990cSHeiko Schocher	bool "Enable Driver Model for serial drivers in TPL"
79891f7ae6SSimon Glass	depends on DM_SERIAL
80891f7ae6SSimon Glass	default y if TPL && DM_SERIAL
81891f7ae6SSimon Glass	help
82891f7ae6SSimon Glass	  Enable driver model for serial in TPL. This replaces
83891f7ae6SSimon Glass	  drivers/serial/serial.c with the serial uclass, which
84891f7ae6SSimon Glass	  implements serial_putc() etc. The uclass interface is
85891f7ae6SSimon Glass	  defined in include/serial.h.
86891f7ae6SSimon Glass
872f964aa7SSimon Glassconfig DEBUG_UART
882f964aa7SSimon Glass	bool "Enable an early debug UART for debugging"
892f964aa7SSimon Glass	help
902f964aa7SSimon Glass	  The debug UART is intended for use very early in U-Boot to debug
912f964aa7SSimon Glass	  problems when an ICE or other debug mechanism is not available.
922f964aa7SSimon Glass
932f964aa7SSimon Glass	  To use it you should:
942f964aa7SSimon Glass	  - Make sure your UART supports this interface
952f964aa7SSimon Glass	  - Enable CONFIG_DEBUG_UART
962f964aa7SSimon Glass	  - Enable the CONFIG for your UART to tell it to provide this interface
972f964aa7SSimon Glass	        (e.g. CONFIG_DEBUG_UART_NS16550)
982f964aa7SSimon Glass	  - Define the required settings as needed (see below)
992f964aa7SSimon Glass	  - Call debug_uart_init() before use
1002f964aa7SSimon Glass	  - Call debug_uart_putc() to output a character
1012f964aa7SSimon Glass
1022f964aa7SSimon Glass	  Depending on your platform it may be possible to use this UART before
1032f964aa7SSimon Glass	  a stack is available.
1042f964aa7SSimon Glass
1052f964aa7SSimon Glass	  If your UART does not support this interface you can probably add
1062f964aa7SSimon Glass	  support quite easily. Remember that you cannot use driver model and
1072f964aa7SSimon Glass	  it is preferred to use no stack.
1082f964aa7SSimon Glass
1092f964aa7SSimon Glass	  You must not use this UART once driver model is working and the
1102f964aa7SSimon Glass	  serial drivers are up and running (done in serial_init()). Otherwise
1112f964aa7SSimon Glass	  the drivers may conflict and you will get strange output.
1122f964aa7SSimon Glass
11321d00436SSimon Glasschoice
11421d00436SSimon Glass	prompt "Select which UART will provide the debug UART"
11521d00436SSimon Glass	depends on DEBUG_UART
116b1e361b6SThomas Chou	default DEBUG_UART_NS16550
11721d00436SSimon Glass
118220e8021SThomas Chouconfig DEBUG_UART_ALTERA_JTAGUART
119220e8021SThomas Chou	bool "Altera JTAG UART"
120220e8021SThomas Chou	help
121220e8021SThomas Chou	  Select this to enable a debug UART using the altera_jtag_uart driver.
122220e8021SThomas Chou	  You will need to provide parameters to make this work. The driver will
123220e8021SThomas Chou	  be available until the real driver model serial is running.
124220e8021SThomas Chou
125da2f838dSThomas Chouconfig DEBUG_UART_ALTERA_UART
126da2f838dSThomas Chou	bool "Altera UART"
127da2f838dSThomas Chou	help
128da2f838dSThomas Chou	  Select this to enable a debug UART using the altera_uart driver.
129da2f838dSThomas Chou	  You will need to provide parameters to make this work. The driver will
130da2f838dSThomas Chou	  be available until the real driver model serial is running.
131da2f838dSThomas Chou
13260b49761SWills Wangconfig DEBUG_UART_AR933X
13360b49761SWills Wang	bool "QCA/Atheros ar933x"
13460b49761SWills Wang	depends on AR933X_UART
13560b49761SWills Wang	help
13660b49761SWills Wang	  Select this to enable a debug UART using the ar933x uart driver.
13760b49761SWills Wang	  You will need to provide parameters to make this work. The
13860b49761SWills Wang	  driver will be available until the real driver model serial is
13960b49761SWills Wang	  running.
14060b49761SWills Wang
141998cf3c2SWenyou Yangconfig DEBUG_UART_ATMEL
142998cf3c2SWenyou Yang	bool "Atmel USART"
143998cf3c2SWenyou Yang	help
144998cf3c2SWenyou Yang	  Select this to enable a debug UART using the atmel usart driver. You
145998cf3c2SWenyou Yang	  will need to provide parameters to make this work. The driver will
146998cf3c2SWenyou Yang	  be available until the real driver-model serial is running.
147998cf3c2SWenyou Yang
14830581040SÁlvaro Fernández Rojasconfig DEBUG_UART_BCM6345
14930581040SÁlvaro Fernández Rojas	bool "BCM6345 UART"
15030581040SÁlvaro Fernández Rojas	depends on BCM6345_SERIAL
15130581040SÁlvaro Fernández Rojas	help
15230581040SÁlvaro Fernández Rojas	  Select this to enable a debug UART on BCM6345 SoCs. You
15330581040SÁlvaro Fernández Rojas	  will need to provide parameters to make this work. The driver will
15430581040SÁlvaro Fernández Rojas	  be available until the real driver model serial is running.
15530581040SÁlvaro Fernández Rojas
15621d00436SSimon Glassconfig DEBUG_UART_NS16550
15721d00436SSimon Glass	bool "ns16550"
15821d00436SSimon Glass	help
15921d00436SSimon Glass	  Select this to enable a debug UART using the ns16550 driver. You
16021d00436SSimon Glass	  will need to provide parameters to make this work. The driver will
16121d00436SSimon Glass	  be available until the real driver model serial is running.
16221d00436SSimon Glass
163275854baSSimon Glassconfig DEBUG_EFI_CONSOLE
164275854baSSimon Glass	bool "EFI"
165275854baSSimon Glass	depends on EFI_APP
166275854baSSimon Glass	help
167275854baSSimon Glass	  Select this to enable a debug console which calls back to EFI to
168275854baSSimon Glass	  output to the console. This can be useful for early debugging of
169275854baSSimon Glass	  U-Boot when running on top of EFI (Extensive Firmware Interface).
170275854baSSimon Glass	  This is a type of BIOS used by PCs.
171275854baSSimon Glass
172bf6e7022SSimon Glassconfig DEBUG_UART_S5P
173bf6e7022SSimon Glass	bool "Samsung S5P"
174bf6e7022SSimon Glass	help
175bf6e7022SSimon Glass	  Select this to enable a debug UART using the serial_s5p driver. You
176bf6e7022SSimon Glass	  will need to provide parameters to make this work. The driver will
177bf6e7022SSimon Glass	  be available until the real driver-model serial is running.
178bf6e7022SSimon Glass
179bfcef28aSBeniamino Galvaniconfig DEBUG_UART_MESON
180bfcef28aSBeniamino Galvani	bool "Amlogic Meson"
181bfcef28aSBeniamino Galvani	depends on MESON_SERIAL
182bfcef28aSBeniamino Galvani	help
183bfcef28aSBeniamino Galvani	  Select this to enable a debug UART using the serial_meson driver. You
184bfcef28aSBeniamino Galvani	  will need to provide parameters to make this work. The driver will
185bfcef28aSBeniamino Galvani	  be available until the real driver-model serial is running.
186bfcef28aSBeniamino Galvani
1874166ba3bSMichal Simekconfig DEBUG_UART_UARTLITE
1884166ba3bSMichal Simek	bool "Xilinx Uartlite"
1894166ba3bSMichal Simek	help
1904166ba3bSMichal Simek	  Select this to enable a debug UART using the serial_uartlite driver.
1914166ba3bSMichal Simek	  You will need to provide parameters to make this work. The driver will
1924166ba3bSMichal Simek	  be available until the real driver-model serial is running.
1934166ba3bSMichal Simek
194966bfa73SMichal Simekconfig DEBUG_UART_ARM_DCC
195966bfa73SMichal Simek	bool "ARM DCC"
196966bfa73SMichal Simek	help
197966bfa73SMichal Simek	  Select this to enable a debug UART using the ARM JTAG DCC port.
198966bfa73SMichal Simek	  The DCC port can be used for very early debugging and doesn't require
199966bfa73SMichal Simek	  any additional setting like address/baudrate/clock. On systems without
200966bfa73SMichal Simek	  any serial interface this is the easiest way how to get console.
201966bfa73SMichal Simek	  Every ARM core has own DCC port which is the part of debug interface.
202966bfa73SMichal Simek	  This port is available at least on ARMv6, ARMv7, ARMv8 and XScale
203966bfa73SMichal Simek	  architectures.
204966bfa73SMichal Simek
2056985d496SStefan Roeseconfig DEBUG_MVEBU_A3700_UART
2066985d496SStefan Roese	bool "Marvell Armada 3700"
2076985d496SStefan Roese	help
2086985d496SStefan Roese	  Select this to enable a debug UART using the serial_mvebu driver. You
2096985d496SStefan Roese	  will need to provide parameters to make this work. The driver will
2106985d496SStefan Roese	  be available until the real driver-model serial is running.
2116985d496SStefan Roese
212c54c0a4cSSimon Glassconfig DEBUG_UART_ZYNQ
213c54c0a4cSSimon Glass	bool "Xilinx Zynq"
214c54c0a4cSSimon Glass	help
2156bf87dacSMichal Simek	  Select this to enable a debug UART using the serial_zynq driver. You
216c54c0a4cSSimon Glass	  will need to provide parameters to make this work. The driver will
217c54c0a4cSSimon Glass	  be available until the real driver-model serial is running.
218c54c0a4cSSimon Glass
219e43ce3fcSFrancois Retiefconfig DEBUG_UART_APBUART
220e43ce3fcSFrancois Retief	depends on LEON3
221e43ce3fcSFrancois Retief	bool "Gaisler APBUART"
222e43ce3fcSFrancois Retief	help
223e43ce3fcSFrancois Retief	  Select this to enable a debug UART using the serial_leon3 driver. You
224e43ce3fcSFrancois Retief	  will need to provide parameters to make this work. The driver will
225e43ce3fcSFrancois Retief	  be available until the real driver model serial is running.
226e43ce3fcSFrancois Retief
22719de8150SSergey Temerkhanovconfig DEBUG_UART_PL010
22819de8150SSergey Temerkhanov	bool "pl010"
22919de8150SSergey Temerkhanov	help
23019de8150SSergey Temerkhanov	  Select this to enable a debug UART using the pl01x driver with the
23119de8150SSergey Temerkhanov	  PL010 UART type. You will need to provide parameters to make this
23219de8150SSergey Temerkhanov	  work. The driver will be available until the real driver model
23319de8150SSergey Temerkhanov	  serial is running.
23419de8150SSergey Temerkhanov
23519de8150SSergey Temerkhanovconfig DEBUG_UART_PL011
23619de8150SSergey Temerkhanov	bool "pl011"
23719de8150SSergey Temerkhanov	help
23819de8150SSergey Temerkhanov	  Select this to enable a debug UART using the pl01x driver with the
23919de8150SSergey Temerkhanov	  PL011 UART type. You will need to provide parameters to make this
24019de8150SSergey Temerkhanov	  work. The driver will be available until the real driver model
24119de8150SSergey Temerkhanov	  serial is running.
24219de8150SSergey Temerkhanov
2439e160ee8SPaul Thackerconfig DEBUG_UART_PIC32
2449e160ee8SPaul Thacker	bool "Microchip PIC32"
2459e160ee8SPaul Thacker	depends on PIC32_SERIAL
2469e160ee8SPaul Thacker	help
2479e160ee8SPaul Thacker	  Select this to enable a debug UART using the serial_pic32 driver. You
2489e160ee8SPaul Thacker	  will need to provide parameters to make this work. The driver will
2499e160ee8SPaul Thacker	  be available until the real driver model serial is running.
2509e160ee8SPaul Thacker
251*61366b71SJagan Tekiconfig DEBUG_UART_MXC
252*61366b71SJagan Teki	bool "IMX Serial port"
253*61366b71SJagan Teki	depends on MXC_UART
254*61366b71SJagan Teki	help
255*61366b71SJagan Teki	  Select this to enable a debug UART using the serial_mxc driver. You
256*61366b71SJagan Teki	  will need to provide parameters to make this work. The driver will
257*61366b71SJagan Teki	  be available until the real driver model serial is running.
258*61366b71SJagan Teki
259d5cf3297SMasahiro Yamadaconfig DEBUG_UART_UNIPHIER
260d5cf3297SMasahiro Yamada	bool "UniPhier on-chip UART"
261d5cf3297SMasahiro Yamada	depends on ARCH_UNIPHIER
262d5cf3297SMasahiro Yamada	help
263d5cf3297SMasahiro Yamada	  Select this to enable a debug UART using the UniPhier on-chip UART.
264d5cf3297SMasahiro Yamada	  You will need to provide DEBUG_UART_BASE to make this work.  The
265d5cf3297SMasahiro Yamada	  driver will be available until the real driver-model serial is
266d5cf3297SMasahiro Yamada	  running.
267d5cf3297SMasahiro Yamada
268a52cf086SLokesh Vutlaconfig DEBUG_UART_OMAP
269a52cf086SLokesh Vutla	bool "OMAP uart"
270a52cf086SLokesh Vutla	help
271a52cf086SLokesh Vutla	  Select this to enable a debug UART using the omap ns16550 driver.
272a52cf086SLokesh Vutla	  You will need to provide parameters to make this work. The driver
273a52cf086SLokesh Vutla	  will be available until the real driver model serial is running.
274a52cf086SLokesh Vutla
27521d00436SSimon Glassendchoice
27621d00436SSimon Glass
2772f964aa7SSimon Glassconfig DEBUG_UART_BASE
2782f964aa7SSimon Glass	hex "Base address of UART"
2792f964aa7SSimon Glass	depends on DEBUG_UART
2802f964aa7SSimon Glass	help
2812f964aa7SSimon Glass	  This is the base address of your UART for memory-mapped UARTs.
2822f964aa7SSimon Glass
2832f964aa7SSimon Glass	  A default should be provided by your board, but if not you will need
2842f964aa7SSimon Glass	  to use the correct value here.
2852f964aa7SSimon Glass
2862f964aa7SSimon Glassconfig DEBUG_UART_CLOCK
2872f964aa7SSimon Glass	int "UART input clock"
2882f964aa7SSimon Glass	depends on DEBUG_UART
2892f964aa7SSimon Glass	help
2902f964aa7SSimon Glass	  The UART input clock determines the speed of the internal UART
2912f964aa7SSimon Glass	  circuitry. The baud rate is derived from this by dividing the input
2922f964aa7SSimon Glass	  clock down.
2932f964aa7SSimon Glass
2942f964aa7SSimon Glass	  A default should be provided by your board, but if not you will need
2952f964aa7SSimon Glass	  to use the correct value here.
2962f964aa7SSimon Glass
297dd0b0122SSimon Glassconfig DEBUG_UART_SHIFT
298dd0b0122SSimon Glass	int "UART register shift"
299dd0b0122SSimon Glass	depends on DEBUG_UART
300dd0b0122SSimon Glass	default 0 if DEBUG_UART
301dd0b0122SSimon Glass	help
302dd0b0122SSimon Glass	  Some UARTs (notably ns16550) support different register layouts
303dd0b0122SSimon Glass	  where the registers are spaced either as bytes, words or some other
304dd0b0122SSimon Glass	  value. Use this value to specify the shift to use, where 0=byte
305dd0b0122SSimon Glass	  registers, 2=32-bit word registers, etc.
306dd0b0122SSimon Glass
3070e977bc1SSimon Glassconfig DEBUG_UART_BOARD_INIT
3080e977bc1SSimon Glass	bool "Enable board-specific debug UART init"
3090e977bc1SSimon Glass	depends on DEBUG_UART
3100e977bc1SSimon Glass	help
3110e977bc1SSimon Glass	  Some boards need to set things up before the debug UART can be used.
3120e977bc1SSimon Glass	  On these boards a call to debug_uart_init() is insufficient. When
3130e977bc1SSimon Glass	  this option is enabled, the function board_debug_uart_init() will
3140e977bc1SSimon Glass	  be called when debug_uart_init() is called. You can put any code
3150e977bc1SSimon Glass	  here that is needed to set up the UART ready for use, such as set
3160e977bc1SSimon Glass	  pin multiplexing or enable clocks.
3170e977bc1SSimon Glass
318c7fefcb9SSimon Glassconfig DEBUG_UART_ANNOUNCE
319c7fefcb9SSimon Glass	bool "Show a message when the debug UART starts up"
320c7fefcb9SSimon Glass	depends on DEBUG_UART
321c7fefcb9SSimon Glass	help
322c7fefcb9SSimon Glass	  Enable this option to show a message when the debug UART is ready
323c7fefcb9SSimon Glass	  for use. You will see a message like "<debug_uart> " as soon as
324c7fefcb9SSimon Glass	  U-Boot has the UART ready for use (i.e. your code calls
325c7fefcb9SSimon Glass	  debug_uart_init()). This can be useful just as a check that
326c7fefcb9SSimon Glass	  everything is working.
327c7fefcb9SSimon Glass
32819de8150SSergey Temerkhanovconfig DEBUG_UART_SKIP_INIT
32919de8150SSergey Temerkhanov	bool "Skip UART initialization"
33019de8150SSergey Temerkhanov	help
33119de8150SSergey Temerkhanov	  Select this if the UART you want to use for debug output is already
33219de8150SSergey Temerkhanov	  initialized by the time U-Boot starts its execution.
33319de8150SSergey Temerkhanov
334220e8021SThomas Chouconfig ALTERA_JTAG_UART
335220e8021SThomas Chou	bool "Altera JTAG UART support"
336220e8021SThomas Chou	depends on DM_SERIAL
337220e8021SThomas Chou	help
338220e8021SThomas Chou	  Select this to enable an JTAG UART for Altera devices.The JTAG UART
339220e8021SThomas Chou	  core implements a method to communicate serial character streams
340220e8021SThomas Chou	  between a host PC and a Qsys system on an Altera FPGA. Please find
341220e8021SThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
342220e8021SThomas Chou
343220e8021SThomas Chouconfig ALTERA_JTAG_UART_BYPASS
344220e8021SThomas Chou	bool "Bypass output when no connection"
345220e8021SThomas Chou	depends on ALTERA_JTAG_UART
346220e8021SThomas Chou	help
347220e8021SThomas Chou	  Bypass console output and keep going even if there is no JTAG
348220e8021SThomas Chou	  terminal connection with the host. The console output will resume
349220e8021SThomas Chou	  once the JTAG terminal is connected. Without the bypass, the console
350220e8021SThomas Chou	  output will wait forever until a JTAG terminal is connected. If you
351220e8021SThomas Chou	  not are sure, say Y.
352220e8021SThomas Chou
353da2f838dSThomas Chouconfig ALTERA_UART
354da2f838dSThomas Chou	bool "Altera UART support"
355da2f838dSThomas Chou	depends on DM_SERIAL
356da2f838dSThomas Chou	help
357da2f838dSThomas Chou	  Select this to enable an UART for Altera devices. Please find
358da2f838dSThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
359da2f838dSThomas Chou
36060b49761SWills Wangconfig AR933X_UART
36160b49761SWills Wang	bool "QCA/Atheros ar933x UART support"
36260b49761SWills Wang	depends on DM_SERIAL && SOC_AR933X
36360b49761SWills Wang	help
36460b49761SWills Wang	  Select this to enable UART support for QCA/Atheros ar933x
36560b49761SWills Wang	  devices. This driver uses driver model and requires a device
36660b49761SWills Wang	  tree binding to operate, please refer to the document at
36760b49761SWills Wang	  doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
36860b49761SWills Wang
3696ec739aaSWenyou Yangconfig ATMEL_USART
3706ec739aaSWenyou Yang	bool "Atmel USART support"
3716ec739aaSWenyou Yang	help
3726ec739aaSWenyou Yang	  Select this to enable USART support for Atmel SoCs. It can be
3736ec739aaSWenyou Yang	  configured in the device tree, and input clock frequency can
3746ec739aaSWenyou Yang	  be got from the clk node.
3756ec739aaSWenyou Yang
37630581040SÁlvaro Fernández Rojasconfig BCM6345_SERIAL
37730581040SÁlvaro Fernández Rojas	bool "Support for BCM6345 UART"
37830581040SÁlvaro Fernández Rojas	depends on DM_SERIAL && ARCH_BMIPS
37930581040SÁlvaro Fernández Rojas	help
38030581040SÁlvaro Fernández Rojas	  Select this to enable UART on BCM6345 SoCs.
38130581040SÁlvaro Fernández Rojas
3825ed07cf5SBin Mengconfig FSL_LPUART
3835ed07cf5SBin Meng	bool "Freescale LPUART support"
3845ed07cf5SBin Meng	help
3855ed07cf5SBin Meng	  Select this to enable a Low Power UART for Freescale VF610 and
3865ed07cf5SBin Meng	  QorIQ Layerscape devices.
3875ed07cf5SBin Meng
3886985d496SStefan Roeseconfig MVEBU_A3700_UART
3896985d496SStefan Roese	bool "UART support for Armada 3700"
3906985d496SStefan Roese	default n
3916985d496SStefan Roese	help
3926985d496SStefan Roese	  Choose this option to add support for UART driver on the Marvell
3936985d496SStefan Roese	  Armada 3700 SoC. The base address is configured via DT.
3946985d496SStefan Roese
3958829e662SJagan Tekiconfig MXC_UART
3968829e662SJagan Teki	bool "IMX serial port support"
39798d62e61SPatrick Bruenn	depends on MX5 || MX6
3988829e662SJagan Teki	help
3998829e662SJagan Teki	  If you have a machine based on a Motorola IMX CPU you
4008829e662SJagan Teki	  can enable its onboard serial port by enabling this option.
4018829e662SJagan Teki
4029e160ee8SPaul Thackerconfig PIC32_SERIAL
4039e160ee8SPaul Thacker	bool "Support for Microchip PIC32 on-chip UART"
4049e160ee8SPaul Thacker	depends on DM_SERIAL && MACH_PIC32
4059e160ee8SPaul Thacker	default y
4069e160ee8SPaul Thacker	help
4079e160ee8SPaul Thacker	  Support for the UART found on Microchip PIC32 SoC's.
4089e160ee8SPaul Thacker
4099e39003eSThomas Chouconfig SYS_NS16550
4109e39003eSThomas Chou	bool "NS16550 UART or compatible"
4119e39003eSThomas Chou	help
4129e39003eSThomas Chou	  Support NS16550 UART or compatible. This can be enabled in the
4139e39003eSThomas Chou	  device tree with the correct input clock frequency. If the input
4149e39003eSThomas Chou	  clock frequency is not defined in the device tree, the macro
4159e39003eSThomas Chou	  CONFIG_SYS_NS16550_CLK defined in a legacy board header file will
4169e39003eSThomas Chou	  be used. It can be a constant or a function to get clock, eg,
4179e39003eSThomas Chou	  get_serial_clock().
4189e39003eSThomas Chou
419c5f8dd48SAndy Shevchenkoconfig INTEL_MID_SERIAL
420c5f8dd48SAndy Shevchenko	bool "Intel MID platform UART support"
421c5f8dd48SAndy Shevchenko	depends on DM_SERIAL && OF_CONTROL
422c5f8dd48SAndy Shevchenko	depends on INTEL_MID
423c5f8dd48SAndy Shevchenko	select SYS_NS16550
424c5f8dd48SAndy Shevchenko	help
425c5f8dd48SAndy Shevchenko	  Select this to enable a UART for Intel MID platforms.
426c5f8dd48SAndy Shevchenko	  This uses the ns16550 driver as a library.
427c5f8dd48SAndy Shevchenko
4282fc24d53SSimon Glassconfig ROCKCHIP_SERIAL
4292fc24d53SSimon Glass	bool "Rockchip on-chip UART support"
4302fc24d53SSimon Glass	depends on DM_SERIAL && SPL_OF_PLATDATA
4312fc24d53SSimon Glass	help
4322fc24d53SSimon Glass	  Select this to enable a debug UART for Rockchip devices when using
4337f73ca48STom Rini	  CONFIG_SPL_OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
4342fc24d53SSimon Glass	  This uses the ns16550 driver, converting the platdata from of-platdata
4352fc24d53SSimon Glass	  to the ns16550 format.
4362fc24d53SSimon Glass
437af282245SSimon Glassconfig SANDBOX_SERIAL
438af282245SSimon Glass	bool "Sandbox UART support"
4392ea65f3eSMasahiro Yamada	depends on SANDBOX
440af282245SSimon Glass	help
441af282245SSimon Glass	  Select this to enable a seral UART for sandbox. This is required to
442af282245SSimon Glass	  operate correctly, otherwise you will see no serial output from
443af282245SSimon Glass	  sandbox. The emulated UART will display to the console and console
444af282245SSimon Glass	  input will be fed into the UART. This allows you to interact with
445af282245SSimon Glass	  U-Boot.
446af282245SSimon Glass
447af282245SSimon Glass	  The operation of the console is controlled by the -t command-line
448af282245SSimon Glass	  flag. In raw mode, U-Boot sees all characters from the terminal
449af282245SSimon Glass	  before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
450af282245SSimon Glass	  is processed by the terminal, and terminates U-Boot. Valid options
451af282245SSimon Glass	  are:
452af282245SSimon Glass
453af282245SSimon Glass	     -t raw-with-sigs	Raw mode, Ctrl-C will terminate U-Boot
454af282245SSimon Glass	     -t raw		Raw mode, Ctrl-C is processed by U-Boot
455af282245SSimon Glass	     -t cooked		Cooked mode, Ctrl-C terminates
456af282245SSimon Glass
457ff247b7aSMasahiro Yamadaconfig UNIPHIER_SERIAL
458b6ef3a3fSMasahiro Yamada	bool "Support for UniPhier on-chip UART"
4592ea65f3eSMasahiro Yamada	depends on ARCH_UNIPHIER
46085dc2fe1SMasahiro Yamada	default y
461ff247b7aSMasahiro Yamada	help
462b6ef3a3fSMasahiro Yamada	  If you have a UniPhier based board and want to use the on-chip
463b6ef3a3fSMasahiro Yamada	  serial ports, say Y to this option. If unsure, say N.
464dcfe4a54SSimon Glass
46554e24d33SMichal Simekconfig XILINX_UARTLITE
46654e24d33SMichal Simek	bool "Xilinx Uarlite support"
46780cce262SRicardo Ribalda Delgado	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
46854e24d33SMichal Simek	help
46954e24d33SMichal Simek	  If you have a Xilinx based board and want to use the uartlite
47054e24d33SMichal Simek	  serial ports, say Y to this option. If unsure, say N.
47154e24d33SMichal Simek
472bfcef28aSBeniamino Galvaniconfig MESON_SERIAL
473bfcef28aSBeniamino Galvani	bool "Support for Amlogic Meson UART"
474bfcef28aSBeniamino Galvani	depends on DM_SERIAL && ARCH_MESON
475bfcef28aSBeniamino Galvani	help
476bfcef28aSBeniamino Galvani	  If you have an Amlogic Meson based board and want to use the on-chip
477bfcef28aSBeniamino Galvani	  serial ports, say Y to this option. If unsure, say N.
478bfcef28aSBeniamino Galvani
479142a20c3SMateusz Kulikowskiconfig MSM_SERIAL
480142a20c3SMateusz Kulikowski	bool "Qualcomm on-chip UART"
481142a20c3SMateusz Kulikowski	depends on DM_SERIAL
482142a20c3SMateusz Kulikowski	help
483142a20c3SMateusz Kulikowski	  Support Data Mover UART used on Qualcomm Snapdragon SoCs.
484142a20c3SMateusz Kulikowski	  It should support all Qualcomm devices with UARTDM version 1.4,
485142a20c3SMateusz Kulikowski	  for example APQ8016 and MSM8916.
486142a20c3SMateusz Kulikowski	  Single baudrate is supported in current implementation (115200).
4876985d496SStefan Roese
488d804a5e1SMarcel Ziswilerconfig PXA_SERIAL
489d804a5e1SMarcel Ziswiler	bool "PXA serial port support"
490d804a5e1SMarcel Ziswiler	help
491d804a5e1SMarcel Ziswiler	  If you have a machine based on a Marvell XScale PXA2xx CPU you
492d804a5e1SMarcel Ziswiler	  can enable its onboard serial ports by enabling this option.
493d804a5e1SMarcel Ziswiler
494214a17e6SPatrice Chotardconfig STI_ASC_SERIAL
495214a17e6SPatrice Chotard	bool "STMicroelectronics on-chip UART"
496214a17e6SPatrice Chotard	depends on DM_SERIAL && ARCH_STI
497214a17e6SPatrice Chotard	help
498214a17e6SPatrice Chotard	  Select this to enable Asynchronous Serial Controller available
499214a17e6SPatrice Chotard	  on STiH410 SoC. This is a basic implementation,  it supports
500214a17e6SPatrice Chotard	  following baudrate 9600, 19200, 38400, 57600 and 115200.
501214a17e6SPatrice Chotard
502dd7ff472SChristophe Leroyconfig MPC8XX_CONS
503dd7ff472SChristophe Leroy	bool "Console driver for MPC8XX"
504dd7ff472SChristophe Leroy	depends on 8xx
505dd7ff472SChristophe Leroy	default y
506dd7ff472SChristophe Leroy
507dd7ff472SChristophe Leroychoice
508dd7ff472SChristophe Leroy	prompt "Console port"
509dd7ff472SChristophe Leroy	default 8xx_CONS_SMC1
510dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
511dd7ff472SChristophe Leroy	help
512dd7ff472SChristophe Leroy	  Depending on board, select one serial port
513dd7ff472SChristophe Leroy	  (CONFIG_8xx_CONS_SMC1 or CONFIG_8xx_CONS_SMC2)
514dd7ff472SChristophe Leroy
515dd7ff472SChristophe Leroyconfig 8xx_CONS_SMC1
516dd7ff472SChristophe Leroy	bool "SMC1"
517dd7ff472SChristophe Leroy
518dd7ff472SChristophe Leroyconfig 8xx_CONS_SMC2
519dd7ff472SChristophe Leroy	bool "SMC2"
520dd7ff472SChristophe Leroy
521dd7ff472SChristophe Leroyendchoice
522dd7ff472SChristophe Leroy
523dd7ff472SChristophe Leroyconfig SYS_SMC_RXBUFLEN
524dd7ff472SChristophe Leroy	int "Console Rx buffer length"
525dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
526dd7ff472SChristophe Leroy	default 1
527dd7ff472SChristophe Leroy	help
528dd7ff472SChristophe Leroy	  With CONFIG_SYS_SMC_RXBUFLEN it is possible to define
529dd7ff472SChristophe Leroy	  the maximum receive buffer length for the SMC.
530dd7ff472SChristophe Leroy	  This option is actual only for 8xx possible.
531dd7ff472SChristophe Leroy	  If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE
532dd7ff472SChristophe Leroy	  must be defined, to setup the maximum idle timeout for
533dd7ff472SChristophe Leroy	  the SMC.
534dd7ff472SChristophe Leroy
535dd7ff472SChristophe Leroyconfig SYS_MAXIDLE
536dd7ff472SChristophe Leroy	int "maximum idle timeout"
537dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
538dd7ff472SChristophe Leroy	default 0
539dd7ff472SChristophe Leroy
540dd7ff472SChristophe Leroyconfig SYS_BRGCLK_PRESCALE
541dd7ff472SChristophe Leroy	int "BRG Clock Prescale"
542dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
543dd7ff472SChristophe Leroy	default 1
544dd7ff472SChristophe Leroy
545dd7ff472SChristophe Leroyconfig SYS_SDSR
546dd7ff472SChristophe Leroy	hex "SDSR Value"
547dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
548dd7ff472SChristophe Leroy	default 0x83
549dd7ff472SChristophe Leroy
550dd7ff472SChristophe Leroyconfig SYS_SDMR
551dd7ff472SChristophe Leroy	hex "SDMR Value"
552dd7ff472SChristophe Leroy	depends on MPC8XX_CONS
553dd7ff472SChristophe Leroy	default 0
554dd7ff472SChristophe Leroy
5550b11dbf7SMasahiro Yamadaendmenu
556