[generic] create a memory based bad block table
int nand_memory_bbt(struct mtd_info * mtd, struct nand_bbt_descr * bd);
mtd
MTD device structure
bd
descriptor for the good/bad block search pattern
The function creates a memory based bbt by scanning the device for manufacturer / software marked good / bad blocks.
Thomas Gleixner <[email protected]>
Author.