MTD NAND Driver Programming Interface | ||
---|---|---|
<<< Previous | Next >>> |
MTD device structure
NAND chip structure
startpage inside the chip, must be called with (page & this->pagemask)
number of pages to verify
out of band data buffer
out of band selecttion structre
number of the current chip
1 = full buffer verify, 0 = ecc only
The NAND device assumes that it is always writing to a cleanly erased page. Hence, it performs its internal write verification only on bits that transitioned from 1 to 0. The device does NOT verify the whole page on a byte by byte basis. It is possible that the page was not completely erased or the page is becoming unusable due to wear. The read with ECC would catch the error later when the ECC page check fails, but we would rather catch it early in the page write stage. Better to write no data than invalid data.
<<< Previous | Home | Next >>> |
nand_write_page | Up | nand_read |