Kconfig.debug 1.7 KB

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