From patchwork Fri Oct 1 19:45:48 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: 224722 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 o91JkAFG010931 for ; Fri, 1 Oct 2010 19:46:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751214Ab0JATqJ (ORCPT ); Fri, 1 Oct 2010 15:46:09 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:46567 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093Ab0JATqH (ORCPT ); Fri, 1 Oct 2010 15:46:07 -0400 Received: by wwj40 with SMTP id 40so1814964wwj.1 for ; Fri, 01 Oct 2010 12:46:06 -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=OHTYCthrgsmWkT6mZ39FWYlQvgYq7QHbNIE43zfXTP0=; b=QagaQIHhmZGOkGXsZpzKYha7vL31aSGgMKmsTMPPz4X+iMg7gFNVHyGfZTKL5TLP1Z GZZyMGcY9oZVZ1NWYW5oCJRK/pq3A489qhbkUvOgx2kQaV7w1QPZDLZ4jjgVlhUwcEmC /EJYUKupQ6L1G/pKhnS5s8nMN/r8TbMi7jX6Q= 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=m67UnH+Mwau0yOSy6j1bqptgXTMCKHdGy5tY5YORVIeiTjATj0OV55eDfgMxOMwLOB 0dSlubv+GNKB9JH5R5/nJNElgTi7FIpQdlAvTdaU3USpSkXDr9JWm1nvBujbSH+JLlUM H7h67gqgIl5WfR3FTSVjCHWp/tCFyXAZxzU4Q= Received: by 10.216.28.77 with SMTP id f55mr2507993wea.91.1285962364570; Fri, 01 Oct 2010 12:46:04 -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 k46sm1057733weq.10.2010.10.01.12.46.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 01 Oct 2010 12:46:03 -0700 (PDT) From: Enric Balletbo i Serra To: linux-omap@vger.kernel.org Cc: Enric Balletbo i Serra Subject: [PATCHv2 1/6] omap3: Add external VBUS power switch and overcurrent detect on IGEP v2 board. Date: Fri, 1 Oct 2010 21:45:48 +0200 Message-Id: <1285962353-9586-2-git-send-email-eballetbo@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1285962353-9586-1-git-send-email-eballetbo@gmail.com> References: <1285962353-9586-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]); Fri, 01 Oct 2010 19:46:11 +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; };