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