From patchwork Mon Apr 8 13:20:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eric Benard X-Patchwork-Id: 234771 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 4B9FD2C010E for ; Mon, 8 Apr 2013 23:20:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 630A34A36D; Mon, 8 Apr 2013 15:20:28 +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 eAFjWyzefjv1; Mon, 8 Apr 2013 15:20:27 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BB9814A366; Mon, 8 Apr 2013 15:20:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7EA7F4A366 for ; Mon, 8 Apr 2013 15:20:24 +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 uFLTFJTTnt4V for ; Mon, 8 Apr 2013 15:20:23 +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 smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by theia.denx.de (Postfix) with ESMTP id 46FC14A361 for ; Mon, 8 Apr 2013 15:20:21 +0200 (CEST) Received: from e6520eb.local.eukrea.com (unknown [82.240.38.71]) by smtp2-g21.free.fr (Postfix) with ESMTP id 804D14B00CE; Mon, 8 Apr 2013 15:20:17 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= To: u-boot@lists.denx.de Date: Mon, 8 Apr 2013 15:20:16 +0200 Message-Id: <1365427216-15220-1-git-send-email-eric@eukrea.com> X-Mailer: git-send-email 1.7.11.7 MIME-Version: 1.0 Cc: marex@denx.de, fabio.estevam@freescale.com Subject: [U-Boot] [PATCH] mx28evk: add NAND commands 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de the mx28evk has a socket which can contains a TSOP48 NAND flash. So enable the nand command and it's trimffs option. Tested on MX28EVK with NAND : NAND: 128 MiB MX28EVK U-Boot > nand info Device 0: nand0, sector size 16 KiB Page size 2048 b OOB size 64 b Erase size 16384 b and without NAND : NAND: No NAND device found!!! 0 MiB MX28EVK U-Boot > nand info MX28EVK U-Boot > Signed-off-by: Eric BĂ©nard --- include/configs/mx28evk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index 0d918a1..789d980 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -69,6 +69,8 @@ #define CONFIG_CMD_USB #define CONFIG_CMD_BOOTZ #define CONFIG_CMD_I2C +#define CONFIG_CMD_NAND +#define CONFIG_CMD_NAND_TRIMFFS /* * Memory configurations