9
0
Fork 0

atmel_nand: add on_flash_btt option to enable bbt option

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-03-30 06:58:44 +02:00 committed by Sascha Hauer
parent 42e119b915
commit b5b7ae246d
1 changed files with 6 additions and 0 deletions

View File

@ -407,6 +407,12 @@ static int __init atmel_nand_probe(struct device_d *dev)
}
}
if (host->board->on_flash_bbt) {
printk(KERN_INFO "atmel_nand: Use On Flash BBT\n");
nand_chip->options |= NAND_USE_FLASH_BBT;
}
/* first scan to find the device and get the page size */
if (nand_scan_ident(mtd, 1)) {
res = -ENXIO;