Skip to content

Commit

Permalink
mtd/atmel_nand: add on_flash_bbt to enable the use of On Flash BBT
Browse files Browse the repository at this point in the history
This will allow to enable it from the board.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD committed Mar 15, 2012
1 parent bf4289c commit 3dcb7ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/atmel_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
}
}

if (on_flash_bbt) {
if (host->board->on_flash_bbt || on_flash_bbt) {
printk(KERN_INFO "atmel_nand: Use On Flash BBT\n");
nand_chip->bbt_options |= NAND_BBT_USE_FLASH;
}
Expand Down
1 change: 1 addition & 0 deletions include/linux/platform_data/atmel.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ struct atmel_nand_data {
u8 cle; /* address line number connected to CLE */
u8 bus_width_16; /* buswidth is 16 bit */
u8 ecc_mode; /* ecc mode */
u8 on_flash_bbt; /* bbt on flash */
struct mtd_partition *parts;
unsigned int num_parts;
};
Expand Down

0 comments on commit 3dcb7ea

Please sign in to comment.