From: Lukasz Dalek <luk0104@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb.h: Add udc_disconnect prototype to usb.h
Date: Wed, 26 Sep 2012 15:44:25 +0200 [thread overview]
Message-ID: <1348667065-27138-2-git-send-email-luk0104@gmail.com> (raw)
In-Reply-To: <1348667065-27138-1-git-send-email-luk0104@gmail.com>
PXA25x gadget implements common function usb_disconnect().
This patch adds this function prototype into usb.h for boards using it.
Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
---
include/usb.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/usb.h b/include/usb.h
index ba3d169..25c3255 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -166,6 +166,13 @@ int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
#define USB_UHCI_VEND_ID 0x8086
#define USB_UHCI_DEV_ID 0x7112
+/*
+ * This isn't host
+ */
+#elif defined(CONFIG_USB_GADGET_PXA2XX)
+
+extern void udc_disconnect(void);
+
#else
#error USB Lowlevel not defined
#endif
--
1.7.8.6
next prev parent reply other threads:[~2012-09-26 13:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 13:44 [U-Boot] [PATCH v3] h2200: Add support for iPAQ h2200 palmtop Lukasz Dalek
2012-09-26 13:44 ` Lukasz Dalek [this message]
2012-09-26 15:31 ` [U-Boot] [PATCH] usb.h: Add udc_disconnect prototype to usb.h Marek Vasut
2012-09-26 23:50 ` Łukasz Dałek
2012-09-26 23:58 ` Marek Vasut
2012-09-27 0:01 ` Łukasz Dałek
2012-09-27 0:06 ` Marek Vasut
2012-09-27 0:23 ` Łukasz Dałek
2012-09-27 0:30 ` Marek Vasut
2012-09-27 0:34 ` Łukasz Dałek
2012-09-26 15:29 ` [U-Boot] [PATCH v3] h2200: Add support for iPAQ h2200 palmtop Marek Vasut
2012-09-26 16:08 ` Łukasz Dałek
2012-09-26 16:13 ` Marek Vasut
2012-09-26 20:58 ` Łukasz Dałek
2012-09-26 23:32 ` Marek Vasut
2012-09-26 23:47 ` Łukasz Dałek
2012-09-26 23:58 ` Marek Vasut
2012-09-27 0:03 ` Łukasz Dałek
2012-09-27 0:07 ` Marek Vasut
2012-09-27 0:15 ` Łukasz Dałek
2012-09-27 0:31 ` Marek Vasut
2012-09-27 0:35 ` Łukasz Dałek
2012-09-27 0:55 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1348667065-27138-2-git-send-email-luk0104@gmail.com \
--to=luk0104@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox