diff options
author | Bin Liu <b-liu@ti.com> | 2013-03-21 05:27:49 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-04-08 11:29:04 -0400 |
commit | 76b09b8561aa25d494aab31d94901fbda3526349 (patch) | |
tree | afe3581ac4d92497966db817bb71f117d4ea1a40 /drivers/usb/musb-new/musb_uboot.c | |
parent | 4de602f2b0576e935e9985bec6baf4e14857b7ff (diff) | |
download | u-boot-imx-76b09b8561aa25d494aab31d94901fbda3526349.zip u-boot-imx-76b09b8561aa25d494aab31d94901fbda3526349.tar.gz u-boot-imx-76b09b8561aa25d494aab31d94901fbda3526349.tar.bz2 |
musb: set MUSB speed based on CONFIG
Do not config MUSB to highspeed mode if CONFIG_USB_GADGET_DUALSPEED
is not set, in which case Ether gadget only operates in fullspeed.
Reviewed-by: Tom Rini <trini@ti.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Diffstat (limited to 'drivers/usb/musb-new/musb_uboot.c')
-rw-r--r-- | drivers/usb/musb-new/musb_uboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c index 762cbc1..15d2ec0 100644 --- a/drivers/usb/musb-new/musb_uboot.c +++ b/drivers/usb/musb-new/musb_uboot.c @@ -174,7 +174,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver) { int ret; - if (!driver || driver->speed < USB_SPEED_HIGH || !driver->bind || + if (!driver || driver->speed < USB_SPEED_FULL || !driver->bind || !driver->setup) { printf("bad parameter.\n"); return -EINVAL; |