DataFlash

Andrew Victor andrew at sanpeople.com
Fri Jul 25 10:44:59 EDT 2003


hi,

The attached patch adds support for Atmel DataFlash devices.
(http://www.atmel.com/products/DataFlash/)
DataFlash differs from standard NOR flash in that the page sizes are 528
or 1056 bytes (depending on capacity).  [And no, it's not NAND flash]

Since the page-size is no longer always a power-of-two, the patch just
replaces all occurrences in that code where the erasesize and
sector_size are used as bitmasks.

Also, in fs/jffs2/scan.c, the EMPTY_SCAN_SIZE was a constant of 1024. 
Since this could be larger than the sector size of the DataFlash, this
is now basically set to MIN(sector_size, 1024).

There are also some places in fs/jffs2/wbuf.c where the the sector size
is also used as a bitmask, but I assume that code is only used for JFFS2
on NAND?


So far it seems to work without any problems.  Are there any JFFS2
stress-testing utilities?

(Patch is against the latest version in CVS)


Regards,
  Andrew Victor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dataflash.patch
Type: text/x-patch
Size: 3752 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20030725/efae8fbd/attachment.bin 


More information about the linux-mtd mailing list