From patchwork Thu Oct 2 15:14:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alban Bedel X-Patchwork-Id: 395999 X-Patchwork-Delegate: twarren@nvidia.com 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 96577140188 for ; Fri, 3 Oct 2014 01:20:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D1CBA73ED; Thu, 2 Oct 2014 17:20:27 +0200 (CEST) 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 TH3CucO0NQPD; Thu, 2 Oct 2014 17:20:27 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8FEA8A73E7; Thu, 2 Oct 2014 17:20:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52D57A73E7 for ; Thu, 2 Oct 2014 17:20:22 +0200 (CEST) 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 hZwTLB3jwvmD for ; Thu, 2 Oct 2014 17:20:22 +0200 (CEST) X-Greylist: delayed 310 seconds by postgrey-1.32 at theia; Thu, 02 Oct 2014 17:20:17 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 mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by theia.denx.de (Postfix) with ESMTPS id 28148A73E5 for ; Thu, 2 Oct 2014 17:20:17 +0200 (CEST) Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0Mgw4G-1Xven32zh2-00M36C; Thu, 02 Oct 2014 17:15:05 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 1EF6A2A28266; Thu, 2 Oct 2014 17:15:05 +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 rq2tp2TJGLPM; Thu, 2 Oct 2014 17:15:04 +0200 (CEST) Received: from avionic-0020.adnet.avionic-design.de (avionic-0020.adnet.avionic-design.de [172.20.31.243]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 8360A2A2824C; Thu, 2 Oct 2014 17:15:04 +0200 (CEST) From: Alban Bedel To: u-boot@lists.denx.de Date: Thu, 2 Oct 2014 17:14:58 +0200 Message-Id: <1412262898-26349-1-git-send-email-alban.bedel@avionic-design.de> X-Mailer: git-send-email 2.1.1 X-Provags-ID: V02:K0:u/UiM4F/mv7W9AQVIV1Hh3Tbj4vZrGuUoTXOw4qIj3F LtdeUgujr7X8fJi/FLVXm38bMqZrxkfFwd2YORYRZzMOJyl08f lKdzET94gfXuIIk2TsMvts5MRBkhsOJd7N6IUFGPCAZQ+n9e1u 2cnYuOmx6T+eB/ztZHuDwfu4r3USymFv4MmyrZfp8nRKiFJGhZ bwMg0GpuZK80VCVyM0KJPKztV6SQ91Ykd0If3EqPVDAr8sNGi9 FQ9P9pd5+3wf2YMEBmFiL0+rAd7RnfHUMo6s8BHnZFMN4FLyLQ 2ypaX8EXSLEuiIqaJF7Pj73CA5qDquGNKCxq7p5uGlYAjEWqaE NNo7ks3KEs1YGkQGPKM46lY70HfLf7JBqr6Vjwct2vs9a7y7gc JLAjCfe4YEYZt1XNp9XpwJ2yzO/OOjdlwWOJo3qaXZm/pqXSnI kdltP X-UI-Out-Filterresults: notjunk:1; Cc: Alban Bedel , Stephen Warren , Tom Warren Subject: [U-Boot] [PATCH] tegra20: tamonten: Fix the early gpio init X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 To set gpio during the early init we now need to use tegra_spl_gpio_direction_output(), copied from seaboard. Change-Id: Id0aadb17a71b78e75e8c3f8de374102b3eab767b Signed-off-by: Alban Bedel --- board/avionic-design/common/tamonten.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c index 9c86779..ea2425a 100644 --- a/board/avionic-design/common/tamonten.c +++ b/board/avionic-design/common/tamonten.c @@ -23,8 +23,10 @@ #ifdef CONFIG_BOARD_EARLY_INIT_F void gpio_early_init(void) { +#ifndef CONFIG_SPL_BUILD gpio_request(GPIO_PI4, NULL); - gpio_direction_output(GPIO_PI4, 1); +#endif + tegra_spl_gpio_direction_output(GPIO_PI4, 1); } #endif