Add block refreshing feature
[yaffs2.git] / direct / yaffscfg2k.c
index 7731ade5bfdbabdcfbed1c087a1d6e2451c4e874..3c0341c5cd35bad700cceb4853367292f0399ef1 100644 (file)
@@ -182,6 +182,7 @@ int yaffs_StartUp(void)
        flashDev.param.isYaffs2 = 1;
        flashDev.param.useNANDECC=1;
        flashDev.param.wideTnodesDisabled=0;
+       flashDev.param.refreshPeriod = 10000;
        flashDev.param.nShortOpCaches = 10; // Use caches
        flashDev.context = (void *) 2;  // Used to identify the device in fstat.
        flashDev.param.writeChunkWithTagsToNAND = yflash2_WriteChunkWithTagsToNAND;