mtd/fs Config.in,1.4,1.5 Kconfig,1.12,1.13

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


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

Modified Files:
	Config.in Kconfig 
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: Config.in
===================================================================
RCS file: /home/cvs/mtd/fs/Config.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Config.in	25 May 2004 11:31:47 -0000	1.4
+++ Config.in	9 Feb 2005 09:17:40 -0000	1.5
@@ -7,6 +7,7 @@
 if [ "$CONFIG_JFFS2_FS" = "y" -o "$CONFIG_JFFS2_FS" = "m" ] ; then
    int 'JFFS2 debugging verbosity (0 = quiet, 2 = noisy)' CONFIG_JFFS2_FS_DEBUG 0
    bool 'JFFS2 support for NAND chips' CONFIG_JFFS2_FS_NAND
+   bool 'JFFS2 support for DataFlash' CONFIG_JFFS2_FS_DATAFLASH
    bool 'JFFS2 ZLIB compression support (recommended)' CONFIG_JFFS2_ZLIB
    bool 'JFFS2 RTIME compression support (recommended)' CONFIG_JFFS2_RTIME
    bool 'JFFS2 RUBIN compression support' CONFIG_JFFS2_RUBIN

Index: Kconfig
===================================================================
RCS file: /home/cvs/mtd/fs/Kconfig,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Kconfig	21 Jan 2005 10:55:40 -0000	1.12
+++ Kconfig	9 Feb 2005 09:17:40 -0000	1.13
@@ -77,6 +77,13 @@
 		 ECC for JFFS2.  This type of flash chip is not common, however it is
 		 available from STMicro.
 
+config JFFS2_FS_DATAFLASH
+	bool "JFFS2 support for DataFlash (EXPERIMENTAL)"
+	depends on JFFS2_FS && EXPERIMENTAL
+	default n
+	help
+	  This enables the experimental support for JFFS2 on DataFlash devices.
+
 config JFFS2_COMPRESSION_OPTIONS
 	bool "Advanced compression options for JFFS2"
 	default n





More information about the linux-mtd-cvs mailing list