OpenCloudOS-Kernel/drivers/usb/dwc2
Amelie Delaunay ca02954ada usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value
USBTrdTim must be programmed to 0x5 when phy has a UTMI+ 16-bit wide
interface or 0x9 when it has a 8-bit wide interface.
GUSBCFG reset value (Value After Reset: 0x1400) sets USBTrdTim to 0x5.
In case of 8-bit UTMI+, without clearing GUSBCFG.USBTRDTIM mask, USBTrdTim
results in 0xD (0x5 | 0x9).
That's why we need to clear GUSBCFG.USBTRDTIM mask before setting USBTrdTim
value, to ensure USBTrdTim is correctly set in case of 8-bit UTMI+.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-01-16 11:11:17 +02:00
..
Kconfig USB: dwc2-usb: add USB_GADGET dependency 2016-06-29 11:11:41 +03:00
Makefile usb: dwc2: Add params.c file 2016-11-18 13:54:10 +02:00
core.c usb: dwc2: Declare the core params struct statically 2016-11-18 13:54:11 +02:00
core.h usb: dwc2: use u32 for DT binding parameters 2017-01-12 10:02:20 +02:00
core_intr.c usb: dwc2: Declare the core params struct statically 2016-11-18 13:54:11 +02:00
debug.h usb: dwc2: move debugfs code to a separate file 2015-04-29 15:18:25 -05:00
debugfs.c usb: dwc2: Fix fifo_show() functionality 2016-11-18 13:54:53 +02:00
gadget.c usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value 2017-01-16 11:11:17 +02:00
hcd.c usb: dwc2: Avoid suspending if we're in gadget mode 2017-01-12 10:02:48 +02:00
hcd.h usb: dwc2: Move functions from header to source 2016-11-18 13:54:54 +02:00
hcd_ddma.c usb: dwc2: host: Rename MAX_DMA_DESC_SIZE to HOST_DMA_NBYTES_LIMIT 2016-11-18 13:54:19 +02:00
hcd_intr.c usb: dwc2: Stop Complete Splits after Data PID == 0 2016-11-18 13:54:52 +02:00
hcd_queue.c usb: dwc2: Fix coverity issue in hcd_queue.c 2016-11-18 13:54:17 +02:00
hw.h usb: dwc2: gadget: Enable the BNA interrupt 2016-11-18 13:54:47 +02:00
params.c usb: dwc2: use u32 for DT binding parameters 2017-01-12 10:02:20 +02:00
pci.c usb: dwc2: Deprecate g-use-dma binding 2016-11-18 13:54:17 +02:00
platform.c usb: dwc2: Remove dwc2_set_all_params function 2016-11-18 13:54:11 +02:00