1menu "ARM debug"
2
3config DEBUG_LL
4	bool "Low-level debugging functions"
5	depends on !ARM64
6	help
7	  Say Y here to include definitions of printascii, printch, printhex
8	  in U-Boot.  This is helpful if you are debugging code that
9	  executes before the console is initialized.
10
11choice
12	prompt "Low-level debugging port"
13	depends on DEBUG_LL
14
15	config DEBUG_LL_UART_8250
16		bool "Low-level debugging via 8250 UART"
17		help
18		  Say Y here if you wish the debug print routes to direct
19		  their output to an 8250 UART.  You can use this option
20		  to provide the parameters for the 8250 UART rather than
21		  selecting one of the platform specific options above if
22		  you know the parameters for the port.
23
24		  This option is preferred over the platform specific
25		  options; the platform specific options are deprecated
26		  and will be soon removed.
27
28endchoice
29
30config DEBUG_LL_INCLUDE
31	string
32	depends on DEBUG_LL
33	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
34	default "mach/debug-macro.S"
35
36# Compatibility options for 8250
37config DEBUG_UART_8250
38	bool
39
40config DEBUG_UART_PHYS
41	hex "Physical base address of debug UART"
42	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
43
44# This is not used in U-Boot
45config DEBUG_UART_VIRT
46	hex
47	default DEBUG_UART_PHYS
48	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
49
50config DEBUG_UART_8250_SHIFT
51	int "Register offset shift for the 8250 debug UART"
52	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
53	default 2
54
55config DEBUG_UART_8250_WORD
56	bool "Use 32-bit accesses for 8250 UART"
57	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
58	depends on DEBUG_UART_8250_SHIFT >= 2
59
60config DEBUG_UART_8250_FLOW_CONTROL
61	bool "Enable flow control for 8250 UART"
62	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
63
64endmenu
65