x1000: tweak USB fifo sizes

The old sizes limited the number of usable endpoints and were
unnecessarily large.

Change-Id: Ia17d3b62ecc40c8ca289d78f2275c7842c09deed
This commit is contained in:
Aidan MacDonald 2021-10-05 22:19:52 +01:00
parent 67d4da5342
commit 4be81c2385

View file

@ -35,10 +35,13 @@
const struct usb_dw_config usb_dw_config = { const struct usb_dw_config usb_dw_config = {
.phytype = DWC_PHYTYPE_UTMI_16, .phytype = DWC_PHYTYPE_UTMI_16,
/* Available FIFO memory: 3576 words */ /* Available FIFO memory: 3576 words
.rx_fifosz = 1024, * Number of endpoints: 9
.nptx_fifosz = 128, /* 1 dedicated FIFO for EP0 */ * Max packet size: 512 bytes
.ptx_fifosz = 768, /* 3 dedicated FIFOs */ */
.rx_fifosz = 816, /* shared RxFIFO */
.nptx_fifosz = 32, /* only used for EP0 IN */
.ptx_fifosz = 384, /* room for 7 IN EPs */
#ifndef USB_DW_ARCH_SLAVE #ifndef USB_DW_ARCH_SLAVE
.ahb_burst_len = HBSTLEN_INCR16, .ahb_burst_len = HBSTLEN_INCR16,