diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-10-01 15:37:37 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-24 19:54:37 -0400 |
commit | 453281a973c10bce941b240d1c654d536623b16b (patch) | |
tree | 3646851ff197fcbf64e796a6bdf4324bd77f8544 /drivers/mtd | |
parent | 7cba7b14fe179969d7217cca52e28519d7d6ca89 (diff) |
mtd: nand: introduce NAND_CREATE_EMPTY_BBT
it will create an empty BBT table without considering vendor's BBT
information. Vendor's information may be unavailable if the NAND
controller has a different DATA & OOB layout or this information may be
allready purged.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nand_bbt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 1dcafb8f47dd..586b981f0e61 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c | |||
@@ -999,7 +999,8 @@ static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_desc | |||
999 | continue; | 999 | continue; |
1000 | 1000 | ||
1001 | /* Create the table in memory by scanning the chip(s) */ | 1001 | /* Create the table in memory by scanning the chip(s) */ |
1002 | create_bbt(mtd, buf, bd, chipsel); | 1002 | if (!(this->options & NAND_CREATE_EMPTY_BBT)) |
1003 | create_bbt(mtd, buf, bd, chipsel); | ||
1003 | 1004 | ||
1004 | td->version[i] = 1; | 1005 | td->version[i] = 1; |
1005 | if (md) | 1006 | if (md) |