From patchwork Tue Dec 7 12:40:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 382742 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 oB7Cewil027974 for ; Tue, 7 Dec 2010 12:40:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082Ab0LGMkv (ORCPT ); Tue, 7 Dec 2010 07:40:51 -0500 Received: from mail-ww0-f42.google.com ([74.125.82.42]:49087 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752806Ab0LGMku (ORCPT ); Tue, 7 Dec 2010 07:40:50 -0500 Received: by wwi17 with SMTP id 17so851364wwi.1 for ; Tue, 07 Dec 2010 04:40:49 -0800 (PST) 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; bh=tOlPPt8FNjiCK42Ff9v9dCXhBD4ofehYY7eJDj+9t28=; b=O/V2p69lQ0q2GNiwvtf4m8At7yoWN2pFntv6KNsJxZV7pq2IMVUncjljrwL9H0TZcd 1Z974MZywnYIcIp/BoWh8MeOG+GP4hzzG01MeAa88a35UIyGjTHaClnS4bR3V7gq2n9p m9TEZAYKHuBU0D1nWn0wgS4Ymzqn1ZjUt0tjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=n/rqZt21iipGB+wHR98w/MGLPsHY5NBkgZirPnmoGgK+QiFzoiltYLpk/NtefotHPZ YhIwxbHbp+C8/sEhJFuTDnnHnKN7GCfYU9f72ZHSFpkcgwnGnK4gun0aH7L0eIZO8ZiZ 85CuCkannGxeVSkS5NRSLUY/AQXjkwUbORiEo= Received: by 10.227.135.13 with SMTP id l13mr7287665wbt.91.1291725649125; Tue, 07 Dec 2010 04:40:49 -0800 (PST) Received: from localhost (ip545070eb.adsl-surfen.hetnet.nl [84.80.112.235]) by mx.google.com with ESMTPS id 7sm2913968wet.0.2010.12.07.04.40.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Dec 2010 04:40:47 -0800 (PST) From: Koen Kooi To: linux-omap@vger.kernel.org Cc: Koen Kooi , Koen Kooi Subject: [PATCH] ARM: OMAP: Power on EHCI, serial, camera and DVI on beagleboard-xM Date: Tue, 7 Dec 2010 13:40:39 +0100 Message-Id: <1291725639-86397-1-git-send-email-koen@beagleboard.org> X-Mailer: git-send-email 1.7.0 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]); Tue, 07 Dec 2010 12:40:58 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index f1a8ede..9c9bd96 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -297,12 +297,31 @@ 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); + + /* DVI reset GPIO is different between revisions */ + if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) + beagle_dvi_device.reset_gpio = 129; + else + beagle_dvi_device.reset_gpio = 170; + + /* Power on DVI, Serial and PWR led */ + if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) { + gpio_request(gpio + 1, "nDVI_PWR_EN"); + gpio_direction_output(gpio + 1, 0); + } - /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ - gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; + /* Power on camera interface on P7/P8 or DVI on A2 and beyond */ + if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) { + gpio_request(gpio + 2, "CAM_EN"); + gpio_direction_output(gpio + 2, 1); + } return 0; }