Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. # Kconfig - USB otg configuration options
  2. #
  3. # Copyright (c) 2020 Actions Corporation.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. config USB_DEVICE_DRIVER
  8. bool
  9. prompt "USB device driver"
  10. select USB_DEVICE_STACK
  11. default n
  12. config SYS_LOG_USB_OTG_DRIVER_LEVEL
  13. int
  14. prompt "USB otg driver log level"
  15. depends on LOG
  16. default 0
  17. help
  18. Sets log level for USB otg driver
  19. Levels are:
  20. - 0 OFF, do not write
  21. - 1 ERROR, only write SYS_LOG_ERR
  22. - 2 WARNING, write SYS_LOG_WRN in addition to previous level
  23. - 3 INFO, write SYS_LOG_INF in addition to previous levels
  24. - 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
  25. config USB_AOTG_OTG
  26. bool
  27. prompt "Actions OTG USB otg Controller Driver"
  28. depends on USB_DEVICE || USB_HOST
  29. default n
  30. help
  31. Actions OTG USB otg Controller Driver.
  32. if USB_AOTG_OTG
  33. config USB_AOTG_OTG_VERSION
  34. hex
  35. prompt "Actions OTG USB otg Controller version"
  36. default 0x551A22CF if SOC_SERIES_LARK
  37. help
  38. Actions OTG USB otg Controller version.
  39. config USB_AOTG_OTG_SUPPORT_HS
  40. bool
  41. prompt "Actions OTG USB otg Controller support high-speed"
  42. default y
  43. help
  44. Actions OTG USB otg Controller support high-speed.
  45. config USB_AOTG_OTG_IRQ_PRIO
  46. int
  47. depends on USB_AOTG_OTG
  48. default 2
  49. help
  50. IRQ priority of USB.
  51. if USB_DEVICE
  52. config USB_AOTG_DC_ENABLED
  53. bool
  54. prompt "Actions OTG USB Device Controller Driver"
  55. select USB_DEVICE_DRIVER
  56. default y
  57. help
  58. Actions OTG USB Device mode.
  59. endif # USB_DEVICE
  60. if USB_HOST
  61. config USB_AOTG_HC_ENABLED
  62. bool
  63. prompt "Actions OTG USB Host Controller Driver"
  64. select USB_HOST_DRIVER
  65. default y
  66. help
  67. Actions OTG USB Host mode.
  68. endif # USB_HOST
  69. config USB_AOTG_DC_FS
  70. bool
  71. prompt "Actions OTG USB Device Controller (full-speed)"
  72. depends on USB_AOTG_OTG_SUPPORT_HS
  73. depends on USB_AOTG_DC_ENABLED
  74. default n
  75. help
  76. Actions OTG USB Device Controller Driver (full-speed).
  77. config USB_AOTG_UDC_DMA
  78. bool
  79. prompt "Actions OTG USB Device Controller Driver DMA Support"
  80. depends on DMA && USB_AOTG_DC_ENABLED
  81. default n
  82. help
  83. Actions OTG USB Device Controller Driver DMA Support.
  84. config USB_AOTG_DC_MULTI_FIFO
  85. bool "Actions OTG USB Device Controller Driver multi-fifo Support"
  86. depends on USB_AOTG_DC_ENABLED
  87. default n
  88. help
  89. Actions OTG USB Device Controller Driver multi-fifo Support, it may
  90. be used in non-DMA controller to optimize performance. It has so many
  91. limits that it will break up read()/read_async()/write() APIs, so be
  92. careful to enable it.
  93. config USB_AOTG_DC_RAM0
  94. bool
  95. prompt "URAM0 used for Actions OTG USB Device Controller Driver"
  96. depends on USB_AOTG_DC_ENABLED
  97. default y
  98. config USB_AOTG_DC_RAM1
  99. bool
  100. prompt "URAM1 used for Actions OTG USB Device Controller Driver"
  101. depends on USB_AOTG_DC_ENABLED
  102. default y
  103. config USB_AOTG_DC_RAM2
  104. bool
  105. prompt "URAM2 used for Actions OTG USB Device Controller Driver"
  106. depends on USB_AOTG_DC_ENABLED
  107. default y
  108. config USB_AOTG_HC_RAM0
  109. bool
  110. prompt "URAM0 used for Actions OTG USB Host Controller Driver"
  111. depends on USB_AOTG_HC_ENABLED
  112. default n
  113. config USB_AOTG_HC_RAM1
  114. bool
  115. prompt "URAM1 used for Actions OTG USB Host Controller Driver"
  116. depends on USB_AOTG_HC_ENABLED
  117. default n
  118. config USB_AOTG_HC_RAM2
  119. bool
  120. prompt "URAM2 used for Actions OTG USB Host Controller Driver"
  121. depends on USB_AOTG_HC_ENABLED
  122. default y
  123. endif # USB_AOTG_OTG