mtd/include/linux/mtd nand.h,1.76,1.77

Vitaly Wool vwool at ru.mvista.com
Fri Dec 16 10:41:35 EST 2005


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv5884/include/linux/mtd

Modified Files:
	nand.h 
Log Message:
[MTD] NAND: do not write the whole page in nand_write_oob by default

Added NAND_COMPLEX_OOB_WRITE option that specifies if a whole NAND page is 
to be written in nand_write_oob routine. This may be necessary for some HW 
ECC generators that need a whole page to be written to generate ECC properly.
This option is to be set by NAND chip driver. it's not set by default.
Accordingly, nand_write_oob was modified to not write the whole page is
NAND_COMPLEX_OOB_WRITE option is not set.
 


Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- nand.h	7 Nov 2005 11:14:55 -0000	1.76
+++ nand.h	16 Dec 2005 15:41:33 -0000	1.77
@@ -239,6 +239,10 @@
 #define NAND_HWECC_SYNDROME	0x00020000
 /* This option skips the bbt scan during initialization. */
 #define NAND_SKIP_BBTSCAN	0x00040000
+/* This option specifies that a whole NAND page is to be written in
+ * nand_write_oob. This is needed for some HW ECC generators that need a
+ * whole page to be written to generate ECC properly */
+#define NAND_COMPLEX_OOB_WRITE	0x00080000
 
 /* Options set by nand scan */
 /* Nand scan has allocated oob_buf */





More information about the linux-mtd-cvs mailing list