From patchwork Fri Mar 27 00:31:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 455249 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 F0CF214015A for ; Fri, 27 Mar 2015 11:32:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 08C1FA7431; Fri, 27 Mar 2015 01:32:30 +0100 (CET) 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 iSXKaMlgttLa; Fri, 27 Mar 2015 01:32:30 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 13FEEA7428; Fri, 27 Mar 2015 01:32:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BA6BA7425 for ; Fri, 27 Mar 2015 01:32:27 +0100 (CET) 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 9B70AY95OkNe for ; Fri, 27 Mar 2015 01:32:27 +0100 (CET) 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.perfora.net (mout.perfora.net [74.208.4.194]) by theia.denx.de (Postfix) with ESMTPS id 2AA57A7420 for ; Fri, 27 Mar 2015 01:32:24 +0100 (CET) Received: from localhost.net ([85.5.121.234]) by mrelay.perfora.net (mreueus003) with ESMTPSA (Nemesis) id 0MNs0D-1YZwcI0v51-007VkE; Fri, 27 Mar 2015 01:32:13 +0100 From: Marcel Ziswiler To: u-boot@lists.denx.de Date: Fri, 27 Mar 2015 01:31:44 +0100 Message-Id: <8fafb368ce7e81a799ea2b05fcda5da28fede151.1427415542.git.marcel@ziswiler.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: References: X-Provags-ID: V03:K0:35qS2GiIGCordtoa9hHgQcEv1SCoiQFXAJXUr8L/zyypcXH5SCI YXDV39JpeQLVm2ap1Dkionbgyzh4R477WJbRrz5ssSYvg/8hzP9lCKVtPe5EL+Wm4VJjTp8 /EWUkiI4nZeTttL+iD6YtzPP4fIgoZpyezPlQRK12vvIpnaraIySOxEqEkV2w1APr7SNblP r8FL+i3cjfEIGRvyG+g7Q== X-UI-Out-Filterresults: notjunk:1; Cc: Stephen Warren , Tom Rini , Masahiro Yamada , Tom Warren , Marcel Ziswiler Subject: [U-Boot] [PATCH v2 1/2] tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Lucas Stach Even the 8-bit case needs KBCB configured, as pin D7 is located in this pingroup. Please note that pingroup ATC seems to come out of reset with its config set to NAND so one needs to explicitly configure some other function to this group in order to avoid clashing settings which is outside the scope of this patch. Signed-off-by: Lucas Stach Signed-off-by: Marcel Ziswiler Tested-by: Marcel Ziswiler --- changes in v2: - based on Stephen's feedback moved ATC pingroup clashing workaround into separate board specific patch arch/arm/mach-tegra/tegra20/funcmux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-tegra/tegra20/funcmux.c b/arch/arm/mach-tegra/tegra20/funcmux.c index 0df4a07..44a85c5 100644 --- a/arch/arm/mach-tegra/tegra20/funcmux.c +++ b/arch/arm/mach-tegra/tegra20/funcmux.c @@ -252,12 +252,14 @@ int funcmux_select(enum periph_id id, int config) break; case FUNCMUX_NDFLASH_KBC_8_BIT: pinmux_set_func(PMUX_PINGRP_KBCA, PMUX_FUNC_NAND); + pinmux_set_func(PMUX_PINGRP_KBCB, PMUX_FUNC_NAND); pinmux_set_func(PMUX_PINGRP_KBCC, PMUX_FUNC_NAND); pinmux_set_func(PMUX_PINGRP_KBCD, PMUX_FUNC_NAND); pinmux_set_func(PMUX_PINGRP_KBCE, PMUX_FUNC_NAND); pinmux_set_func(PMUX_PINGRP_KBCF, PMUX_FUNC_NAND); pinmux_tristate_disable(PMUX_PINGRP_KBCA); + pinmux_tristate_disable(PMUX_PINGRP_KBCB); pinmux_tristate_disable(PMUX_PINGRP_KBCC); pinmux_tristate_disable(PMUX_PINGRP_KBCD); pinmux_tristate_disable(PMUX_PINGRP_KBCE);