From patchwork Tue Feb 15 08:55:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Liu X-Patchwork-Id: 558251 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1F8lMo2029322 for ; Tue, 15 Feb 2011 08:47:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754140Ab1BOIrV (ORCPT ); Tue, 15 Feb 2011 03:47:21 -0500 Received: from nwd2mail10.analog.com ([137.71.25.55]:61000 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408Ab1BOIrV (ORCPT ); Tue, 15 Feb 2011 03:47:21 -0500 X-IronPort-AV: E=Sophos;i="4.60,473,1291611600"; d="scan'208";a="29038571" Received: from nwd2hubcas1.ad.analog.com ([10.64.73.29]) by nwd2mail10.analog.com with ESMTP; 15 Feb 2011 03:47:19 -0500 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS1.ad.analog.com (10.64.73.29) with Microsoft SMTP Server id 8.1.358.0; Tue, 15 Feb 2011 03:47:17 -0500 Received: from linux.site ([10.99.22.20]) by zeus.spd.analog.com (8.14.1/8.14.1) with ESMTP id p1F8lFNf007889; Tue, 15 Feb 2011 03:47:16 -0500 (EST) Received: from localhost.localdomain (unknown [10.99.29.101]) by linux.site (Postfix) with ESMTP id 49AA442446C0; Mon, 14 Feb 2011 17:57:03 -0700 (MST) From: Bob Liu To: linux-omap@vger.kernel.org CC: archit@ti.com, tony@atomide.com, balbi@ti.com, adrian.hunter@nokia.com, Bob Liu Subject: [PATCH] arm: omap3beagle: init musb default role by Kconfig Date: Tue, 15 Feb 2011 16:55:00 +0800 Message-ID: <1297760100-7200-1-git-send-email-lliubbo@gmail.com> X-Mailer: git-send-email 1.6.3.3 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 08:47:22 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 14f4224..fb82773 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -554,7 +554,13 @@ static struct omap_board_mux board_mux[] __initdata = { static struct omap_musb_board_data musb_board_data = { .interface_type = MUSB_INTERFACE_ULPI, - .mode = MUSB_OTG, +#if defined(CONFIG_USB_MUSB_OTG) + .mode = MUSB_OTG, +#elif defined(CONFIG_USB_MUSB_HDRC_HCD) + .mode = MUSB_HOST, +#elif defined(CONFIG_USB_GADGET_MUSB_HDRC) + .mode = MUSB_PERIPHERAL, +#endif .power = 100, };