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