From 4be81c23858ad59d25041c20159f1ef3970eb757 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 5 Oct 2021 22:19:52 +0100 Subject: x1000: tweak USB fifo sizes The old sizes limited the number of usable endpoints and were unnecessarily large. Change-Id: Ia17d3b62ecc40c8ca289d78f2275c7842c09deed --- firmware/target/mips/ingenic_x1000/usb-x1000.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'firmware/target/mips/ingenic_x1000') 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, -- cgit v1.2.3