From 5db439920b87986870e3f1e980d842ae173a8764 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 25 Mar 2015 12:22:40 -0600 Subject: 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 Reviewed-by: Marek Vasut --- include/usb_defs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/usb_defs.h') diff --git a/include/usb_defs.h b/include/usb_defs.h index d7f7465fe5..27ddc4711d 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 */ -- cgit v1.2.3