From patchwork Mon Nov 8 06:56:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 307722 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 oA86tP2B019354 for ; Mon, 8 Nov 2010 06:55:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751818Ab0KHGzY (ORCPT ); Mon, 8 Nov 2010 01:55:24 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:45026 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724Ab0KHGzY (ORCPT ); Mon, 8 Nov 2010 01:55:24 -0500 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id oA86tKGs031706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Nov 2010 00:55:20 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id oA86tJiM013614; Mon, 8 Nov 2010 00:55:20 -0600 (CST) Received: from localhost (cnfr-lp-1772.emea.dhcp.ti.com [137.167.41.206]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id oA86tIf12070; Mon, 8 Nov 2010 00:55:18 -0600 (CST) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Anand Gadiyar , Felipe Balbi Subject: [PATCH 2/2] arm: omap: zoom: substitute gpio number with symbolic name Date: Mon, 8 Nov 2010 08:56:15 +0200 Message-Id: <1289199375-9001-3-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.3.2.146.gca209 In-Reply-To: <1289199375-9001-1-git-send-email-balbi@ti.com> References: <1289199375-9001-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n 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 (demeter1.kernel.org [140.211.167.41]); Mon, 08 Nov 2010 06:55:26 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index f10766b..3da69e4 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c @@ -31,6 +31,8 @@ #include "sdram-micron-mt46h32m32lf-6.h" #include "sdram-hynix-h8mbx00u0mer-0em.h" +#define ZOOM3_EHCI_RESET_GPIO 64 + static void __init omap_zoom_init_irq(void) { if (machine_is_omap_zoom2()) @@ -112,7 +114,7 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, .phy_reset = true, .reset_gpio_port[0] = -EINVAL, - .reset_gpio_port[1] = 64, + .reset_gpio_port[1] = ZOOM3_EHCI_RESET_GPIO, .reset_gpio_port[2] = -EINVAL, }; @@ -122,7 +124,7 @@ static void __init omap_zoom_init(void) omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); } else if (machine_is_omap_zoom3()) { omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); - omap_mux_init_gpio(64, OMAP_PIN_OUTPUT); + omap_mux_init_gpio(ZOOM3_EHCI_RESET_GPIO, OMAP_PIN_OUTPUT); usb_ehci_init(&ehci_pdata); }