summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorPengbo Mu <pengbo.mu@nxp.com>2018-07-23 13:32:37 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-07-30 10:39:15 +0300
commitd9612c2f0449e24983a8b689603210486a930c90 (patch)
tree8eb308e330f7da8cacc430d9f077177ae9dc4276 /drivers/usb/dwc3/core.h
parentd635db5508b0b01142d44739717d7122469f59b1 (diff)
downloadlinux-d9612c2f0449e24983a8b689603210486a930c90.tar.xz
usb: dwc3: Enable undefined length INCR burst type
Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value. Signed-off-by: Changming Huang <jerry.huang@nxp.com> Signed-off-by: Ran Wang <ran.wang_1@nxp.com> Signed-off-by: Pengbo Mu <pengbo.mu@nxp.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 213b939ad011..5f14fb7121b1 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -1168,6 +1168,9 @@ struct dwc3 {
u16 imod_interval;
};
+#define INCRX_BURST_MODE 0
+#define INCRX_UNDEF_LENGTH_BURST_MODE 1
+
#define work_to_dwc(w) (container_of((w), struct dwc3, drd_work))
/* -------------------------------------------------------------------------- */