diff options
| -rw-r--r-- | arch/arm/mach-davinci/include/mach/nand.h | 4 | ||||
| -rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/nand.h b/arch/arm/mach-davinci/include/mach/nand.h index b520c4b5678a..b2ad8090bd10 100644 --- a/arch/arm/mach-davinci/include/mach/nand.h +++ b/arch/arm/mach-davinci/include/mach/nand.h | |||
| @@ -79,6 +79,10 @@ struct davinci_nand_pdata { /* platform_data */ | |||
| 79 | 79 | ||
| 80 | /* e.g. NAND_BUSWIDTH_16 or NAND_USE_FLASH_BBT */ | 80 | /* e.g. NAND_BUSWIDTH_16 or NAND_USE_FLASH_BBT */ |
| 81 | unsigned options; | 81 | unsigned options; |
| 82 | |||
| 83 | /* Main and mirror bbt descriptor overrides */ | ||
| 84 | struct nand_bbt_descr *bbt_td; | ||
| 85 | struct nand_bbt_descr *bbt_md; | ||
| 82 | }; | 86 | }; |
| 83 | 87 | ||
| 84 | #endif /* __ARCH_ARM_DAVINCI_NAND_H */ | 88 | #endif /* __ARCH_ARM_DAVINCI_NAND_H */ |
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 | ||
