libpayload/usb: add USB 3.1 GEN2 support
USB 3.1 GEN2 report speed type 4, add into speed enum. BUG=b:139787920 BRANCH=N/A TEST=Build libpayload and depthcharge on sarien and boot with USB GEN2 HUB with USB disk. Check ultra speed device in cbmem log. Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ia0ef12b2f0d91bf0d0db766bbc9019de1614a4f4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35023 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@ -210,6 +210,7 @@ typedef enum {
|
||||
LOW_SPEED = 1,
|
||||
HIGH_SPEED = 2,
|
||||
SUPER_SPEED = 3,
|
||||
SUPER_SPEED_PLUS = 4,
|
||||
} usb_speed;
|
||||
|
||||
struct usbdev {
|
||||
@ -293,6 +294,7 @@ int get_descriptor (usbdev_t *dev, int rtype, int descType, int descIdx,
|
||||
int set_configuration (usbdev_t *dev);
|
||||
int clear_feature (usbdev_t *dev, int endp, int feature, int rtype);
|
||||
int clear_stall (endpoint_t *ep);
|
||||
_Bool is_usb_speed_ss(usb_speed speed);
|
||||
|
||||
void usb_nop_init (usbdev_t *dev);
|
||||
void usb_hub_init (usbdev_t *dev);
|
||||
|
Reference in New Issue
Block a user