From patchwork Wed Oct 14 08:15:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 53620 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9E8JFEL024416 for ; Wed, 14 Oct 2009 08:19:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756109AbZJNIPo (ORCPT ); Wed, 14 Oct 2009 04:15:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756411AbZJNIPo (ORCPT ); Wed, 14 Oct 2009 04:15:44 -0400 Received: from compulab.co.il ([67.18.134.219]:33024 "EHLO compulab.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755698AbZJNIPm (ORCPT ); Wed, 14 Oct 2009 04:15:42 -0400 Received: from [62.90.235.247] (helo=zimbra-mta.compulab.co.il) by compulab.site5.com with esmtp (Exim 4.69) (envelope-from ) id 1Mxz0j-0003Jj-2r for linux-omap@vger.kernel.org; Wed, 14 Oct 2009 03:15:05 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 3B1849A034C for ; Wed, 14 Oct 2009 10:15:04 +0200 (IST) X-Virus-Scanned: amavisd-new at compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T0NvImkZyNJn for ; Wed, 14 Oct 2009 10:15:04 +0200 (IST) Received: from [10.1.1.95] (mike-pc.compulab.local [10.1.1.95]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 1D4ED9A0343 for ; Wed, 14 Oct 2009 10:15:04 +0200 (IST) Message-ID: <4AD58887.9010004@compulab.co.il> Date: Wed, 14 Oct 2009 10:15:03 +0200 From: Mike Rapoport User-Agent: Thunderbird 2.0.0.21 (X11/20090712) MIME-Version: 1.0 To: "linux-omap@vger.kernel.org" Subject: [PATCH] ARM: OMAP3: cm-t35: add EHCI support X-ACL-Warn: { X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - compulab.site5.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Source: X-Source-Args: X-Source-Dir: Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 94c1f35..1465892 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c @@ -352,6 +352,17 @@ static struct twl4030_hsmmc_info mmc[] = { {} /* Terminator */ }; +static struct ehci_hcd_omap_platform_data ehci_pdata = { + .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, + .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, + .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, + + .phy_reset = true, + .reset_gpio_port[0] = -EINVAL, + .reset_gpio_port[1] = -EINVAL, + .reset_gpio_port[2] = -EINVAL +}; + static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, unsigned ngpio) { @@ -377,6 +388,12 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, cm_t35_vmmc1_supply.dev = mmc[0].dev; cm_t35_vsim_supply.dev = mmc[0].dev; + /* setup USB with proper PHY reset GPIOs */ + ehci_pdata.reset_gpio_port[0] = gpio + 6; + ehci_pdata.reset_gpio_port[1] = gpio + 7; + + usb_ehci_init(&ehci_pdata); + return 0; }