summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-10-05 22:19:52 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-10-06 22:40:52 +0100
commit4be81c23858ad59d25041c20159f1ef3970eb757 (patch)
tree1f85ce5fe200f92c4c17482418f8b7eabbf8096a /firmware/target/mips
parent67d4da5342d9ac654d9c5f4f0f3c35856a3b4a57 (diff)
downloadrockbox-4be81c23858ad59d25041c20159f1ef3970eb757.tar.gz
rockbox-4be81c23858ad59d25041c20159f1ef3970eb757.zip
x1000: tweak USB fifo sizes
The old sizes limited the number of usable endpoints and were unnecessarily large. Change-Id: Ia17d3b62ecc40c8ca289d78f2275c7842c09deed
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_x1000/usb-x1000.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/target/mips/ingenic_x1000/usb-x1000.c b/firmware/target/mips/ingenic_x1000/usb-x1000.c
index 1a31d8db2e..398528c6c4 100644
--- a/firmware/target/mips/ingenic_x1000/usb-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/usb-x1000.c
@@ -35,10 +35,13 @@
const struct usb_dw_config usb_dw_config = {
.phytype = DWC_PHYTYPE_UTMI_16,
- /* Available FIFO memory: 3576 words */
- .rx_fifosz = 1024,
- .nptx_fifosz = 128, /* 1 dedicated FIFO for EP0 */
- .ptx_fifosz = 768, /* 3 dedicated FIFOs */
+ /* Available FIFO memory: 3576 words
+ * Number of endpoints: 9
+ * Max packet size: 512 bytes
+ */
+ .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
.ahb_burst_len = HBSTLEN_INCR16,