mt29f nand driver: actually use remapped bad blocks in read/write operations.
[bertos.git] / bertos / cpu / cortex-m3 / drv / mt29f_sam3.h
index 3a8a9abe68cd7dbedebe164af8cca92b54f0333d..969496a97805991ef6d15fec9fefdd13893ff353 100644 (file)
@@ -46,6 +46,7 @@
 #define MT29F_SPARE_SIZE        0x40        // 64 B
 #define MT29F_PAGE_SIZE         (MT29F_DATA_SIZE + MT29F_SPARE_SIZE)
 #define MT29F_PAGES_PER_BLOCK   64
+#define MT29F_BLOCK_SIZE        (MT29F_DATA_SIZE * MT29F_PAGES_PER_BLOCK)
 #define MT29F_NUM_BLOCKS        2048
 #define MT29F_ECC_NWORDS        (MT29F_DATA_SIZE / 256)
 #define MT29F_REMAP_TAG_OFFSET  0x38