mtd/include/mtd mtd-abi.h,1.9,1.10

Andrew Victor pavlov at infradead.org
Wed Feb 9 04:17:45 EST 2005


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

Modified Files:
	mtd-abi.h 
Log Message:
Adds support for JFFS2-on-Dataflash devices.

For Dataflash, can_mark_obsolete = false and the NAND write buffering
code (wbuf.c) is used.

Since the DataFlash chip will automatically erase pages when writing,
the cleanmarkers are not needed - so cleanmarker_oob = false and
cleanmarker_size = 0

DataFlash page-sizes are not a power of two (they're multiples of 528
bytes).  The SECTOR_ADDR macro (added in the previous core patch) is
replaced with a (slower) div/mod version if CONFIG_JFFS2_FS_DATAFLASH is
selected.


Signed-off-by: Andrew Victor <andrew at sanpeople.com>



Index: mtd-abi.h
===================================================================
RCS file: /home/cvs/mtd/include/mtd/mtd-abi.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- mtd-abi.h	8 Feb 2005 17:45:52 -0000	1.9
+++ mtd-abi.h	9 Feb 2005 09:17:42 -0000	1.10
@@ -29,6 +29,7 @@
 #define MTD_NORFLASH		3
 #define MTD_NANDFLASH		4
 #define MTD_PEROM		5
+#define MTD_DATAFLASH		6
 #define MTD_OTHER		14
 #define MTD_UNKNOWN		15
 





More information about the linux-mtd-cvs mailing list