From patchwork Mon Apr 12 04:31:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viral Mehta X-Patchwork-Id: 91945 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3C4Vuvv023913 for ; Mon, 12 Apr 2010 04:31:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751051Ab0DLEbu (ORCPT ); Mon, 12 Apr 2010 00:31:50 -0400 Received: from mail142.messagelabs.com ([216.82.249.99]:41679 "EHLO mail142.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997Ab0DLEbn convert rfc822-to-8bit (ORCPT ); Mon, 12 Apr 2010 00:31:43 -0400 X-VirusChecked: Checked X-Env-Sender: Viral.Mehta@lntinfotech.com X-Msg-Ref: server-3.tower-142.messagelabs.com!1271046700!39889883!1 X-StarScan-Version: 6.2.4; banners=lntinfotech.com,-,- X-Originating-IP: [203.199.118.205] Received: (qmail 1231 invoked from network); 12 Apr 2010 04:31:42 -0000 Received: from unknown (HELO VSHINMSHTCAS01.vshodc.lntinfotech.com) (203.199.118.205) by server-3.tower-142.messagelabs.com with AES128-SHA encrypted SMTP; 12 Apr 2010 04:31:42 -0000 Received: from localhost.localdomain (172.17.109.9) by VSHINMSHTCAS01.vshodc.lntinfotech.com (172.17.24.112) with Microsoft SMTP Server id 8.2.176.0; Mon, 12 Apr 2010 10:01:39 +0530 From: To: linux-omap@vger.kernel.org CC: linux-usb@vger.kernel.org, Viral Mehta Subject: [PATCH] Add OHCI USB platform init Date: Mon, 12 Apr 2010 10:01:53 +0530 Message-ID: <1271046713-10475-1-git-send-email-viral.mehta@lntinfotech.com> X-Mailer: git-send-email 1.6.6 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.3 (demeter.kernel.org [140.211.167.41]); Mon, 12 Apr 2010 04:31:57 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 346e1d2..047d5ae 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -206,6 +206,15 @@ static struct omap_musb_board_data musb_board_data = { .mode = MUSB_OTG, .power = 100, }; +static struct omap_usb_config sdp2430_usb_config __initdata = { + .otg = 1, +#ifdef CONFIG_USB_GADGET_OMAP + .hmc_mode = 0x0, +#elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) + .hmc_mode = 0x1, +#endif + .pins[0] = 3, +} static void __init omap_2430sdp_init(void) { @@ -216,6 +225,7 @@ static void __init omap_2430sdp_init(void) platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); omap_serial_init(); omap2_hsmmc_init(mmc); + omap_usb_init(&sdp2430_usb_config); usb_musb_init(&musb_board_data); board_smc91x_init();