mtd: Add bad block table overrides to Davinci NAND driver
authorMark A. Greer <mgreer@mvista.com>
Mon, 12 Oct 2009 23:16:37 +0000 (16:16 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 11:31:09 +0000 (11:31 +0000)
commitf611a79fe9859a30f2a7ae94b4d24f8e2dd75c91
treee142b034525cfd2bb1df734eab417c0e62014152
parent837479d25e221ba616de2c734f58e1decd8cdb95
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>
arch/arm/mach-davinci/include/mach/nand.h
drivers/mtd/nand/davinci_nand.c