Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # RDA assumes no responsibility or liability for the use of the software,
  6. # conveys no license or title under any patent, copyright, or mask work
  7. # right to the product. RDA reserves the right to make changes in the
  8. # software without notification. RDA also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. menu "Diag"
  12. config DIAG_ENABLED
  13. bool "Enable diag"
  14. default y
  15. if DIAG_ENABLED
  16. config DIAG_INBUF_SIZE
  17. hex "Diag input buffer size"
  18. default 0x100 if SOC_8811
  19. default 0x10040
  20. help
  21. To reduce dynamic memory allocation in diag processing, an input
  22. buffer will be allocated at diag engine creation. When the input
  23. packet is smaller than this size, the pre-allocated input buffer
  24. will be used. When input packer is larger than this, memory will
  25. be dynamic allocated.
  26. config DIAG_DEVICE_USRL_SUPPORT
  27. bool "usb diag device support"
  28. default y if (SOC_8910) || ((SOC_8850) && (USB_DEVICE_SUPPORT))
  29. default n if (!USB_DEVICE_SUPPORT)
  30. if DIAG_DEVICE_USRL_SUPPORT
  31. choice
  32. prompt "Default Userial"
  33. default DIAG_DEFAULT_USRL_COM1
  34. config DIAG_DEFAULT_USRL_COM0
  35. bool "USRL0"
  36. config DIAG_DEFAULT_USRL_COM1
  37. bool "USRL1"
  38. config DIAG_DEFAULT_USRL_COM2
  39. bool "USRL2"
  40. config DIAG_DEFAULT_USRL_COM3
  41. bool "USRL3"
  42. config DIAG_DEFAULT_ACM4
  43. bool "ACM4"
  44. endchoice
  45. config DIAG_DEFAULT_USERIAL
  46. string
  47. default "DRV_NAME_USRL_COM0" if DIAG_DEFAULT_USRL_COM0
  48. default "DRV_NAME_USRL_COM1" if DIAG_DEFAULT_USRL_COM1
  49. default "DRV_NAME_USRL_COM2" if DIAG_DEFAULT_USRL_COM2
  50. default "DRV_NAME_USRL_COM3" if DIAG_DEFAULT_USRL_COM3
  51. default "DRV_NAME_ACM4" if DIAG_DEFAULT_ACM4
  52. default ""
  53. endif
  54. choice
  55. prompt "Default UART"
  56. default DIAG_DEFAULT_UART2 if SOC_8910
  57. default DIAG_DEFAULT_UART3 if SOC_8811
  58. default DIAG_DEFAULT_UART4 if SOC_8850
  59. config DIAG_DEFAULT_UART1
  60. bool "UART1"
  61. config DIAG_DEFAULT_UART2
  62. bool "UART2"
  63. config DIAG_DEFAULT_UART3
  64. bool "UART3"
  65. config DIAG_DEFAULT_UART4
  66. bool "UART4"
  67. config DIAG_DEFAULT_UART5
  68. bool "UART5"
  69. config DIAG_DEFAULT_UART6
  70. bool "UART6"
  71. endchoice
  72. config DIAG_DEFAULT_UART
  73. string
  74. default "DRV_NAME_UART1" if DIAG_DEFAULT_UART1
  75. default "DRV_NAME_UART2" if DIAG_DEFAULT_UART2
  76. default "DRV_NAME_UART3" if DIAG_DEFAULT_UART3
  77. default "DRV_NAME_UART4" if DIAG_DEFAULT_UART4
  78. default "DRV_NAME_UART5" if DIAG_DEFAULT_UART5
  79. default "DRV_NAME_UART6" if DIAG_DEFAULT_UART6
  80. default ""
  81. config DIAG_DEFAULT_UART_BAUD
  82. int "Baud rate of default UART"
  83. default 921600 if SOC_8910
  84. default 2000000 if SOC_8811
  85. default 2000000 if SOC_8850
  86. config DIAG_DEBUG_SUPPORT
  87. bool "Support Diag Port Debug"
  88. default y
  89. config DIAG_ENC_BUF_STATIC
  90. bool "Support Diag enc-data static buffer"
  91. default y if (SOC_8910) || (SOC_8850)
  92. depends on DIAG_DEBUG_SUPPORT
  93. help
  94. Diag support enc data used static buffer, when enabled.
  95. Solve the issue of not being able to download bluescreen when OOM.
  96. config DIAG_BT_AUTOTEST_SUPPORT
  97. bool "Support Diag BT Autotest"
  98. default n
  99. select BLUEU_BT_ENABLE
  100. endif
  101. endmenu