diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-10-05 22:19:52 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-10-06 22:40:52 +0100 |
commit | 4be81c23858ad59d25041c20159f1ef3970eb757 (patch) | |
tree | 1f85ce5fe200f92c4c17482418f8b7eabbf8096a /firmware/target/mips/ingenic_x1000/usb-x1000.c | |
parent | 67d4da5342d9ac654d9c5f4f0f3c35856a3b4a57 (diff) | |
download | rockbox-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/ingenic_x1000/usb-x1000.c')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/usb-x1000.c | 11 |
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 @@ | |||
35 | const struct usb_dw_config usb_dw_config = { | 35 | const struct usb_dw_config usb_dw_config = { |
36 | .phytype = DWC_PHYTYPE_UTMI_16, | 36 | .phytype = DWC_PHYTYPE_UTMI_16, |
37 | 37 | ||
38 | /* Available FIFO memory: 3576 words */ | 38 | /* Available FIFO memory: 3576 words |
39 | .rx_fifosz = 1024, | 39 | * Number of endpoints: 9 |
40 | .nptx_fifosz = 128, /* 1 dedicated FIFO for EP0 */ | 40 | * Max packet size: 512 bytes |
41 | .ptx_fifosz = 768, /* 3 dedicated FIFOs */ | 41 | */ |
42 | .rx_fifosz = 816, /* shared RxFIFO */ | ||
43 | .nptx_fifosz = 32, /* only used for EP0 IN */ | ||
44 | .ptx_fifosz = 384, /* room for 7 IN EPs */ | ||
42 | 45 | ||
43 | #ifndef USB_DW_ARCH_SLAVE | 46 | #ifndef USB_DW_ARCH_SLAVE |
44 | .ahb_burst_len = HBSTLEN_INCR16, | 47 | .ahb_burst_len = HBSTLEN_INCR16, |