From patchwork Sat Sep 25 18:19:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo Serra X-Patchwork-Id: 209122 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 o8PIJJ5O031732 for ; Sat, 25 Sep 2010 18:19:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756098Ab0IYSTS (ORCPT ); Sat, 25 Sep 2010 14:19:18 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:42781 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448Ab0IYSTR (ORCPT ); Sat, 25 Sep 2010 14:19:17 -0400 Received: by wyb28 with SMTP id 28so2805411wyb.19 for ; Sat, 25 Sep 2010 11:19:15 -0700 (PDT) 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=WtwmQHDqRTuGdBvt++w6d4qHLoXOh1M4/ts0aDUhM0A=; b=woPA66LYbyEUxI4ZOYgVWHMVB/AaamzYDm3iJlRp89H80pWuEa0vW02IMEmlpvo1+x nn5eWnq0c+jOrFc8uSTZVzS0n+hGsBa1SK42EHHNOkSVsX10UJo9ktdwb5u3P33XV5Qc qChwAoTT0nvbTBlg3S+WvEHxNgb+6apAowenA= 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=p0ZfTnyC+CeI+XHMWnUqMWJNUB2959FXLyqpfVhugswjULse5doBaaY4sRkT8+LP1S T96eD1UQ53P83y0/LdNRDN1e4T94FP4iTY6k7roa1glaf+eKDnY9b1l/4DZnFnfR2r2b trKRvV+yKVdZz8wQyewWm72K7SYwOrua62PXo= Received: by 10.227.129.84 with SMTP id n20mr4419278wbs.61.1285438755819; Sat, 25 Sep 2010 11:19:15 -0700 (PDT) Received: from localhost.localdomain (192.Red-88-27-117.staticIP.rima-tde.net [88.27.117.192]) by mx.google.com with ESMTPS id w29sm2259049weq.42.2010.09.25.11.19.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 25 Sep 2010 11:19:15 -0700 (PDT) From: Enric Balletbo i Serra To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: Enric Balletbo i Serra Subject: [PATCH 1/6] omap3: Add GPIO's for external VBUS power switch and overcurrent detect on IGEP v2 board. Date: Sat, 25 Sep 2010 20:19:01 +0200 Message-Id: <1285438746-7311-2-git-send-email-eballetbo@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1285438746-7311-1-git-send-email-eballetbo@gmail.com> References: <1285438746-7311-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.3 (demeter1.kernel.org [140.211.167.41]); Sat, 25 Sep 2010 18:19:19 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 175f043..1052a63 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -274,6 +274,20 @@ static int igep2_twl_gpio_setup(struct device *dev, igep2_vmmc1_supply.dev = mmc[0].dev; igep2_vmmc2_supply.dev = mmc[1].dev; + /* + * REVISIT: need ehci-omap hooks for external VBUS + * power switch and overcurrent detect + */ + gpio_request(gpio + 1, "GPIO_EHCI_NOC"); + gpio_direction_input(gpio + 1); + + /* + * TWL4030_GPIO_MAX + 0 == ledA, GPIO_USBH_CPEN + * (out, active low) + */ + gpio_request(gpio + TWL4030_GPIO_MAX, 0); + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); + return 0; };