From patchwork Mon Feb 17 12:26:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Durga Prasad Paladugu X-Patchwork-Id: 320949 X-Patchwork-Delegate: albert.aribaud@free.fr 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 989D62C00BB for ; Mon, 17 Feb 2014 23:27:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F9F44B64C; Mon, 17 Feb 2014 13:27:49 +0100 (CET) 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 YLAqQRCm741P; Mon, 17 Feb 2014 13:27:48 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 155D24B64A; Mon, 17 Feb 2014 13:27:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE0174B636 for ; Mon, 17 Feb 2014 13:27:04 +0100 (CET) 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 a6qm+q1eS9uz for ; Mon, 17 Feb 2014 13:27:01 +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 co9outboundpool.messaging.microsoft.com (co9ehsobe004.messaging.microsoft.com [207.46.163.27]) by theia.denx.de (Postfix) with ESMTPS id 7E96E4B623 for ; Mon, 17 Feb 2014 13:26:53 +0100 (CET) Received: from mail183-co9-R.bigfish.com (10.236.132.239) by CO9EHSOBE006.bigfish.com (10.236.130.69) with Microsoft SMTP Server id 14.1.225.22; Mon, 17 Feb 2014 12:26:50 +0000 Received: from mail183-co9 (localhost [127.0.0.1]) by mail183-co9-R.bigfish.com (Postfix) with ESMTP id D438E180293 for ; Mon, 17 Feb 2014 12:26:50 +0000 (UTC) X-Forefront-Antispam-Report: CIP:149.199.60.83; KIP:(null); UIP:(null); IPV:NLI; H:xsj-gw1; RD:unknown-60-83.xilinx.com; EFVD:NLI X-SpamScore: 1 X-BigFish: VPS1(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275bh1de097hz2fh95h839hc61hd24hf0ah119dh1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14ddh1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ah224fh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1e23h1fe8h1ff5h2218h2216h226dh24afh2327h2336h2438h2461h2487h24d7h2516h2545h255eh906i1155h) Received-SPF: pass (mail183-co9: domain of xilinx.com designates 149.199.60.83 as permitted sender) client-ip=149.199.60.83; envelope-from=siva.durga.paladugu@xilinx.com; helo=xsj-gw1 ; helo=xsj-gw1 ; Received: from mail183-co9 (localhost.localdomain [127.0.0.1]) by mail183-co9 (MessageSwitch) id 1392640008134063_18811; Mon, 17 Feb 2014 12:26:48 +0000 (UTC) Received: from CO9EHSMHS025.bigfish.com (unknown [10.236.132.233]) by mail183-co9.bigfish.com (Postfix) with ESMTP id 1C1C23C004D for ; Mon, 17 Feb 2014 12:26:48 +0000 (UTC) Received: from xsj-gw1 (149.199.60.83) by CO9EHSMHS025.bigfish.com (10.236.130.35) with Microsoft SMTP Server id 14.16.227.3; Mon, 17 Feb 2014 12:26:46 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1WFNHa-0000eU-MR for u-boot@lists.denx.de; Mon, 17 Feb 2014 04:26:46 -0800 From: Siva Durga Prasad Paladugu To: Date: Mon, 17 Feb 2014 17:56:26 +0530 X-Mailer: git-send-email 1.7.4 In-Reply-To: <1392639991-18798-1-git-send-email-sivadur@xilinx.com> References: <1392639991-18798-1-git-send-email-sivadur@xilinx.com> X-RCIS-Action: ALLOW MIME-Version: 1.0 Message-ID: <66f038a3-a998-4358-add5-5d409abbada2@CO9EHSMHS025.ehs.local> X-OriginatorOrg: xilinx.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Cc: michals@xilinx.com, jaganna@xilinx.com, Siva Durga Prasad Paladugu Subject: [U-Boot] [PATCH v3 2/7] zynq-common: Define CONFIG_NAND_ZYNQ 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 From: Jagannadha Sutradharudu Teki Defined CONFIG_NAND_ZYNQ for enabling zynq nand controller with onfi detection support. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Jagannadha Sutradharudu Teki --- Changes for v3: -Separated out the nand patch series as per Michal comment. Changes for v2: -None --- include/configs/zynq-common.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index e7a8e9f..08adaa2 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -91,6 +91,16 @@ # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE #endif +/* NAND */ +#ifdef CONFIG_NAND_ZYNQ +# define CONFIG_CMD_NAND +# define CONFIG_CMD_NAND_LOCK_UNLOCK +# define CONFIG_SYS_MAX_NAND_DEVICE 1 +# define CONFIG_SYS_NAND_SELF_INIT +# define CONFIG_SYS_NAND_ONFI_DETECTION +# define CONFIG_MTD_DEVICE +#endif + /* MMC */ #if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1) # define CONFIG_MMC