public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Dalek <luk0104@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 7/8] usb.h: Add udc_disconnect prototype to usb.h
Date: Tue,  2 Oct 2012 17:04:33 +0200	[thread overview]
Message-ID: <1349190274-1924-7-git-send-email-luk0104@gmail.com> (raw)
In-Reply-To: <1349190274-1924-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 |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/include/usb.h b/include/usb.h
index ba3d169..b6642de 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -166,6 +166,17 @@ 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
 
+/*
+ * PXA25x can only act as USB device. There are drivers
+ * which works with USB CDC gadgets implementations.
+ * Some of them have common routines which can be used
+ * in boards init functions e.g. udc_disconnect() used for
+ * forced device disconnection from host.
+ */
+#elif defined(CONFIG_USB_GADGET_PXA2XX)
+
+extern void udc_disconnect(void);
+
 #else
 #error USB Lowlevel not defined
 #endif
-- 
1.7.8.6

  parent reply	other threads:[~2012-10-02 15:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02 15:04 [U-Boot] [PATCH v4 1/8] h2200: Add support for iPAQ h2200 palmtop Lukasz Dalek
2012-10-02 15:04 ` [U-Boot] [PATCH v4 2/8] pxa: Add some stuff to examine cpu model and rev Lukasz Dalek
2012-10-02 19:36   ` Marek Vasut
2012-10-02 20:02     ` Łukasz Dałek
2012-10-02 15:04 ` [U-Boot] [PATCH v4 3/8] usbether: Fixed bug when using with PXA25X chips Lukasz Dalek
2012-10-02 15:04 ` [U-Boot] [PATCH v4 4/8] usbether: Define CONFIG_USB_ETH_{CDC, SUBSET} Lukasz Dalek
2012-10-02 15:04 ` [U-Boot] [PATCH v4 5/8] usbether: Removed DEV_CONFIG_{CDC,SUBSET} Lukasz Dalek
2012-10-02 15:04 ` [U-Boot] [PATCH v4 6/8] pxa25x: Add support for USB ethernet gadget Lukasz Dalek
2012-10-02 15:04 ` Lukasz Dalek [this message]
2012-10-02 15:04 ` [U-Boot] [PATCH v4 8/8] h2200: Add USB CDC ethernet support Lukasz Dalek
2012-10-02 19:35 ` [U-Boot] [PATCH v4 1/8] h2200: Add support for iPAQ h2200 palmtop Marek Vasut
2012-10-02 20:09   ` Łukasz Dałek
2012-10-02 20:19     ` Marek Vasut
2012-10-02 20:38       ` Łukasz Dałek

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=1349190274-1924-7-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