summaryrefslogtreecommitdiff
path: root/include/usb_defs.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:40 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:26 -0600
commit5db439920b87986870e3f1e980d842ae173a8764 (patch)
tree50dce6f4dcdb4c8f9852cbd34a3d5c1a57559d11 /include/usb_defs.h
parentf4f715360c490e20d25337a1984b508bf2061664 (diff)
dm: usb: sandbox: Add an emulator for USB hub emulation
All USB controllers need a root hub. Add a sandbox emulation for this so that we can add USB devices to sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
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 d7f7465fe55..27ddc4711d7 100644
--- a/include/usb_defs.h
+++ b/include/usb_defs.h
@@ -286,6 +286,9 @@
#define HUB_CHANGE_LOCAL_POWER 0x0001
#define HUB_CHANGE_OVERCURRENT 0x0002
+/* Mask for wIndex in get/set port feature */
+#define USB_HUB_PORT_MASK 0xf
+
/*
* CBI style
*/