From patchwork Tue Aug 3 11:56:12 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: 116733 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o73BuTTr009958 for ; Tue, 3 Aug 2010 11:56:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756083Ab0HCL41 (ORCPT ); Tue, 3 Aug 2010 07:56:27 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:39296 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016Ab0HCL4Y (ORCPT ); Tue, 3 Aug 2010 07:56:24 -0400 Received: by mail-ww0-f44.google.com with SMTP id 40so5028695wwj.1 for ; Tue, 03 Aug 2010 04:56:23 -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=ZHPxtKVjextSYXhsea9VvUu8dShLOeQEY6IOrPpvFY4=; b=mGrPzYZFP8WUbxUis+zZpIhjiINyKRE6gcM13ikvz3ApF9FPlsBSK1fQh+4WH2POoh cskNUBGra3C+NFKozqbRCCn2xngh8GL3bN1H11gxYcIVWHSIpRlZ4USWqKwgMWFek+iA mWfrZwRHn8Vui281Z7Yka6vWuPnUSscl+dB9k= 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=L9chouluwQOgl21eAPPipUmKYBxruuFROvr2GLuJ1Pya8Z1njqcSYipwudisN8+R0J ukIyTypLlvN6SDvxZTGtGG5ggtcagLICHoACvrlQeIo9iXimOFSMoKnHsNrBvA50tXlQ jOIw1/vuNFQ45ZObzJuNm0AZnmWb3283UPg9Q= Received: by 10.216.188.135 with SMTP id a7mr663631wen.39.1280836583507; Tue, 03 Aug 2010 04:56:23 -0700 (PDT) Received: from localhost.localdomain ([81.35.234.198]) by mx.google.com with ESMTPS id e8sm3485720wej.46.2010.08.03.04.56.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Aug 2010 04:56:23 -0700 (PDT) From: Enric Balletbo i Serra To: linux-omap@vger.kernel.org Cc: Enric Balletbo i Serra , Enric Balletbo i Serra Subject: [PATCH 2/4] omap3: configure GPIO's for external VBUS power switch and overcurrent detect on IGEP v2 board. Date: Tue, 3 Aug 2010 13:56:12 +0200 Message-Id: <1280836574-32467-3-git-send-email-eballetbo@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1280836574-32467-1-git-send-email-eballetbo@gmail.com> References: <1280836574-32467-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 (demeter.kernel.org [140.211.167.41]); Tue, 03 Aug 2010 11:56:30 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 6b5f9c8..d88fc08 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -285,6 +285,16 @@ 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, "GPIO_USB_CPEN"); + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); + return 0; };