diff options
author | Mark A. Greer <mgreer@mvista.com> | 2009-10-12 19:16:37 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 06:31:09 -0500 |
commit | f611a79fe9859a30f2a7ae94b4d24f8e2dd75c91 (patch) | |
tree | e142b034525cfd2bb1df734eab417c0e62014152 /drivers/mtd | |
parent | 837479d25e221ba616de2c734f58e1decd8cdb95 (diff) |
mtd: Add bad block table overrides to Davinci NAND driver
The existing NAND infrastructure allows the default main and
mirror bad block tables to be overridden in nand_default_bbt().
However, the davinci_nand driver does not support this. Add
that support by adding fields to the davinci driver's platform
data so platform code can pass in their own bbt's and make the
davinci_nand driver honor them.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
CC: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 68cc9247fdb0..fe3eba87de40 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c | |||
@@ -591,6 +591,8 @@ static int __init nand_davinci_probe(struct platform_device *pdev) | |||
591 | 591 | ||
592 | /* options such as NAND_USE_FLASH_BBT or 16-bit widths */ | 592 | /* options such as NAND_USE_FLASH_BBT or 16-bit widths */ |
593 | info->chip.options = pdata->options; | 593 | info->chip.options = pdata->options; |
594 | info->chip.bbt_td = pdata->bbt_td; | ||
595 | info->chip.bbt_md = pdata->bbt_md; | ||
594 | 596 | ||
595 | info->ioaddr = (uint32_t __force) vaddr; | 597 | info->ioaddr = (uint32_t __force) vaddr; |
596 | 598 | ||