diff options
Diffstat (limited to 'firmware/target/arm/as3525/usb-drv-as3525v2.h')
-rw-r--r-- | firmware/target/arm/as3525/usb-drv-as3525v2.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.h b/firmware/target/arm/as3525/usb-drv-as3525v2.h index 37e8aee1e9..72dd8a0b5a 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525v2.h +++ b/firmware/target/arm/as3525/usb-drv-as3525v2.h | |||
@@ -121,7 +121,11 @@ | |||
121 | 121 | ||
122 | #define USB_GAHBCFG_glblintrmsk (1 << 0) /** Global interrupt mask */ | 122 | #define USB_GAHBCFG_glblintrmsk (1 << 0) /** Global interrupt mask */ |
123 | #define USB_GAHBCFG_hburstlen_bit_pos 1 | 123 | #define USB_GAHBCFG_hburstlen_bit_pos 1 |
124 | #define USB_GAHBCFG_INT_DMA_BURST_SINGLE 0 | ||
124 | #define USB_GAHBCFG_INT_DMA_BURST_INCR 1 /** note: the linux patch has several other value, this is one picked for internal dma */ | 125 | #define USB_GAHBCFG_INT_DMA_BURST_INCR 1 /** note: the linux patch has several other value, this is one picked for internal dma */ |
126 | #define USB_GAHBCFG_INT_DMA_BURST_INCR4 3 | ||
127 | #define USB_GAHBCFG_INT_DMA_BURST_INCR8 5 | ||
128 | #define USB_GAHBCFG_INT_DMA_BURST_INCR16 7 | ||
125 | #define USB_GAHBCFG_dma_enable (1 << 5) /** Enable DMA */ | 129 | #define USB_GAHBCFG_dma_enable (1 << 5) /** Enable DMA */ |
126 | 130 | ||
127 | /* NOTE: USB_GINTSTS bits are the same as in USB_GINTMSK plus the following one */ | 131 | /* NOTE: USB_GINTSTS bits are the same as in USB_GINTMSK plus the following one */ |
@@ -362,6 +366,20 @@ | |||
362 | /** | 366 | /** |
363 | * Parameters | 367 | * Parameters |
364 | */ | 368 | */ |
369 | #define USB_USE_CUSTOM_FIFO_LAYOUT | ||
370 | |||
371 | #ifdef USB_USE_CUSTOM_FIFO_LAYOUT | ||
372 | /* Data fifo: includes RX fifo, non period TX fifo and periodic fifos | ||
373 | * NOTE: this is a hardware parameter, it cannot be changed ! */ | ||
374 | #define USB_DATA_FIFO_DEPTH 0x535 | ||
375 | /* size of the FX fifo */ | ||
376 | #define USB_RX_FIFO_SIZE 0x100 | ||
377 | /* size of the non periodic TX fifo */ | ||
378 | #define USB_NPTX_FIFO_SIZE 0x100 | ||
379 | /* size of each TX ep fifo size */ | ||
380 | #define USB_EPTX_FIFO_SIZE 0x100 | ||
381 | #endif /* USB_USE_CUSTOM_FIFO_LAYOUT */ | ||
382 | |||
365 | /* Number of IN/OUT endpoints */ | 383 | /* Number of IN/OUT endpoints */ |
366 | #define USB_NUM_IN_EP 3 | 384 | #define USB_NUM_IN_EP 3 |
367 | #define USB_NUM_OUT_EP 2 | 385 | #define USB_NUM_OUT_EP 2 |