Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #
  2. # USB Dual Role (OTG-ready) Controller Drivers
  3. # for silicon based on Mentor Graphics INVENTRA designs
  4. #
  5. # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
  6. config USB_MUSB_HDRC
  7. tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
  8. depends on USB_GADGET
  9. help
  10. Say Y here if your system has a dual role high speed USB
  11. controller based on the Mentor Graphics silicon IP. Then
  12. configure options to match your silicon and the board
  13. it's being used with, including the USB peripheral role,
  14. or the USB host role, or both.
  15. Texas Instruments families using this IP include DaVinci
  16. (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
  17. Analog Devices parts using this IP include Blackfin BF54x,
  18. BF525 and BF527.
  19. If you do not know what this is, please say N.
  20. To compile this driver as a module, choose M here; the
  21. module will be called "musb-hdrc".
  22. if USB_MUSB_HDRC
  23. choice
  24. bool "MUSB Mode Selection"
  25. default USB_MUSB_DUAL_ROLE if (USB && USB_GADGET)
  26. default USB_MUSB_HOST if (USB && !USB_GADGET)
  27. default USB_MUSB_GADGET if (!USB && USB_GADGET)
  28. config USB_MUSB_HOST
  29. bool "Host only mode"
  30. depends on USB
  31. help
  32. Select this when you want to use MUSB in host mode only,
  33. thereby the gadget feature will be regressed.
  34. config USB_MUSB_GADGET
  35. bool "Gadget only mode"
  36. depends on USB_GADGET
  37. help
  38. Select this when you want to use MUSB in gadget mode only,
  39. thereby the host feature will be regressed.
  40. config USB_MUSB_DUAL_ROLE
  41. bool "Dual Role mode"
  42. depends on (USB && USB_GADGET)
  43. help
  44. This is the default mode of working of MUSB controller where
  45. both host and gadget features are enabled.
  46. endchoice
  47. choice
  48. prompt "Platform Glue Layer"
  49. config USB_MUSB_DAVINCI
  50. tristate "DaVinci"
  51. depends on ARCH_DAVINCI_DMx
  52. depends on BROKEN
  53. config USB_MUSB_DA8XX
  54. tristate "DA8xx/OMAP-L1x"
  55. depends on ARCH_DAVINCI_DA8XX
  56. depends on BROKEN
  57. config USB_MUSB_TUSB6010
  58. tristate "TUSB6010"
  59. config USB_MUSB_OMAP2PLUS
  60. tristate "OMAP2430 and onwards"
  61. depends on ARCH_OMAP2PLUS
  62. config USB_MUSB_AM35X
  63. tristate "AM35x"
  64. depends on ARCH_OMAP
  65. config USB_MUSB_DSPS
  66. tristate "TI DSPS platforms"
  67. select USB_MUSB_AM335X_CHILD
  68. depends on OF_IRQ
  69. config USB_MUSB_BLACKFIN
  70. tristate "Blackfin"
  71. depends on (BF54x && !BF544) || (BF52x && ! BF522 && !BF523)
  72. config USB_MUSB_UX500
  73. tristate "U8500 and U5500"
  74. endchoice
  75. config USB_MUSB_AM335X_CHILD
  76. tristate
  77. choice
  78. prompt 'MUSB DMA mode'
  79. default MUSB_PIO_ONLY if ARCH_MULTIPLATFORM
  80. default USB_UX500_DMA if USB_MUSB_UX500
  81. default USB_INVENTRA_DMA if USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
  82. default USB_TI_CPPI_DMA if USB_MUSB_DAVINCI
  83. default USB_TUSB_OMAP_DMA if USB_MUSB_TUSB6010
  84. default MUSB_PIO_ONLY if USB_MUSB_TUSB6010 || USB_MUSB_DA8XX || USB_MUSB_AM35X \
  85. || USB_MUSB_DSPS
  86. help
  87. Unfortunately, only one option can be enabled here. Ideally one
  88. should be able to build all these drivers into one kernel to
  89. allow using DMA on multiplatform kernels.
  90. config USB_UX500_DMA
  91. bool 'ST Ericsson U8500 and U5500'
  92. depends on USB_MUSB_UX500
  93. help
  94. Enable DMA transfers on UX500 platforms.
  95. config USB_INVENTRA_DMA
  96. bool 'Inventra'
  97. depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
  98. help
  99. Enable DMA transfers using Mentor's engine.
  100. config USB_TI_CPPI_DMA
  101. bool 'TI CPPI (Davinci)'
  102. depends on USB_MUSB_DAVINCI
  103. help
  104. Enable DMA transfers when TI CPPI DMA is available.
  105. config USB_TI_CPPI41_DMA
  106. bool 'TI CPPI 4.1 (AM335x)'
  107. depends on ARCH_OMAP
  108. config USB_TUSB_OMAP_DMA
  109. bool 'TUSB 6010'
  110. depends on USB_MUSB_TUSB6010
  111. depends on ARCH_OMAP
  112. help
  113. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
  114. config MUSB_PIO_ONLY
  115. bool 'Disable DMA (always use PIO)'
  116. help
  117. All data is copied between memory and FIFO by the CPU.
  118. DMA controllers are ignored.
  119. Do not choose this unless DMA support for your SOC or board
  120. is unavailable (or unstable). When DMA is enabled at compile time,
  121. you can still disable it at run time using the "use_dma=n" module
  122. parameter.
  123. endchoice
  124. endif # USB_MUSB_HDRC