|
@@ -1211,29 +1211,6 @@ static const struct mtd_ooblayout_ops denali_ooblayout_ops = {
|
|
|
.free = denali_ooblayout_free,
|
|
|
};
|
|
|
|
|
|
-static uint8_t bbt_pattern[] = {'B', 'b', 't', '0' };
|
|
|
-static uint8_t mirror_pattern[] = {'1', 't', 'b', 'B' };
|
|
|
-
|
|
|
-static struct nand_bbt_descr bbt_main_descr = {
|
|
|
- .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
|
|
|
- | NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP,
|
|
|
- .offs = 8,
|
|
|
- .len = 4,
|
|
|
- .veroffs = 12,
|
|
|
- .maxblocks = 4,
|
|
|
- .pattern = bbt_pattern,
|
|
|
-};
|
|
|
-
|
|
|
-static struct nand_bbt_descr bbt_mirror_descr = {
|
|
|
- .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
|
|
|
- | NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP,
|
|
|
- .offs = 8,
|
|
|
- .len = 4,
|
|
|
- .veroffs = 12,
|
|
|
- .maxblocks = 4,
|
|
|
- .pattern = mirror_pattern,
|
|
|
-};
|
|
|
-
|
|
|
/* initialize driver data structures */
|
|
|
static void denali_drv_init(struct denali_nand_info *denali)
|
|
|
{
|
|
@@ -1378,13 +1355,9 @@ int denali_init(struct denali_nand_info *denali)
|
|
|
* bad block management.
|
|
|
*/
|
|
|
|
|
|
- /* Bad block management */
|
|
|
- chip->bbt_td = &bbt_main_descr;
|
|
|
- chip->bbt_md = &bbt_mirror_descr;
|
|
|
-
|
|
|
- /* skip the scan for now until we have OOB read and write support */
|
|
|
chip->bbt_options |= NAND_BBT_USE_FLASH;
|
|
|
- chip->options |= NAND_SKIP_BBTSCAN;
|
|
|
+ chip->bbt_options |= NAND_BBT_NO_OOB;
|
|
|
+
|
|
|
chip->ecc.mode = NAND_ECC_HW_SYNDROME;
|
|
|
|
|
|
/* no subpage writes on denali */
|