summaryrefslogtreecommitdiff
path: root/include/usb_defs.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-07-19 21:51:13 +0800
committerMarek Vasut <marex@denx.de>2017-07-28 23:34:32 +0200
commitbbc6f06c0031249bf1983b875e54cb7549bafe60 (patch)
tree7f830c8505ce674333df40e3b03203339a644ac4 /include/usb_defs.h
parent74ffc7cbb1d2d1f218b1bd67d1bd3cc1cba8aa79 (diff)
usb: hub: Support 'set hub depth' request for USB 3.0 hubs
USB 3.0 hub uses a hub depth value multiplied by four as an offset into the 'route string' to locate the bits it uses to determine the downstream port number. We shall set the hub depth value of a USB 3.0 hub after it is configured. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/usb_defs.h')
-rw-r--r--include/usb_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb_defs.h b/include/usb_defs.h
index 6b4385a2d8..273337f46a 100644
--- a/include/usb_defs.h
+++ b/include/usb_defs.h
@@ -306,6 +306,9 @@
/* Mask for wIndex in get/set port feature */
#define USB_HUB_PORT_MASK 0xf
+/* Hub class request codes */
+#define USB_REQ_SET_HUB_DEPTH 0x0c
+
/*
* CBI style
*/