summaryrefslogtreecommitdiffstats
path: root/include/usb.h
diff options
context:
space:
mode:
authorOleksandr Tymoshenko <gonzo@bluezbox.com>2014-02-01 21:51:25 -0700
committerMarek Vasut <marex@denx.de>2014-10-22 22:01:58 +0200
commit6e9e06260d4fa8873fdebddc2a11f9205674d189 (patch)
treea837bfdb00c71b2c362d4718110b921a6019e7f7 /include/usb.h
parenta7f247222432f037dc52c26320f5d16f1b9bb0eb (diff)
downloadblackbird-obmc-uboot-6e9e06260d4fa8873fdebddc2a11f9205674d189.tar.gz
blackbird-obmc-uboot-6e9e06260d4fa8873fdebddc2a11f9205674d189.zip
usb: dwc2: Add driver for Synopsis DWC2 USB IP block
This is the USB host controller used on the Altera SoCFPGA and Raspbery Pi. This code has three checkpatch warnings, but to make sure it stays at least readable and clear, these are not fixed. These bugs are in the USB request handling combinatorial logic, so any abstracting of those is out of question. Tested on DENX MCV (Altera SoCFPGA 5CSFXC6C6U23C8N) and RPi B+ (BCM2835). Signed-off-by: Oleksandr Tymoshenko <gonzo@bluezbox.com> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@altera.com> Acked-by: Pavel Machek <pavel@denx.de> Cc: Vince Bridgers <vbridger@altera.com> Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'include/usb.h')
-rw-r--r--include/usb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb.h b/include/usb.h
index c355fbe481..c4a288d5e9 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -150,7 +150,8 @@ enum usb_init_type {
defined(CONFIG_USB_OMAP3) || defined(CONFIG_USB_DA8XX) || \
defined(CONFIG_USB_BLACKFIN) || defined(CONFIG_USB_AM35X) || \
defined(CONFIG_USB_MUSB_DSPS) || defined(CONFIG_USB_MUSB_AM35X) || \
- defined(CONFIG_USB_MUSB_OMAP2PLUS) || defined(CONFIG_USB_XHCI)
+ defined(CONFIG_USB_MUSB_OMAP2PLUS) || defined(CONFIG_USB_XHCI) || \
+ defined(CONFIG_USB_DWC2)
int usb_lowlevel_init(int index, enum usb_init_type init, void **controller);
int usb_lowlevel_stop(int index);
OpenPOWER on IntegriCloud