From patchwork Wed Sep 26 13:44:25 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: 187083 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 DC8662C010B for ; Wed, 26 Sep 2012 23:45:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 91D7128093; Wed, 26 Sep 2012 15:45:15 +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 afdwUwp8guTb; Wed, 26 Sep 2012 15:45:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D7DC628083; Wed, 26 Sep 2012 15:45:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D99972807E for ; Wed, 26 Sep 2012 15:45:10 +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 wajfExpdXVsY for ; Wed, 26 Sep 2012 15:45:09 +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 17F3A28094 for ; Wed, 26 Sep 2012 15:45:05 +0200 (CEST) Received: by eekd4 with SMTP id d4so295734eek.3 for ; Wed, 26 Sep 2012 06:45:02 -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=0FXdNnE4+0gEpJh6LrSu7mhBgsVDkCmGU4jQ/PvMhBY=; b=d082Gfjo0s2ZTIHsW4SEm6eYJ5veu2xLkaDchrL9uKfQZ8STC1P+7ZnIUYCXiXSF3L Jbk2p6bAVwrJJjmI5w/oNr0TY+tc/TzYq4tQCzZcfDKFgX41QYwgMcxwfv7nJtQWHNBL WjzFapfnf/NdGMVfIh1V+rIKW58WQLDUJz4VQMBpxIEpwXM4WOh0DDJztO8yFMzLNT2N bvcMAggz7De5GqOznk0ZMm60WPGGo+7HbDNKTu4PaO4jhHoIPD+Qy29Vteha/m5SXTnE n4Qq/eJxApH0n3IdCvNWSyYxPcmYDvzFCym7gyL9F+mD1DKbnmAVb1uApH4BDXd427KK KXVg== Received: by 10.14.224.73 with SMTP id w49mr1045997eep.37.1348667102506; Wed, 26 Sep 2012 06:45:02 -0700 (PDT) Received: from localhost.localdomain (apn-95-41-232-218.dynamic.gprs.plus.pl. [95.41.232.218]) by mx.google.com with ESMTPS id 9sm9464801eei.12.2012.09.26.06.45.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 06:45:02 -0700 (PDT) From: Lukasz Dalek To: u-boot@lists.denx.de Date: Wed, 26 Sep 2012 15:44:25 +0200 Message-Id: <1348667065-27138-2-git-send-email-luk0104@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1348667065-27138-1-git-send-email-luk0104@gmail.com> References: <1348667065-27138-1-git-send-email-luk0104@gmail.com> Cc: marex@denx.de Subject: [U-Boot] [PATCH] 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 | 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