linux/drivers/usb/dwc2
Dinh Nguyen 112fe8e290 usb: dwc2: Add function to calculate correct FIFO sizes
The dwc2 IP on the SOCFPGA cannot use the default HW configured
FIFO sizes. The total FIFO depth as read from GHWCFG3 reports 0x1f80 or 8064
32-bit words. But the GRXFSIZ, GNPTXFSIZ, and HPTXFSIZ register defaults
to 0x2000 or 8192 32-bit words. So the driver cannot just use the fifo sizes
as read from those registers.

For platforms that face the same issue, this commits sets the RX, periodic TX,
and non-periodic TX fifo size to those that are recommended v2.93a spec for
the DWC2 IP. Implements Method #2 from the Synopsys v2.93a spec for the DWC2.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-27 15:42:42 -07:00
..
core_intr.c
core.c usb: dwc2: Add function to calculate correct FIFO sizes 2014-05-27 15:42:42 -07:00
core.h usb: dwc2: move s3c-hsotg data structures 2014-04-24 13:12:43 -07:00
gadget.c usb: dwc2: Remove '0x' notation when using %pad format 2014-05-27 15:26:29 -07:00
hcd_ddma.c
hcd_intr.c usb: dwc2: fix dereference before NULL check 2014-02-15 12:26:14 -08:00
hcd_queue.c
hcd.c
hcd.h
hw.h usb: dwc2: add defines to support s3c-hsotg driver 2014-04-24 13:12:43 -07:00
Kconfig usb: dwc2/s3c-hsotg: move s3c-hsotg into dwc2 directory 2014-04-24 13:12:43 -07:00
Makefile usb: dwc2/s3c-hsotg: move s3c-hsotg into dwc2 directory 2014-04-24 13:12:43 -07:00
pci.c
platform.c usb: dwc2: Disable descriptor dma mode by default 2014-05-27 15:42:41 -07:00