From patchwork Tue Jan 11 17:13:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 472151 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 p0BHDoTJ030246 for ; Tue, 11 Jan 2011 17:13:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932378Ab1AKRNu (ORCPT ); Tue, 11 Jan 2011 12:13:50 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:40304 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932329Ab1AKRNr (ORCPT ); Tue, 11 Jan 2011 12:13:47 -0500 Received: from dlep35.itg.ti.com ([157.170.170.118]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p0BHDdPT002699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Jan 2011 11:13:39 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id p0BHDd4a020595; Tue, 11 Jan 2011 11:13:39 -0600 (CST) Received: from senorita (senorita.am.dhcp.ti.com [128.247.74.250]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id p0BHDcf07264; Tue, 11 Jan 2011 11:13:38 -0600 (CST) Received: by senorita (Postfix, from userid 1000) id A159FC1F5; Tue, 11 Jan 2011 11:13:38 -0600 (CST) From: Nishanth Menon To: l-o Cc: l-a , Kevin , Tony , Koen Kooi , Aaro , Nishanth Menon Subject: [PATCH v5 1/3] omap3: beaglexm: fix EHCI power up GPIO dir Date: Tue, 11 Jan 2011 11:13:35 -0600 Message-Id: <1294766017-12182-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <[PATCH v4 0/3] OMAP3: beaglexm: GPIO fixes> References: <[PATCH v4 0/3] OMAP3: beaglexm: GPIO fixes> 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]); Tue, 11 Jan 2011 17:13:51 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 6c12760..af1166b 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -297,9 +297,15 @@ static int beagle_twl_gpio_setup(struct device *dev, gpio_request(gpio + 1, "EHCI_nOC"); gpio_direction_input(gpio + 1); - /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, active low) */ + /* + * TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, XM active + * high / others active low) + */ gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR"); - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); + if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1); + else + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1;