drivers: udc_dwc2: Support High-Bandwidth endpoints
Make driver aware of High-Bandwidth endpoints both in Completer and Buffer DMA mode. In Completer mode TxFIFO must be able to hold all packets for microframe, while in Buffer DMA mode space enough for two packets is sufficient. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
This commit is contained in:
parent
07ea4aa155
commit
07bd625196
2 changed files with 117 additions and 43 deletions
|
@ -755,13 +755,17 @@ USB_DWC2_GET_FIELD_DEFINE(dieptsiz0_xfersize, DEPTSIZ0_XFERSIZE)
|
|||
* IN at offsets 0x0910 + (0x20 * n), n = 1 .. x,
|
||||
* OUT at offsets 0x0B10 + (0x20 * n), n = 1 .. x
|
||||
*/
|
||||
#define USB_DWC2_DEPTSIZN_MC_POS 29UL
|
||||
#define USB_DWC2_DEPTSIZN_MC_MASK (0x3UL << USB_DWC2_DEPTSIZN_MC_POS)
|
||||
#define USB_DWC2_DEPTSIZN_PKTCNT_POS 19UL
|
||||
#define USB_DWC2_DEPTSIZN_PKTCNT_MASK (0x3FFUL << USB_DWC2_DEPTSIZN_PKTCNT_POS)
|
||||
#define USB_DWC2_DEPTSIZN_XFERSIZE_POS 0UL
|
||||
#define USB_DWC2_DEPTSIZN_XFERSIZE_MASK 0x7FFFFUL
|
||||
|
||||
USB_DWC2_GET_FIELD_DEFINE(deptsizn_mc, DEPTSIZN_MC)
|
||||
USB_DWC2_GET_FIELD_DEFINE(deptsizn_pktcnt, DEPTSIZN_PKTCNT)
|
||||
USB_DWC2_GET_FIELD_DEFINE(deptsizn_xfersize, DEPTSIZN_XFERSIZE)
|
||||
USB_DWC2_SET_FIELD_DEFINE(deptsizn_mc, DEPTSIZN_MC)
|
||||
USB_DWC2_SET_FIELD_DEFINE(deptsizn_pktcnt, DEPTSIZN_PKTCNT)
|
||||
USB_DWC2_SET_FIELD_DEFINE(deptsizn_xfersize, DEPTSIZN_XFERSIZE)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue