summaryrefslogtreecommitdiff
path: root/drivers/usb/host/dwc2.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@wwwdotorg.org>2015-03-27 21:55:38 -0600
committerMarek Vasut <marex@denx.de>2015-04-14 05:47:59 +0200
commit4748cce57345a23dbbc990a28ca9d97952432c4f (patch)
treec889d66d476e5e9e78bd03405fb10f85175e3474 /drivers/usb/host/dwc2.h
parent5c0beb5c58c86d2a6d12dee6330dc85554de5c60 (diff)
downloadu-boot-4748cce57345a23dbbc990a28ca9d97952432c4f.tar.gz
u-boot-4748cce57345a23dbbc990a28ca9d97952432c4f.tar.bz2
u-boot-4748cce57345a23dbbc990a28ca9d97952432c4f.zip
usb: dwc2: detect device speed correctly
This doesn't make my LS keyboard work any better, but it does at least report the correct speed in "usb tree". Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'drivers/usb/host/dwc2.h')
-rw-r--r--drivers/usb/host/dwc2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/dwc2.h b/drivers/usb/host/dwc2.h
index ba08fd554f..45408c6f5c 100644
--- a/drivers/usb/host/dwc2.h
+++ b/drivers/usb/host/dwc2.h
@@ -536,6 +536,9 @@ struct dwc2_core_regs {
#define DWC2_HPRT0_PRTPWR_OFFSET 12
#define DWC2_HPRT0_PRTTSTCTL_MASK (0xF << 13)
#define DWC2_HPRT0_PRTTSTCTL_OFFSET 13
+#define DWC2_HPRT0_PRTSPD_HIGH (0 << 17)
+#define DWC2_HPRT0_PRTSPD_FULL (1 << 17)
+#define DWC2_HPRT0_PRTSPD_LOW (2 << 17)
#define DWC2_HPRT0_PRTSPD_MASK (0x3 << 17)
#define DWC2_HPRT0_PRTSPD_OFFSET 17
#define DWC2_HAINT_CH0 (1 << 0)