summaryrefslogtreecommitdiff
path: root/drivers/usb/host/dwc2.h
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2016-01-17 04:09:56 +0100
committerMarek Vasut <marex@denx.de>2016-01-23 16:21:11 +0100
commitd2ff51b372a6800fcf1394fc2ca9821d86b15335 (patch)
treed7524ea5df1b698bb0f548c00a88437c18780e73 /drivers/usb/host/dwc2.h
parentb54e44705258c0443310ed12b8982707d7992fa8 (diff)
downloadu-boot-imx-d2ff51b372a6800fcf1394fc2ca9821d86b15335.zip
u-boot-imx-d2ff51b372a6800fcf1394fc2ca9821d86b15335.tar.gz
u-boot-imx-d2ff51b372a6800fcf1394fc2ca9821d86b15335.tar.bz2
usb: dwc2: Add SPLIT INTERRUPT transaction support
CSPLITs for INTERRUPT transactions have to be scheduled in each microframe following the SSPLIT. INTERRUPT transfers are executed in the next even/ odd microframe depending on the HCCHAR_ODDFRM flag. As there are no handshakes for INTERRUPT SSPLITs the SSPLIT may have failed (transport error) without the error being detected by the host driver. If the last CSPLIT is not received within 4 microframes after the SSPLIT there was a transaction error and the complete transaction has to be restarted. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Diffstat (limited to 'drivers/usb/host/dwc2.h')
-rw-r--r--drivers/usb/host/dwc2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/dwc2.h b/drivers/usb/host/dwc2.h
index f69372e..594757b 100644
--- a/drivers/usb/host/dwc2.h
+++ b/drivers/usb/host/dwc2.h
@@ -500,6 +500,7 @@ struct dwc2_core_regs {
#define DWC2_HFNUM_FRNUM_OFFSET 0
#define DWC2_HFNUM_FRREM_MASK (0xFFFF << 16)
#define DWC2_HFNUM_FRREM_OFFSET 16
+#define DWC2_HFNUM_MAX_FRNUM 0x3FFF
#define DWC2_HPTXSTS_PTXFSPCAVAIL_MASK (0xFFFF << 0)
#define DWC2_HPTXSTS_PTXFSPCAVAIL_OFFSET 0
#define DWC2_HPTXSTS_PTXQSPCAVAIL_MASK (0xFF << 16)