summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@cogentembedded.com>2012-11-06 13:48:21 +0000
committerMarek Vasut <marex@denx.de>2012-11-20 00:16:06 +0100
commiteb81955bf0e34aeb33930cd4b2f63aa05c791fef (patch)
tree1f7d8e6edffbf3bc9c1f3f0900cd12429646ceac /drivers/usb/gadget
parentc60795f41d37600b6ebd79ec99252ec2f5efecd4 (diff)
downloadu-boot-imx-eb81955bf0e34aeb33930cd4b2f63aa05c791fef.zip
u-boot-imx-eb81955bf0e34aeb33930cd4b2f63aa05c791fef.tar.gz
u-boot-imx-eb81955bf0e34aeb33930cd4b2f63aa05c791fef.tar.bz2
musb-new: port of Linux musb driver
Existing U-Boot musb driver has no support for the new gadget framework and also seems to have other limitations. As gadget framework is ported from Linux it seems pretty natural to port musb gadget driver as well. This driver supports both host and peripheral modes. This is not a replacement for current musb driver (at least now) as there are still some consumers of the old UDC interface. No DMA operation support included, CONFIG_MUSB_PIO_ONLY should be defined. Virtual root hub device is not implemented. Known problems: with no devices connected usb_lowlevel_start() fails. Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/gadget_chips.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index 02cae0f..e570142 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -125,8 +125,8 @@
#endif
/* Mentor high speed "dual role" controller, in peripheral role */
-#ifdef CONFIG_USB_GADGET_MUSB_HDRC
-#define gadget_is_musbhdrc(g) (!strcmp("musb_hdrc", (g)->name))
+#ifdef CONFIG_MUSB_GADGET
+#define gadget_is_musbhdrc(g) (!strcmp("musb-hdrc", (g)->name))
#else
#define gadget_is_musbhdrc(g) 0
#endif