aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.h
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2012-02-15 21:56:58 -0500
committerFelipe Balbi <balbi@ti.com>2012-06-03 16:08:21 -0400
commit2c61a8efce75951148fa07f2cd7ec53ad9d9fbb3 (patch)
treee39550046aed2ec9b09b07f7b8fbbbb9cd9a1191 /drivers/usb/dwc3/gadget.h
parenta092532483e3200a53c8b1170b3988cc668c07ef (diff)
usb: dwc3: add definitions for new registers
This patch adds definitions for some new registers that have been added to later versions of the controller, up to v2.10a. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r--drivers/usb/dwc3/gadget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h
index 95ef6a2f7764..39ced0b08515 100644
--- a/drivers/usb/dwc3/gadget.h
+++ b/drivers/usb/dwc3/gadget.h
@@ -66,7 +66,12 @@ struct dwc3;
66#define DWC3_DEPCFG_FIFO_NUMBER(n) ((n) << 17) 66#define DWC3_DEPCFG_FIFO_NUMBER(n) ((n) << 17)
67#define DWC3_DEPCFG_BURST_SIZE(n) ((n) << 22) 67#define DWC3_DEPCFG_BURST_SIZE(n) ((n) << 22)
68#define DWC3_DEPCFG_DATA_SEQ_NUM(n) ((n) << 26) 68#define DWC3_DEPCFG_DATA_SEQ_NUM(n) ((n) << 26)
69/* This applies for core versions earlier than 1.94a */
69#define DWC3_DEPCFG_IGN_SEQ_NUM (1 << 31) 70#define DWC3_DEPCFG_IGN_SEQ_NUM (1 << 31)
71/* These apply for core versions 1.94a and later */
72#define DWC3_DEPCFG_ACTION_INIT (0 << 30)
73#define DWC3_DEPCFG_ACTION_RESTORE (1 << 30)
74#define DWC3_DEPCFG_ACTION_MODIFY (2 << 30)
70 75
71/* DEPXFERCFG parameter 0 */ 76/* DEPXFERCFG parameter 0 */
72#define DWC3_DEPXFERCFG_NUM_XFER_RES(n) ((n) & 0xffff) 77#define DWC3_DEPXFERCFG_NUM_XFER_RES(n) ((n) & 0xffff)