fsl_elbc_nand: implement support for flash-based BBT
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 27 Jun 2008 19:04:13 +0000 (23:04 +0400)
committerScott Wood <scottwood@freescale.com>
Fri, 12 Sep 2008 19:57:20 +0000 (14:57 -0500)
commit8f42bf1c393d53a70c2545e9f329d11c46d74794
tree9ddb5b8fc3a156c6b356acaf52d40bdf40a06a3f
parent97ae023648e764f794ffb9c52da109d6caf09c47
fsl_elbc_nand: implement support for flash-based BBT

This patch implements support for flash-based BBT for chips working
through ELBC NAND controller, so that NAND core will not have to re-scan
for bad blocks on every boot.

Because ELBC controller may provide HW-generated ECCs we should adjust
bbt pattern and bbt version positions in the OOB free area.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/fsl_elbc_nand.c