xref: /openbmc/u-boot/drivers/serial/Kconfig (revision 2f964aa7)
1da333ae7SMasahiro Yamadaconfig DM_SERIAL
2da333ae7SMasahiro Yamada	bool "Enable Driver Model for serial drivers"
3da333ae7SMasahiro Yamada	depends on DM
4da333ae7SMasahiro Yamada	help
5f94a1bedSSimon Glass	  Enable driver model for serial. This replaces
6f94a1bedSSimon Glass	  drivers/serial/serial.c with the serial uclass, which
7f94a1bedSSimon Glass	  implements serial_putc() etc. The uclass interface is
8f94a1bedSSimon Glass	  defined in include/serial.h.
9ff247b7aSMasahiro Yamada
10*2f964aa7SSimon Glassconfig DEBUG_UART
11*2f964aa7SSimon Glass	bool "Enable an early debug UART for debugging"
12*2f964aa7SSimon Glass	help
13*2f964aa7SSimon Glass	  The debug UART is intended for use very early in U-Boot to debug
14*2f964aa7SSimon Glass	  problems when an ICE or other debug mechanism is not available.
15*2f964aa7SSimon Glass
16*2f964aa7SSimon Glass	  To use it you should:
17*2f964aa7SSimon Glass	  - Make sure your UART supports this interface
18*2f964aa7SSimon Glass	  - Enable CONFIG_DEBUG_UART
19*2f964aa7SSimon Glass	  - Enable the CONFIG for your UART to tell it to provide this interface
20*2f964aa7SSimon Glass	        (e.g. CONFIG_DEBUG_UART_NS16550)
21*2f964aa7SSimon Glass	  - Define the required settings as needed (see below)
22*2f964aa7SSimon Glass	  - Call debug_uart_init() before use
23*2f964aa7SSimon Glass	  - Call debug_uart_putc() to output a character
24*2f964aa7SSimon Glass
25*2f964aa7SSimon Glass	  Depending on your platform it may be possible to use this UART before
26*2f964aa7SSimon Glass	  a stack is available.
27*2f964aa7SSimon Glass
28*2f964aa7SSimon Glass	  If your UART does not support this interface you can probably add
29*2f964aa7SSimon Glass	  support quite easily. Remember that you cannot use driver model and
30*2f964aa7SSimon Glass	  it is preferred to use no stack.
31*2f964aa7SSimon Glass
32*2f964aa7SSimon Glass	  You must not use this UART once driver model is working and the
33*2f964aa7SSimon Glass	  serial drivers are up and running (done in serial_init()). Otherwise
34*2f964aa7SSimon Glass	  the drivers may conflict and you will get strange output.
35*2f964aa7SSimon Glass
36*2f964aa7SSimon Glassconfig DEBUG_UART_BASE
37*2f964aa7SSimon Glass	hex "Base address of UART"
38*2f964aa7SSimon Glass	depends on DEBUG_UART
39*2f964aa7SSimon Glass	help
40*2f964aa7SSimon Glass	  This is the base address of your UART for memory-mapped UARTs.
41*2f964aa7SSimon Glass
42*2f964aa7SSimon Glass	  A default should be provided by your board, but if not you will need
43*2f964aa7SSimon Glass	  to use the correct value here.
44*2f964aa7SSimon Glass
45*2f964aa7SSimon Glassconfig DEBUG_UART_CLOCK
46*2f964aa7SSimon Glass	int "UART input clock"
47*2f964aa7SSimon Glass	depends on DEBUG_UART
48*2f964aa7SSimon Glass	help
49*2f964aa7SSimon Glass	  The UART input clock determines the speed of the internal UART
50*2f964aa7SSimon Glass	  circuitry. The baud rate is derived from this by dividing the input
51*2f964aa7SSimon Glass	  clock down.
52*2f964aa7SSimon Glass
53*2f964aa7SSimon Glass	  A default should be provided by your board, but if not you will need
54*2f964aa7SSimon Glass	  to use the correct value here.
55*2f964aa7SSimon Glass
56ff247b7aSMasahiro Yamadaconfig UNIPHIER_SERIAL
57ff247b7aSMasahiro Yamada	bool "UniPhier on-chip UART support"
58ff247b7aSMasahiro Yamada	depends on ARCH_UNIPHIER && DM_SERIAL
59ff247b7aSMasahiro Yamada	help
60ff247b7aSMasahiro Yamada	  Support for the on-chip UARTs on the Panasonic UniPhier platform.
61