From patchwork Wed Feb 2 15:11:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: michael X-Patchwork-Id: 81462 X-Patchwork-Delegate: info@emk-elektronik.de 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 57BD4B7103 for ; Thu, 3 Feb 2011 02:11:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3EBE02829C; Wed, 2 Feb 2011 16:11: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 kKjLjPxYU4z4; Wed, 2 Feb 2011 16:11:49 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D76AC28256; Wed, 2 Feb 2011 16:11:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3432428256 for ; Wed, 2 Feb 2011 16:11:45 +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 BehSGC+mzVXZ for ; Wed, 2 Feb 2011 16:11:43 +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 panicking.kicks-ass.org (panicking.kicks-ass.org [95.141.38.207]) by theia.denx.de (Postfix) with ESMTPS id 06F5928255 for ; Wed, 2 Feb 2011 16:11:41 +0100 (CET) Received: from host76-108-static.29-87-b.business.telecomitalia.it ([87.29.108.76] helo=[192.168.10.180]) by panicking.kicks-ass.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PkeMo-0001Qa-1r; Wed, 02 Feb 2011 15:11:34 +0000 Message-ID: <4D497421.1010603@gandalf.sssup.it> Date: Wed, 02 Feb 2011 16:11:29 +0100 From: Michael Trimarchi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: u-boot users Cc: tom@bumblecow.com Subject: [U-Boot] [PATCH] atmel nand patch CE don't care NAND X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Hi, this patch fix the support for CE don't care nand Michael Trimarchi commit 0cb23ef858407a7a9de6e353e08394637c518c89 Author: Michael Trimarchi Date: Wed Feb 2 14:24:21 2011 +0100 Fix the CE for the NAND don't care Signed-off-by: Michael Trimarchi diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index ab8bbb3..bda117a 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -249,8 +249,13 @@ static void at91_nand_hwcontrol(struct mtd_info *mtd, if (ctrl & NAND_ALE) IO_ADDR_W |= CONFIG_SYS_NAND_MASK_ALE; + /* + * Nand CS don't care doesn't need the enable pin + */ +#ifdef CONFIG_SYS_NAND_ENABLE_PIN at91_set_gpio_value(CONFIG_SYS_NAND_ENABLE_PIN, !(ctrl & NAND_NCE)); +#endif this->IO_ADDR_W = (void *) IO_ADDR_W; }