* Add hook to NAND erase and implement nand_wait function.
[oweals/u-boot.git] / include / nand.h
index 6dbaa4240276b3c64515c5f3e29b7e8f1c205431..349034772370572ddb65c50ac2bcf660c69c1868 100644 (file)
@@ -50,7 +50,14 @@ static inline int nand_block_isbad(nand_info_t *info, ulong ofs)
 
 static inline int nand_erase(nand_info_t *info, ulong off, ulong size)
 {
-       return 0; /* FIXME */
+       struct erase_info instr;
+
+       instr.mtd = info;
+       instr.addr = off;
+       instr.len = size;
+       instr.callback = 0;
+
+       return info->erase(info, &instr);
 }
 
 #endif