From patchwork Wed Nov 18 18:13:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo Serra X-Patchwork-Id: 67323 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBEHwk4a014835 for ; Mon, 14 Dec 2009 17:58:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756047AbZLNR6s (ORCPT ); Mon, 14 Dec 2009 12:58:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754632AbZLNR6r (ORCPT ); Mon, 14 Dec 2009 12:58:47 -0500 Received: from mail-ew0-f219.google.com ([209.85.219.219]:59112 "EHLO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756047AbZLNR6q (ORCPT ); Mon, 14 Dec 2009 12:58:46 -0500 Received: by mail-ew0-f219.google.com with SMTP id 19so3657006ewy.21 for ; Mon, 14 Dec 2009 09:58:46 -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=uuNcpb8AnwqmqMZdqAfYp4vcOc+me03BNyfNtaWs270=; b=mN8Y9ifcqpfjfGtDEjg27RboLjQtWJPEET9CTbTLAYUbkvSx46tXVTyyNjeCzg4/de VnzCxyfSEpB396f0llXe1RqHVQpbwu+BWwGV1x/MK8N+m1GfafN4jei2pCHV7TIHGfMB 1tZE32qq9VqhVXJqtOyJYQiWvyjtTjLvPEI9w= 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=BkzQnphcK4dOxX550nIQtBBv0r1MmyaqNL7FniU+N0jzcaAQdWaHW+fRQNIR5JRphC m0aBJXw9SPtu3hscWZlM5WIR4R1olW2YXFAm0ImYprrV91di8qOurA8ahjdNuPsruh5T tANoyPySSbLuCGXozXND1o9AN2OXB78TdmlAY= Received: by 10.213.110.137 with SMTP id n9mr6134523ebp.75.1260813523979; Mon, 14 Dec 2009 09:58:43 -0800 (PST) Received: from localhost.localdomain (248.Red-213-97-239.staticIP.rima-tde.net [213.97.239.248]) by mx.google.com with ESMTPS id 15sm3139818ewy.8.2009.12.14.09.58.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Dec 2009 09:58:43 -0800 (PST) From: Enric Balletbo i Serra To: linux-omap@vger.kernel.org Cc: Enric Balletbo i Serra Subject: [PATCH 3/3] omap3: Add platform init code for EHCI driver on IGEP v2 Date: Wed, 18 Nov 2009 19:13:24 +0100 Message-Id: <1258568004-6993-3-git-send-email-eballetbo@gmail.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1258568004-6993-2-git-send-email-eballetbo@gmail.com> References: <1258568004-6993-1-git-send-email-eballetbo@gmail.com> <1258568004-6993-2-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 diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 221b497..76f0208 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -213,6 +213,17 @@ static int __init igep2_i2c_init(void) return 0; } +static 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] = IGEP2_GPIO_USBH_NRESET, + .reset_gpio_port[2] = -EINVAL, +}; + #ifdef CONFIG_OMAP_MUX static struct omap_board_mux board_mux[] __initdata = { { .reg_offset = OMAP_MUX_TERMINATOR }, @@ -227,6 +238,7 @@ static void __init igep2_init(void) igep2_i2c_init(); omap_serial_init(); usb_musb_init(); + usb_ehci_init(&ehci_pdata); igep2_init_smsc911x();