From patchwork Tue Aug 30 11:58:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pratyush ANAND X-Patchwork-Id: 112296 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 4B497B743A for ; Tue, 30 Aug 2011 23:45:51 +1000 (EST) Received: from eu1sys200aog117.obsmtp.com (eu1sys200aog117.obsmtp.com [207.126.144.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 17849B6F7D for ; Tue, 30 Aug 2011 22:26:31 +1000 (EST) Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob117.postini.com ([207.126.147.11]) with SMTP ID DSNKTlzW8rVQDYXevf8TKsIRWE22BIPP3AvQ@postini.com; Tue, 30 Aug 2011 12:26:32 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 75C09F3; Tue, 30 Aug 2011 11:58:32 +0000 (GMT) Received: from Webmail-ap.st.com (eapex1hubcas1.st.com [10.80.176.8]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 6293C33F; Tue, 30 Aug 2011 11:58:32 +0000 (GMT) Received: from localhost (10.199.7.157) by Webmail-ap.st.com (10.80.176.7) with Microsoft SMTP Server (TLS) id 8.2.234.1; Tue, 30 Aug 2011 19:58:31 +0800 From: Pratyush Anand To: Subject: [PATCH 13/14] usb/gadget/kconfig: added dwc otg as an option for peripheral controller Date: Tue, 30 Aug 2011 17:28:00 +0530 Message-ID: <0141f2f382fd7e96192c528126384a252d96ae1e.1314704558.git.pratyush.anand@st.com> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 30 Aug 2011 23:45:42 +1000 Cc: Pratyush Anand , viresh.kumar@st.com, vipulkumar.samar@st.com, bhupesh.sharma@st.com, tmarri@apm.com, vipin.kumar@st.com, shiraz.hashim@st.com, Amit.VIRDI@st.com, rajeev-dlh.kumar@st.com, mmiesfeld@apm.com, deepak.sikri@st.com, linuxppc-dev@lists.ozlabs.org, fchen@apm.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org When dwc otg is configured as either dual or device only mode, then it can also be used as a usb gadget. So added dwc otg as an option for peripheral controller. Signed-off-by: Pratyush Anand --- drivers/usb/gadget/Kconfig | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 09fa211..ca0d83a 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -169,6 +169,23 @@ config USB_DESIGNWARE default USB_GADGET select USB_GADGET_SELECTED +config USB_GADGET_DESIGNWARE_OTG + boolean "Synopsys designware OTG Device Controller" + depends on DWC_OTG_MODE || DWC_DEVICE_ONLY + select USB_GADGET_DUALSPEED + help + This driver supports the OTG device synopsys controller. + Say "y" to link the driver statically, or "m" to build a + dynamically linked module called "spear_udc" and force all + gadget drivers to also be dynamically linked. + +config USB_DESIGNWARE_OTG + tristate + depends on USB_GADGET_DESIGNWARE_OTG + default USB_GADGET + select USB_GADGET_SELECTED + + config USB_GADGET_FSL_USB2 boolean "Freescale Highspeed USB DR Peripheral Controller" depends on FSL_SOC || ARCH_MXC