From patchwork Tue Jul 31 06:21:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 174153 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 91BCF2C0090 for ; Tue, 31 Jul 2012 16:22:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 702AE280AF; Tue, 31 Jul 2012 08:22:15 +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 m4lUD8n0aEdH; Tue, 31 Jul 2012 08:22:15 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D4ED4280A8; Tue, 31 Jul 2012 08:22:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 40F4A280A0 for ; Tue, 31 Jul 2012 08:22:02 +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 9iFIHtyDglZ0 for ; Tue, 31 Jul 2012 08:22:01 +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.126.171]) by theia.denx.de (Postfix) with ESMTP id CE6C12809F for ; Tue, 31 Jul 2012 08:22:01 +0200 (CEST) Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LwEDC-1Trr2X15OY-0186G9; Tue, 31 Jul 2012 08:21:59 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id C84952A282E8; Tue, 31 Jul 2012 08:21:58 +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 zL8F4+BUzI8y; Tue, 31 Jul 2012 08:21:57 +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 D59E62A28306; Tue, 31 Jul 2012 08:21:57 +0200 (CEST) From: Thierry Reding To: Tom Warren Date: Tue, 31 Jul 2012 08:21:56 +0200 Message-Id: <1343715716-4482-2-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1343715716-4482-1-git-send-email-thierry.reding@avionic-design.de> References: <1343715716-4482-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:liu7QbSzhfEtFXnhVhzyeuaYb9zVWIvxO3tedXZ/axU CU1TFqcbYBwCy72bx2pRYrhjzAvfeIZu6raLhXjZ2EdC+lrFVO mVvRwzSNUmYsZYmG8mDNZb/Mis5h2LtEvY9i6Mwl8NCFF/XOp2 gvojCDRkPZfqSVG5lo1owtnTyejDs9y+bNIgjw7vHv0u+DRI9q IqzidfIgObRQoO1DmBNGJmc/+PJpeEpilQbt24bnpI9ocgIda5 WpMzgknJV79G6bl1Chnci3paTnpjP+4UrfbfqiXa57weGyDt34 +JmWUlBqMeinzBwhlfp5Ajbz+HJd3ouMj4mWvgMmSUJ6sNmbCu KCN5Uux8m+KRPNG1piI7In6B5t1todtl5bAlGjb3DrPROUh+DV 87Ak5qZ/ljSaQ0iVbwzIWE6EG1Us9SoCSJwEbuZcTV2dFsIlsh Sfale Cc: u-boot@lists.denx.de, Stephen Warren Subject: [U-Boot] [PATCH 2/2] tegra: Enable NAND on TEC 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 This commit enables NAND support on the Tamonten Evaluation Carrier and adds the corresponding device tree nodes. Furthermore, the U-Boot environment can now be stored in NAND. Signed-off-by: Thierry Reding --- board/avionic-design/dts/tegra20-tec.dts | 11 +++++++++++ include/configs/tec.h | 12 ++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/board/avionic-design/dts/tegra20-tec.dts b/board/avionic-design/dts/tegra20-tec.dts index 9faebd8..bb3851b 100644 --- a/board/avionic-design/dts/tegra20-tec.dts +++ b/board/avionic-design/dts/tegra20-tec.dts @@ -55,4 +55,15 @@ usb@c5004000 { status = "disabled"; }; + + nand-controller@70008000 { + nvidia,wp-gpios = <&gpio 23 0>; /* PC7 */ + nvidia,width = <8>; + nvidia,timing = <26 100 20 80 20 10 12 10 70>; + + nand@0 { + reg = <0>; + compatible = "hynix,hy27uf4g2b", "nand-flash"; + }; + }; }; diff --git a/include/configs/tec.h b/include/configs/tec.h index 9b3f88d..54fcd41 100644 --- a/include/configs/tec.h +++ b/include/configs/tec.h @@ -45,14 +45,22 @@ #define CONFIG_BOARD_EARLY_INIT_F -#define CONFIG_ENV_IS_NOWHERE - /* SD/MMC */ #define CONFIG_MMC #define CONFIG_GENERIC_MMC #define CONFIG_TEGRA_MMC #define CONFIG_CMD_MMC +/* NAND support */ +#define CONFIG_CMD_NAND +#define CONFIG_TEGRA_NAND +#define CONFIG_SYS_MAX_NAND_DEVICE 1 +#define CONFIG_SYS_NAND_BASE TEGRA20_NAND_BASE + +/* Environment not stored */ +#define CONFIG_ENV_IS_IN_NAND +#define CONFIG_ENV_OFFSET (SZ_512M - SZ_128K) /* 128K sector size */ + /* USB host support */ #define CONFIG_USB_EHCI #define CONFIG_USB_EHCI_TEGRA