/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2007 Aleph One Ltd.
+ * Copyright (C) 2002-2010 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
// Define locking semaphore.
}
-// Configuration for:
-// /ram 2MB ramdisk
-// /boot 2MB boot disk (flash)
-// /flash 14MB flash disk (flash)
-// NB Though /boot and /flash occupy the same physical device they
-// are still disticnt "yaffs_Devices. You may think of these as "partitions"
-// using non-overlapping areas in the same device.
-//
+// Configuration
#include "yaffs_ramdisk.h"
#include "yaffs_flashif.h"
#include "yaffs_nandemul2k.h"
static yaffs_Device ram1Dev;
-static yaffs_Device nand2;
static yaffs_Device flashDev;
static yaffs_Device ram2kDev;
static yaffs_Device m18_1Dev;
{ "/M18-1", &m18_1Dev},
{ "/yaffs2", &flashDev},
{ "/ram2k", &ram2kDev},
- {(void *)0,(void *)0} /* Null entry to terminate list */
+ { NULL, NULL } /* Null entry to terminate list */
};
m18_1Dev.param.deinitialiseNAND = ynorif1_DeinitialiseNAND;
- // /yaffs2
- // Set this puppy up to use
- // the file emulation space as
+ // /yaffs2 yaffs2 file emulation
// 2kpage/64chunk per block
//
memset(&flashDev,0,sizeof(flashDev));
flashDev.param.isYaffs2 = 1;
flashDev.param.useNANDECC=1;
flashDev.param.wideTnodesDisabled=0;
+ flashDev.param.refreshPeriod = 1000;
flashDev.param.nShortOpCaches = 10; // Use caches
flashDev.context = (void *) 2; // Used to identify the device in fstat.
flashDev.param.writeChunkWithTagsToNAND = yflash2_WriteChunkWithTagsToNAND;
flashDev.param.initialiseNAND = yflash2_InitialiseNAND;
flashDev.param.markNANDBlockBad = yflash2_MarkNANDBlockBad;
flashDev.param.queryNANDBlock = yflash2_QueryNANDBlock;
+ flashDev.param.enableXattr = 1;
yaffs_initialise(yaffsfs_config);