summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-03-30 06:58:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-02 10:31:23 +0200
commitb5b7ae246d538365019e19399365809e49c0790c (patch)
tree743a14681ffce682cef376d869884ea1f81e8487 /drivers
parent42e119b9153d049b1460033604eac3f7712ecef2 (diff)
downloadbarebox-b5b7ae246d538365019e19399365809e49c0790c.tar.gz
barebox-b5b7ae246d538365019e19399365809e49c0790c.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/atmel_nand.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 0533759235..96624a1c98 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -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;