|
206 | 206 | #define CONFIG_USBDEV_MAX_BUS 1 // for now, bus num must be 1 except hpm ip
|
207 | 207 | #endif
|
208 | 208 |
|
209 |
| -#ifndef CONFIG_USBDEV_EP_NUM |
210 |
| -#define CONFIG_USBDEV_EP_NUM 16 |
211 |
| -#endif |
212 |
| - |
213 | 209 | /* When your chip hardware supports high-speed and wants to initialize it in high-speed mode, the relevant IP will configure the internal or external high-speed PHY according to CONFIG_USB_HS. */
|
214 | 210 | // #define CONFIG_USB_HS
|
215 | 211 |
|
216 | 212 | /* ---------------- FSDEV Configuration ---------------- */
|
217 | 213 | //#define CONFIG_USBDEV_FSDEV_PMA_ACCESS 2 // maybe 1 or 2, many chips may have a difference
|
218 | 214 |
|
219 | 215 | /* ---------------- DWC2 Configuration ---------------- */
|
220 |
| -/* (5 * number of control endpoints + 8) + ((largest USB packet used / 4) + 1 for |
221 |
| - * status information) + (2 * number of OUT endpoints) + 1 for Global NAK |
222 |
| - */ |
223 |
| -// #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4) |
224 |
| -/* IN Endpoints Max packet Size / 4 */ |
225 |
| -// #define CONFIG_USB_DWC2_TX0_FIFO_SIZE (64 / 4) |
226 |
| -// #define CONFIG_USB_DWC2_TX1_FIFO_SIZE (1024 / 4) |
227 |
| -// #define CONFIG_USB_DWC2_TX2_FIFO_SIZE (64 / 4) |
228 |
| -// #define CONFIG_USB_DWC2_TX3_FIFO_SIZE (64 / 4) |
229 |
| -// #define CONFIG_USB_DWC2_TX4_FIFO_SIZE (0 / 4) |
230 |
| -// #define CONFIG_USB_DWC2_TX5_FIFO_SIZE (0 / 4) |
231 |
| -// #define CONFIG_USB_DWC2_TX6_FIFO_SIZE (0 / 4) |
232 |
| -// #define CONFIG_USB_DWC2_TX7_FIFO_SIZE (0 / 4) |
233 |
| -// #define CONFIG_USB_DWC2_TX8_FIFO_SIZE (0 / 4) |
234 |
| - |
235 | 216 | // #define CONFIG_USB_DWC2_DMA_ENABLE
|
236 | 217 |
|
237 | 218 | /* ---------------- MUSB Configuration ---------------- */
|
|
242 | 223 | #define CONFIG_USBHOST_MAX_BUS 1
|
243 | 224 | #endif
|
244 | 225 |
|
245 |
| -#ifndef CONFIG_USBHOST_PIPE_NUM |
246 |
| -#define CONFIG_USBHOST_PIPE_NUM 15 |
247 |
| -#endif |
248 |
| - |
249 | 226 | /* ---------------- EHCI Configuration ---------------- */
|
250 | 227 |
|
251 | 228 | #define CONFIG_USB_EHCI_HCCR_OFFSET (0x0)
|
|
265 | 242 | #define CONFIG_USB_XHCI_HCCR_OFFSET (0x0)
|
266 | 243 |
|
267 | 244 | /* ---------------- DWC2 Configuration ---------------- */
|
268 |
| -/* largest non-periodic USB packet used / 4 */ |
269 |
| -// #define CONFIG_USB_DWC2_NPTX_FIFO_SIZE (512 / 4) |
270 |
| -/* largest periodic USB packet used / 4 */ |
271 |
| -// #define CONFIG_USB_DWC2_PTX_FIFO_SIZE (1024 / 4) |
272 |
| -/* |
273 |
| - * (largest USB packet used / 4) + 1 for status information + 1 transfer complete + |
274 |
| - * 1 location each for Bulk/Control endpoint for handling NAK/NYET scenario |
275 |
| - */ |
276 |
| -// #define CONFIG_USB_DWC2_RX_FIFO_SIZE ((1012 - CONFIG_USB_DWC2_NPTX_FIFO_SIZE - CONFIG_USB_DWC2_PTX_FIFO_SIZE)) |
277 | 245 |
|
278 | 246 | /* ---------------- MUSB Configuration ---------------- */
|
279 | 247 | // #define CONFIG_USB_MUSB_SUNXI
|
280 | 248 |
|
281 | 249 | /* ================ USB Dcache Configuration ==================*/
|
282 | 250 |
|
283 |
| -#ifdef CONFIG_USB_DCACHE_ENABLE |
284 |
| -/* style 1*/ |
285 |
| -// void usb_dcache_clean(uintptr_t addr, uint32_t size); |
286 |
| -// void usb_dcache_invalidate(uintptr_t addr, uint32_t size); |
287 |
| -// void usb_dcache_flush(uintptr_t addr, uint32_t size); |
288 |
| - |
289 |
| -/* style 2*/ |
290 |
| -// #define usb_dcache_clean(addr, size) |
291 |
| -// #define usb_dcache_invalidate(addr, size) |
292 |
| -// #define usb_dcache_flush(addr, size) |
293 |
| -#endif |
294 |
| - |
295 | 251 | #define CONFIG_USBDEV_ADVANCE_DESC
|
296 | 252 | #endif
|
0 commit comments