diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-03 09:27:40 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-26 07:21:15 +0100 |
commit | bb2cbfb2bfcc85aa480664dd9c0df9ced3775922 (patch) | |
tree | c251cd67189cd5b9c299b0436976ae9c7f1bce73 /include/usb | |
parent | 6d1d95a386ed0fefe100ee7e8f000216002aa356 (diff) | |
download | barebox-bb2cbfb2bfcc85aa480664dd9c0df9ced3775922.tar.gz barebox-bb2cbfb2bfcc85aa480664dd9c0df9ced3775922.tar.xz |
usb: hub: Translate USB 3.0 hub port status into old version
Adoption of U-Boot commit:
| 1commit 74ffc7cbb1d2d1f218b1bd67d1bd3cc1cba8aa79
| Author: Bin Meng <bmeng.cn@gmail.com>
| Date: Wed Jul 19 21:51:12 2017 +0800
|
| usb: hub: Translate USB 3.0 hub port status into old version
|
| USB 3.0 hub port status field has different bit positions from 2.0
| hubs. Since U-Boot only understands the old version, translate the
| new one into the old one.
|
| Since we are going to add USB 3.0 hub support, this feature is only
| available with driver model USB.
|
| Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
| Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/usb_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/usb_defs.h b/include/usb/usb_defs.h index 8e32379c63..dcc4c71ba1 100644 --- a/include/usb/usb_defs.h +++ b/include/usb/usb_defs.h @@ -147,4 +147,6 @@ #define SetHubFeature (0x2000 | USB_REQ_SET_FEATURE) #define SetPortFeature (0x2300 | USB_REQ_SET_FEATURE) +#define USB_PORT_STAT_SUPER_SPEED 0x0600 /* faking support to XHCI */ + #endif /*_USB_DEFS_H_ */ |