From owner-freebsd-embedded@FreeBSD.ORG Sun Mar 14 21:31:47 2010 Return-Path: Delivered-To: embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5581D106566B for ; Sun, 14 Mar 2010 21:31:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 9D39E8FC12 for ; Sun, 14 Mar 2010 21:31:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o2ELQRWh097843; Sun, 14 Mar 2010 15:26:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 14 Mar 2010 15:26:37 -0600 (MDT) Message-Id: <20100314.152637.124595402525766052.imp@bsdimp.com> To: loos.br@gmail.com From: "M. Warner Losh" In-Reply-To: References: <20100314.120453.737751539143972474.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gjb@semihalf.com, embedded@FreeBSD.org, andrew@fubar.geek.nz Subject: Re: NAND Flash Framework for review X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 21:31:47 -0000 In message: Luiz Otavio O Souza writes: : On Mar 14, 2010, at 3:04 PM, M. Warner Losh wrote: : : > Has anybody also looked at the work I did for serial flash parts on : > the at91rm9200? How does that compare with this effort here (other : > than I supported only one chip size)? Is that spi-connected memory : > NAND? : > : > Warner : : Warner, : : If i've picked the right driver on tree (dev/flash/at45d.c) and the right data sheet it is not NAND, it is DataFlash and looks like Atmel specific. : : The main difference here is that you don't need to worry about bad blocks on dataflash (the same as flash). Yes. That's the right driver. There are many similarities to NAND flash, but it is good to know they aren't the same. These parts also have the ability to either have the extra OOB or not, selectable via a one-time fuse. I'll monitor what's going on with the NAND drivers to see if there are opportunities to generalize... Warner