From patchwork Mon Jan 10 13:26:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo Serra X-Patchwork-Id: 468881 X-Patchwork-Delegate: tony@atomide.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 p0ADQR0w007939 for ; Mon, 10 Jan 2011 13:26:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753932Ab1AJN02 (ORCPT ); Mon, 10 Jan 2011 08:26:28 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:58293 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753650Ab1AJN01 (ORCPT ); Mon, 10 Jan 2011 08:26:27 -0500 Received: by wyb28 with SMTP id 28so19431115wyb.19 for ; Mon, 10 Jan 2011 05:26:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=Ll15JWuzO/X6gFOgX24fYPTie+y0HVmqxxm1jhkmJuQ=; b=PZEYqwW5mq9rIciWaaPM52b1ohL9PHPrwMy6KOLrSnj5jDg/T/7/5GclOwNBcispFW jAFAhnsBpFlgQj02IfF1AgQn0LGMU6EITH0Xb9USG7QqoAATz2NdFufvD9AtgaLjBYma fZaNPFdHtGpogBfA86z4aApR9WBtYa58BDcHk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=McwsxH4btLMcn9GfEmFPACVOKGwzUw+ewknUItj/b7qb9sga5+zE7NLsYzVC1o9bJU mF1LHyzpSUOTOVHJRG9THjtHanmkcGxfYigalbYTxXstTuOZeGIzlsxZVzvohAcwpS7L /U9J7SFPk2Q0j8sf41jIezs7+QodsBtXGDv/w= Received: by 10.227.162.197 with SMTP id w5mr2537326wbx.169.1294665986234; Mon, 10 Jan 2011 05:26:26 -0800 (PST) Received: from localhost.localdomain (249.Red-80-33-164.staticIP.rima-tde.net [80.33.164.249]) by mx.google.com with ESMTPS id 11sm20061666wbi.12.2011.01.10.05.26.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 Jan 2011 05:26:25 -0800 (PST) From: Enric Balletbo i Serra To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tony@atomide.com Cc: Enric Balletbo i Serra Subject: [PATCH 1/3] omap3: igep3: Add USB EHCI support for IGEP module. Date: Mon, 10 Jan 2011 14:26:12 +0100 Message-Id: <1294665974-10590-2-git-send-email-eballetbo@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1294665974-10590-1-git-send-email-eballetbo@gmail.com> References: <1294665974-10590-1-git-send-email-eballetbo@gmail.com> 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]); Mon, 10 Jan 2011 13:26:29 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-igep0030.c b/arch/arm/mach-omap2/board-igep0030.c index c88e8f7..f0a85c1 100644 --- a/arch/arm/mach-omap2/board-igep0030.c +++ b/arch/arm/mach-omap2/board-igep0030.c @@ -43,7 +43,7 @@ #define IGEP3_GPIO_WIFI_NRESET 139 #define IGEP3_GPIO_BT_NRESET 137 -#define IGEP3_GPIO_USBH_NRESET 115 +#define IGEP3_GPIO_USBH_NRESET 183 #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ @@ -363,8 +363,20 @@ static void __init igep3_wifi_bt_init(void) void __init igep3_wifi_bt_init(void) {} #endif +static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { + .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, + .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] = IGEP3_GPIO_USBH_NRESET, + .reset_gpio_port[2] = -EINVAL, +}; + #ifdef CONFIG_OMAP_MUX static struct omap_board_mux board_mux[] __initdata = { + OMAP3_MUX(I2C2_SDA, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), { .reg_offset = OMAP_MUX_TERMINATOR }, }; #endif @@ -378,6 +390,7 @@ static void __init igep3_init(void) omap_serial_init(); usb_musb_init(&musb_board_data); + usb_ehci_init(&ehci_pdata); igep3_flash_init(); igep3_leds_init();