From patchwork Tue Oct 2 15:04:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?xYF1a2FzeiBEYcWCZWs=?= X-Patchwork-Id: 188542 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C3AAF2C00AC for ; Wed, 3 Oct 2012 01:06:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 72E7E28112; Tue, 2 Oct 2012 17:06:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Rjan79ZeKWk; Tue, 2 Oct 2012 17:06:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E987328114; Tue, 2 Oct 2012 17:05:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 86158280E5 for ; Tue, 2 Oct 2012 17:05:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xuDFC9x8rhkw for ; Tue, 2 Oct 2012 17:05:02 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by theia.denx.de (Postfix) with ESMTPS id 3FCAA280E8 for ; Tue, 2 Oct 2012 17:04:53 +0200 (CEST) Received: by mail-ee0-f44.google.com with SMTP id d4so2969621eek.3 for ; Tue, 02 Oct 2012 08:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=2bgQ0TjnZyjLVOaQjobbq0Te/s5SqMSql//S1LWNvYs=; b=tnQVro56dPcuNowCmzTKxq3atbpgYpRoAhPhQBVM2IRef39PUuk7kpxghkM6b2zHhP 8O9k6OMrecOli33k5vpjEGyE1gauA7ozQRBC9yj9a2wcDSKRjn3Wkwqo3M0AbRS33jsA 8jir+agFqFMDF258xiC84iSRsuAmRse61PynFX47Pqz98Q0NJ0L6cVAvOFssv87o25yc DXb9TghV4O4/Lh9NA+HiuFhJntr4p7RNxw0B4pbHFWGUdzBTkpsWp8Gd53dKnIzmvx4W OzExO9C5g2tlMAJ3ueamO0CLpC/RnCjOEbGlTdbhfxoNWuc8uCsaqzKFBoEewr239IUv +qNw== Received: by 10.14.223.4 with SMTP id u4mr9769322eep.19.1349190293031; Tue, 02 Oct 2012 08:04:53 -0700 (PDT) Received: from mover.dalas.net (riviera.nat.student.pw.edu.pl. [194.29.137.1]) by mx.google.com with ESMTPS id c6sm4274726eep.17.2012.10.02.08.04.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 08:04:52 -0700 (PDT) From: Lukasz Dalek To: u-boot@lists.denx.de Date: Tue, 2 Oct 2012 17:04:33 +0200 Message-Id: <1349190274-1924-7-git-send-email-luk0104@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1349190274-1924-1-git-send-email-luk0104@gmail.com> References: <1349190274-1924-1-git-send-email-luk0104@gmail.com> Cc: marex@denx.de Subject: [U-Boot] [PATCH v4 7/8] usb.h: Add udc_disconnect prototype to usb.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 --- 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