lantiq: tweak DWC2 default parameters
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 21 Nov 2015 21:25:20 +0000 (21:25 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 21 Nov 2015 21:25:20 +0000 (21:25 +0000)
commit9e0323d6fc654f7afd7a83d26c77cb6007decbe4
tree5ad42192eccbc6135b4fef646e579bdee3f6f4f4
parentc62b9222be8eb3cc3a1eccc2270208272ec7e219
lantiq: tweak DWC2 default parameters

This patch improves the default configuration of DWC2 on lantiq SoCs
somewhat:
 * Set maximum packet count to largest allowed value by the DWC2 (511)
 * Use 16-bit DMA bursts
 * Divide fifo buffers more evenly

Default fifo buffer sizes from original ltq-hcd driver seem really
irrational. For example according to DWC2 data book rxfifo size of 240
will not fit even a single full length USB packet. On the other hand
non-periodic tx fifo size of 240 is more than enough to fit one complete
packet.

Change the sizes around to improve the situation and to fix some issues
especially with isochronous USB transfers.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47563 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/lantiq/patches-3.18/0041-USB-DWC2-add-ltq-params.patch
target/linux/lantiq/patches-4.1/0041-USB-DWC2-add-ltq-params.patch