From patchwork Tue Jun 5 06:02:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 163014 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 07D00B6F6E for ; Tue, 5 Jun 2012 16:03:13 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE171280B4; Tue, 5 Jun 2012 08:03:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nUI44BFLFPt2; Tue, 5 Jun 2012 08:03:01 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F84B2808A; Tue, 5 Jun 2012 08:02:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B9D192807F for ; Tue, 5 Jun 2012 08:02:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AuCsJYf1c2wX for ; Tue, 5 Jun 2012 08:02:41 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by theia.denx.de (Postfix) with ESMTP id 1175928077 for ; Tue, 5 Jun 2012 08:02:39 +0200 (CEST) Received: from benhur.adnet.avionic-design.de (p548E0438.dip0.t-ipconnect.de [84.142.4.56]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0Li6Ex-1SFuYB0dnv-00nEdx; Tue, 05 Jun 2012 08:02:36 +0200 Received: from mailbox.adnet.avionic-design.de (add-virt-zarafa.adnet.avionic-design.de [172.20.129.9]) by benhur.adnet.avionic-design.de (Postfix) with ESMTP id 75F132C4123; Tue, 5 Jun 2012 08:02:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id A7E942A281E9; Tue, 5 Jun 2012 08:02:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yAqkzqi+LSHg; Tue, 5 Jun 2012 08:02:34 +0200 (CEST) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) (Authenticated sender: thierry.reding) by mailbox.adnet.avionic-design.de (Postfix) with ESMTPA id 3B0172A28232; Tue, 5 Jun 2012 08:02:33 +0200 (CEST) From: Thierry Reding To: u-boot@lists.denx.de Date: Tue, 5 Jun 2012 08:02:28 +0200 Message-Id: <1338876150-8170-5-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1338876150-8170-1-git-send-email-thierry.reding@avionic-design.de> References: <1338876150-8170-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:FTeV26dT5kojXPMFDgV6NPzzDFXC4ddEcorfLw9Jj6t ZMrAOq65Jdp7rPl0fKj53OVdujmOWCe9hiXrbt5Wz3MDx8x+L7 PffFQKjxljxa0798VHLA5/Fc3U3ZHXa76PyKdQKSkuPUVngEYb Zw4ITDlVrscafeq/gtCjOp0Iq+Qz1xGAIQgn0vMA6kDOCchanK OhtdJOSHfEz5qQD36sf3mOkb1LoQC1UEiLLtiaCoyZeiJCnsan 8Fr4M5Gn2WA3tNcY5YUQbWWAvan4Y6YvyS2W+3t5z44ySS8k5n V7IkYNCvF+suVTrfiT375J/KBbJoStLeG+mnNLNQL5rhl7TLOe 8sEVcIAAFFaWdJKdHlx0P1sdlgCViwUVBdsmPDMYRKZedEeJTW o3hEsmJr+xL1MSAQH9sc8GS0AUGmamQCV54JEwzkcgGyhI7ZfA GtEqc Cc: Tom Warren Subject: [U-Boot] [PATCH v3 5/7] tegra: Implement gpio_early_init() on Tamonten X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The PI4 GPIO is used on Tamonten to reset carrier board peripherals. Power sequencing hardware on the carrier pulls the reset low before powering up the Tegra, and the CPU is supposed to signal readiness, and therefore bring peripherals out of reset by pulling PI4 high. Signed-off-by: Thierry Reding Acked-by: Stephen Warren --- Changes in v3: - do not free PI4 GPIO after configuring it Changes in v2: - new patch required for TEC support board/avionic-design/common/tamonten.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c index d9ecd23..915247c 100644 --- a/board/avionic-design/common/tamonten.c +++ b/board/avionic-design/common/tamonten.c @@ -49,6 +49,14 @@ void gpio_config_uart(void) { } +#ifdef CONFIG_BOARD_EARLY_INIT_F +void gpio_early_init(void) +{ + gpio_request(GPIO_PI4, NULL); + gpio_direction_output(GPIO_PI4, 1); +} +#endif + #ifdef CONFIG_TEGRA2_MMC /* * Routine: pin_mux_mmc