[U-Boot] [PATCH 7/7] usb: rockchip: boost up write speed from 4MB/s to 15MB/s

Alberto Panizzo
2018-07-03T19:02:30Z

Speedup transfers increasing the max chunk size.
Buffers are allocated with memalign thus developer is noticed when heap is
full and in current configuration a buffer allocation of 64K till now
is safe.

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
---
arch/arm/include/asm/arch-rockchip/f_rockusb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/arch-rockchip/f_rockusb.h b/arch/arm/include/asm/arch-rockchip/f_rockusb.h
index 77c3a87..41c6188 100644
--- a/arch/arm/include/asm/arch-rockchip/f_rockusb.h
+++ b/arch/arm/include/asm/arch-rockchip/f_rockusb.h
@@ -19,7 +19,7 @@
#define RX_ENDPOINT_MAXIMUM_PACKET_SIZE_1_1 0x0040
#define TX_ENDPOINT_MAXIMUM_PACKET_SIZE 0x0040

-#define EP_BUFFER_SIZE 4096
+#define EP_BUFFER_SIZE 65536
/*
* EP_BUFFER_SIZE must always be an integral multiple of maxpacket size
* (64 or 512 or 1024), else we break on certain controllers like DWC3
--
2.7.4