summaryrefslogtreecommitdiff
path: root/common/cmd_usb.c
diff options
context:
space:
mode:
authorVivek Gautam <gautam.vivek@samsung.com>2013-04-12 16:34:38 +0530
committerMarek Vasut <marex@denx.de>2013-05-05 23:54:22 +0200
commit6497c66704d03956e7ea49b54fcaa38740736416 (patch)
tree409cd69a5d470bb5dd867d05df9b90aa82313e44 /common/cmd_usb.c
parent289f3cb28a3916b6c4c770db9a88463884be5b6c (diff)
downloadu-boot-imx-6497c66704d03956e7ea49b54fcaa38740736416.zip
u-boot-imx-6497c66704d03956e7ea49b54fcaa38740736416.tar.gz
u-boot-imx-6497c66704d03956e7ea49b54fcaa38740736416.tar.bz2
USB: SS: Add support for Super Speed USB interface
This adds usb framework support for super-speed usb, which will further facilitate to add stack support for xHCI. Signed-off-by: Vikas C Sajjan <vikas.sajjan@samsung.com> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Diffstat (limited to 'common/cmd_usb.c')
-rw-r--r--common/cmd_usb.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index adc5f02..70e803b 100644
--- a/common/cmd_usb.c
+++ b/common/cmd_usb.c
@@ -287,12 +287,24 @@ static struct usb_device *usb_find_device(int devnum)
static inline char *portspeed(int speed)
{
- if (speed == USB_SPEED_HIGH)
- return "480 Mb/s";
- else if (speed == USB_SPEED_LOW)
- return "1.5 Mb/s";
- else
- return "12 Mb/s";
+ char *speed_str;
+
+ switch (speed) {
+ case USB_SPEED_SUPER:
+ speed_str = "5 Gb/s";
+ break;
+ case USB_SPEED_HIGH:
+ speed_str = "480 Mb/s";
+ break;
+ case USB_SPEED_LOW:
+ speed_str = "1.5 Mb/s";
+ break;
+ default:
+ speed_str = "12 Mb/s";
+ break;
+ }
+
+ return speed_str;
}
/* shows the device tree recursively */