Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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, AW, ...)'
  8. depends on (USB || USB_GADGET)
  9. depends on HAS_IOMEM
  10. help
  11. Say Y here if your system has a dual role high speed USB
  12. controller based on the Mentor Graphics silicon IP. Then
  13. configure options to match your silicon and the board
  14. it's being used with, including the USB peripheral role,
  15. or the USB host role, or both.
  16. Texas Instruments families using this IP include DaVinci
  17. (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
  18. Analog Devices parts using this IP include Blackfin BF54x,
  19. BF525 and BF527.
  20. Allwinner SoCs using this IP include A10, A13, A20, ...
  21. If you do not know what this is, please say N.
  22. To compile this driver as a module, choose M here; the
  23. module will be called "musb-hdrc".
  24. if USB_MUSB_HDRC
  25. choice
  26. bool "MUSB Mode Selection"
  27. default USB_MUSB_DUAL_ROLE if (USB && USB_GADGET)
  28. default USB_MUSB_HOST if (USB && !USB_GADGET)
  29. default USB_MUSB_GADGET if (!USB && USB_GADGET)
  30. config USB_MUSB_HOST
  31. bool "Host only mode"
  32. depends on USB=y || USB=USB_MUSB_HDRC
  33. help
  34. Select this when you want to use MUSB in host mode only,
  35. thereby the gadget feature will be regressed.
  36. config USB_MUSB_GADGET
  37. bool "Gadget only mode"
  38. depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC
  39. depends on HAS_DMA
  40. help
  41. Select this when you want to use MUSB in gadget mode only,
  42. thereby the host feature will be regressed.
  43. config USB_MUSB_DUAL_ROLE
  44. bool "Dual Role mode"
  45. depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC))
  46. depends on HAS_DMA
  47. help
  48. This is the default mode of working of MUSB controller where
  49. both host and gadget features are enabled.
  50. endchoice
  51. comment "Platform Glue Layer"
  52. config USB_MUSB_SUNXI
  53. tristate "Allwinner (sunxi)"
  54. depends on ARCH_SUNXI
  55. depends on NOP_USB_XCEIV
  56. depends on PHY_SUN4I_USB
  57. depends on EXTCON
  58. depends on GENERIC_PHY
  59. select SUNXI_SRAM
  60. config USB_MUSB_DAVINCI
  61. tristate "DaVinci"
  62. depends on ARCH_DAVINCI_DMx
  63. depends on NOP_USB_XCEIV
  64. depends on BROKEN
  65. config USB_MUSB_DA8XX
  66. tristate "DA8xx/OMAP-L1x"
  67. depends on ARCH_DAVINCI_DA8XX
  68. depends on NOP_USB_XCEIV
  69. select PHY_DA8XX_USB
  70. config USB_MUSB_TUSB6010
  71. tristate "TUSB6010"
  72. depends on HAS_IOMEM
  73. depends on (ARCH_OMAP2PLUS || COMPILE_TEST) && !BLACKFIN
  74. depends on NOP_USB_XCEIV = USB_MUSB_HDRC # both built-in or both modules
  75. config USB_MUSB_OMAP2PLUS
  76. tristate "OMAP2430 and onwards"
  77. depends on ARCH_OMAP2PLUS && USB
  78. depends on OMAP_CONTROL_PHY || !OMAP_CONTROL_PHY
  79. select GENERIC_PHY
  80. config USB_MUSB_AM35X
  81. tristate "AM35x"
  82. depends on ARCH_OMAP
  83. depends on NOP_USB_XCEIV
  84. config USB_MUSB_DSPS
  85. tristate "TI DSPS platforms"
  86. select USB_MUSB_AM335X_CHILD
  87. depends on ARCH_OMAP2PLUS || COMPILE_TEST
  88. depends on OF_IRQ
  89. config USB_MUSB_BLACKFIN
  90. tristate "Blackfin"
  91. depends on (BF54x && !BF544) || (BF52x && ! BF522 && !BF523)
  92. depends on NOP_USB_XCEIV
  93. config USB_MUSB_UX500
  94. tristate "Ux500 platforms"
  95. depends on ARCH_U8500 || COMPILE_TEST
  96. config USB_MUSB_JZ4740
  97. tristate "JZ4740"
  98. depends on NOP_USB_XCEIV
  99. depends on MACH_JZ4740 || COMPILE_TEST
  100. depends on USB_MUSB_GADGET
  101. depends on USB_OTG_BLACKLIST_HUB
  102. config USB_MUSB_AM335X_CHILD
  103. tristate
  104. comment "MUSB DMA mode"
  105. config MUSB_PIO_ONLY
  106. bool 'Disable DMA (always use PIO)'
  107. help
  108. All data is copied between memory and FIFO by the CPU.
  109. DMA controllers are ignored.
  110. Do not choose this unless DMA support for your SOC or board
  111. is unavailable (or unstable). When DMA is enabled at compile time,
  112. you can still disable it at run time using the "use_dma=n" module
  113. parameter.
  114. if !MUSB_PIO_ONLY
  115. config USB_UX500_DMA
  116. bool 'ST Ericsson Ux500'
  117. depends on USB_MUSB_UX500
  118. help
  119. Enable DMA transfers on UX500 platforms.
  120. config USB_INVENTRA_DMA
  121. bool 'Inventra'
  122. depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
  123. help
  124. Enable DMA transfers using Mentor's engine.
  125. config USB_TI_CPPI_DMA
  126. bool 'TI CPPI (Davinci)'
  127. depends on USB_MUSB_DAVINCI
  128. help
  129. Enable DMA transfers when TI CPPI DMA is available.
  130. config USB_TI_CPPI41_DMA
  131. bool 'TI CPPI 4.1 (AM335x)'
  132. depends on ARCH_OMAP && DMADEVICES
  133. select TI_CPPI41
  134. config USB_TUSB_OMAP_DMA
  135. bool 'TUSB 6010'
  136. depends on USB_MUSB_TUSB6010 = USB_MUSB_HDRC # both built-in or both modules
  137. depends on ARCH_OMAP
  138. help
  139. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
  140. endif # !MUSB_PIO_ONLY
  141. endif # USB_MUSB_HDRC