1 #
2 # USB Dual Role (OTG-ready) Controller Drivers
3 # for silicon based on Mentor Graphics INVENTRA designs
4 #
6 # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
7 config USB_MUSB_HDRC
8 tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
9 depends on USB && USB_GADGET
10 select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN)
11 select NOP_USB_XCEIV if (SOC_OMAPTI81XX || SOC_OMAPAM33XX)
12 select TWL4030_USB if MACH_OMAP_3430SDP
13 select TWL6030_USB if MACH_OMAP_4430SDP || MACH_OMAP4_PANDA
14 select USB_OTG_UTILS
15 select USB_GADGET_DUALSPEED
16 help
17 Say Y here if your system has a dual role high speed USB
18 controller based on the Mentor Graphics silicon IP. Then
19 configure options to match your silicon and the board
20 it's being used with, including the USB peripheral role,
21 or the USB host role, or both.
23 Texas Instruments familiies using this IP include DaVinci
24 (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
26 Analog Devices parts using this IP include Blackfin BF54x,
27 BF525 and BF527.
29 If you do not know what this is, please say N.
31 To compile this driver as a module, choose M here; the
32 module will be called "musb-hdrc".
34 if USB_MUSB_HDRC
36 comment "Platform Glue Layer"
38 config USB_MUSB_DAVINCI_GLUE
39 select USB_MUSB_DAVINCI
40 tristate "DaVinci"
41 depends on ARCH_DAVINCI_DMx && USB_MUSB_HDRC
43 config USB_MUSB_DA8XX_GLUE
44 select USB_MUSB_DA8XX
45 tristate "DA8xx/OMAP-L1x"
46 depends on ARCH_DAVINCI_DA8XX && USB_MUSB_HDRC
48 config USB_MUSB_TUSB6010_GLUE
49 select USB_MUSB_TUSB6010
50 tristate "TUSB6010"
51 depends on ARCH_OMAP && USB_MUSB_HDRC
53 config USB_MUSB_OMAP2PLUS_GLUE
54 select USB_MUSB_OMAP2PLUS
55 tristate "OMAP2430 and onwards"
56 depends on ARCH_OMAP2PLUS && USB_MUSB_HDRC
58 config USB_MUSB_AM35X_GLUE
59 select USB_MUSB_AM35X
60 tristate "AM35x"
61 depends on ARCH_OMAP && USB_MUSB_HDRC
63 config USB_MUSB_TI81XX_GLUE
64 select USB_MUSB_TI81XX
65 tristate "TI81XX onward"
66 depends on (SOC_OMAPTI81XX || SOC_OMAPAM33XX) && USB_MUSB_HDRC
68 config USB_MUSB_BLACKFIN_GLUE
69 select USB_MUSB_BLACKFIN
70 tristate "Blackfin"
71 depends on (BF54x && !BF544) || (BF52x && ! BF522 && !BF523) && USB_MUSB_HDRC
73 config USB_MUSB_UX500_GLUE
74 select USB_MUSB_UX500
75 tristate "U8500 and U5500"
76 depends on (ARCH_U8500 && AB8500_USB) && USB_MUSB_HDRC
78 config USB_MUSB_DAVINCI
79 bool
80 default n
81 config USB_MUSB_DA8XX
82 bool
83 default n
84 config USB_MUSB_TUSB6010
85 bool
86 default n
87 config USB_MUSB_OMAP2PLUS
88 bool
89 default n
90 config USB_MUSB_AM35X
91 bool
92 default n
93 config USB_MUSB_TI81XX
94 bool
95 default n
96 config USB_MUSB_BLACKFIN
97 bool
98 default n
99 config USB_MUSB_UX500
100 bool
101 default n
103 choice
104 prompt 'MUSB DMA mode'
105 depends on !MUSB_PIO_ONLY
106 default USB_UX500_DMA_HW if USB_MUSB_UX500
107 default USB_INVENTRA_DMA_HW if USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
108 default USB_TI_CPPI_DMA_HW if USB_MUSB_DAVINCI
109 default USB_TUSB_OMAP_DMA_HW if USB_MUSB_TUSB6010
110 default USB_TI_CPPI41_DMA_HW if USB_MUSB_DA8XX || USB_MUSB_AM35X || USB_MUSB_TI81XX
111 help
112 Unfortunately, only one option can be enabled here. Ideally one
113 should be able to build all these drivers into one kernel to
114 allow using DMA on multiplatform kernels.
116 config USB_UX500_DMA_HW
117 tristate 'ST Ericsson U8500 and U5500'
118 select USB_UX500_DMA
119 depends on USB_MUSB_UX500
120 help
121 Enable DMA transfers on UX500 platforms.
123 config USB_INVENTRA_DMA_HW
124 tristate 'Inventra'
125 select USB_INVENTRA_DMA
126 depends on (USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN) && !USB_MUSB_AM35X
127 help
128 Enable DMA transfers using Mentor's engine.
130 config USB_TI_CPPI_DMA_HW
131 tristate 'TI CPPI (Davinci)'
132 select USB_TI_CPPI_DMA
133 depends on USB_MUSB_DAVINCI
134 help
135 Enable DMA transfers when TI CPPI DMA is available.
137 config USB_TI_CPPI41_DMA_HW
138 tristate 'TI CPPI4.1'
139 select USB_TI_CPPI41_DMA
140 depends on USB_MUSB_DA8XX || USB_MUSB_AM35X || USB_MUSB_TI81XX
141 select CPPI41
142 help
143 Configure this option to include the CPPI 4.1 support,
144 The CPPI 4.1 DMA engine integrated with musb controller
145 accelarate the usb packet transmission and receception
146 to/from musb endpoints.
148 config USB_TUSB_OMAP_DMA_HW
149 tristate 'TUSB 6010'
150 select USB_TUSB_OMAP_DMA
151 depends on USB_MUSB_TUSB6010
152 depends on ARCH_OMAP
153 help
154 Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
156 endchoice
158 config MUSB_PIO_ONLY
159 bool 'Disable DMA (always use PIO)'
160 default USB_MUSB_TUSB6010 || USB_MUSB_DA8XX
161 help
162 All data is copied between memory and FIFO by the CPU.
163 DMA controllers are ignored.
165 Select 'y' here if DMA support for your SOC or board
166 is unavailable (or unstable). On CPPI 4.1 DMA based
167 systems (AM335x, AM35x, and AM180x) DMA support is
168 considered unstable and this option should be enabled
169 in production systems so that DMA is disabled, unless DMA
170 has been validated for all use cases. When DMA is enabled at
171 compile time, you can still disable it at run time using the
172 "use_dma=n" module parameter.
174 config USB_INVENTRA_DMA
175 bool
176 default n
178 config USB_TI_CPPI_DMA
179 bool
180 default n
182 config USB_TI_CPPI41_DMA
183 bool
184 default n
186 config USB_TUSB_OMAP_DMA
187 bool
188 default n
190 config USB_UX500_DMA
191 bool
192 default n
194 endif # USB_MUSB_HDRC