mtd/drivers/mtd/nand Config.in,1.8,1.9 autcpu12.c,1.4,1.5 nand.c,1.29,1.30

gleixner at infradead.org gleixner at infradead.org
Thu Aug 29 17:44:17 EDT 2002


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv16478

Modified Files:
	Config.in autcpu12.c nand.c 
Log Message:
speed improvement, support for different filesystems

Index: Config.in
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/Config.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Config.in	30 Apr 2002 09:34:16 -0000	1.8
+++ Config.in	29 Aug 2002 21:44:14 -0000	1.9
@@ -10,9 +10,6 @@
 if [ "$CONFIG_MTD_NAND" = "y" -o "$CONFIG_MTD_NAND" = "m" ]; then
    bool '    Enable ECC correction algorithm'  CONFIG_MTD_NAND_ECC
    bool '    Verify NAND page writes' CONFIG_MTD_NAND_VERIFY_WRITE
-   if [ "$CONFIG_JFFS2_FS" = "y" -o "$CONFIG_JFFS2_FS" = "m" ]; then
-   	bool '    Use JFFS2 layout for OOB area' CONFIG_MTD_NAND_ECC_JFFS2
-   fi
 fi
 
 if [ "$CONFIG_ARM" = "y" -a "$CONFIG_ARCH_P720T" = "y" ]; then

Index: autcpu12.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/autcpu12.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- autcpu12.c	9 Jul 2002 16:23:27 -0000	1.4
+++ autcpu12.c	29 Aug 2002 21:44:14 -0000	1.5
@@ -168,6 +168,7 @@
 	this->dev_ready = autcpu12_device_ready;
 	/* 20 us command delay time */
 	this->chip_delay = 20;		
+	this->eccmode = NAND_ECC_SOFT;
 
 	/* Scan to find existance of the device */
 	if (nand_scan (autcpu12_mtd)) {

Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- nand.c	17 Aug 2002 07:52:49 -0000	1.29
+++ nand.c	29 Aug 2002 21:44:14 -0000	1.30
@@ -80,6 +80,26 @@
  *  08-17-2002	tglx: fixed signed/unsigned missmatch in write.c
  *		Thanks to Ken Offer <koffer at arlut.utexas.edu> 	
  *
+ *  08-29-2002  tglx: use buffered read/write only for non pagealigned 
+ *		access, speed up the aligned path by using the fs-buffer
+ *		reset chip removed from nand_select(), implicit done
+ *		only, when erase is interrupted
+ *		waitfuntion use yield, instead of schedule_timeout
+ *		support for 6byte/512byte hardware ECC
+ *		read_ecc, write_ecc extended for different oob-layout
+ *		selections: Implemented NAND_NONE_OOB, NAND_JFFS2_OOB,
[...1131 lines suppressed...]
-	oob_config.eccvalid_pos = NAND_NOOB_ECCVPOS;
-#endif
 
 	/* Print warning message for no device */
 	if (!mtd->size) {
@@ -1338,6 +1379,7 @@
 	mtd->write_oob = nand_write_oob;
 	mtd->readv = NULL;
 	mtd->writev = nand_writev;
+	mtd->writev_ecc = nand_writev_ecc;
 	mtd->sync = nand_sync;
 	mtd->lock = NULL;
 	mtd->unlock = NULL;
@@ -1351,5 +1393,5 @@
 EXPORT_SYMBOL (nand_scan);
 
 MODULE_LICENSE ("GPL");
-MODULE_AUTHOR ("Steven J. Hill <sjhill at cotw.com");
+MODULE_AUTHOR ("Steven J. Hill <sjhill at cotw.com>, Thomas Gleixner <tglx at linutronix.de>");
 MODULE_DESCRIPTION ("Generic NAND flash driver code");





More information about the linux-mtd-cvs mailing list