diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index a7595680d8..e37ea54278 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -122,12 +122,23 @@ struct nand_ecc_req { #define NAND_ECCREQ(str, stp) { .strength = (str), .step_size = (stp) } +/* nand_bbt option */ +#define NANDDEV_BBT_USE_FLASH BIT(0) +#define NANDDEV_BBT_SCANNED BIT(1) + +/* The maximum number of blocks to scan for a bbt */ +#define NANDDEV_BBT_SCAN_MAXBLOCKS 4 + /** * struct nand_bbt - bad block table object * @cache: in memory BBT cache + * @option: the option of BBT + * @version: current memory BBT cache version */ struct nand_bbt { unsigned long *cache; + unsigned int option; + unsigned int version; }; struct nand_device;