|
@@ -344,7 +344,7 @@ static int nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip)
|
|
|
struct nand_chip *chip = mtd->priv;
|
|
|
u16 bad;
|
|
|
|
|
|
- if (chip->options & NAND_BBT_SCANLASTPAGE)
|
|
|
+ if (chip->bbt_options & NAND_BBT_SCANLASTPAGE)
|
|
|
ofs += mtd->erasesize - mtd->writesize;
|
|
|
|
|
|
page = (int)(ofs >> chip->page_shift) & chip->pagemask;
|
|
@@ -396,7 +396,7 @@ static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
|
|
|
uint8_t buf[2] = { 0, 0 };
|
|
|
int block, ret, i = 0;
|
|
|
|
|
|
- if (chip->options & NAND_BBT_SCANLASTPAGE)
|
|
|
+ if (chip->bbt_options & NAND_BBT_SCANLASTPAGE)
|
|
|
ofs += mtd->erasesize - mtd->writesize;
|
|
|
|
|
|
/* Get block number */
|
|
@@ -426,7 +426,7 @@ static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
|
|
|
|
|
|
i++;
|
|
|
ofs += mtd->writesize;
|
|
|
- } while (!ret && (chip->options & NAND_BBT_SCAN2NDPAGE) &&
|
|
|
+ } while (!ret && (chip->bbt_options & NAND_BBT_SCAN2NDPAGE) &&
|
|
|
i < 2);
|
|
|
|
|
|
nand_release_device(mtd);
|
|
@@ -3117,7 +3117,7 @@ ident_done:
|
|
|
if ((chip->cellinfo & NAND_CI_CELLTYPE_MSK) &&
|
|
|
(*maf_id == NAND_MFR_SAMSUNG ||
|
|
|
*maf_id == NAND_MFR_HYNIX))
|
|
|
- chip->options |= NAND_BBT_SCANLASTPAGE;
|
|
|
+ chip->bbt_options |= NAND_BBT_SCANLASTPAGE;
|
|
|
else if ((!(chip->cellinfo & NAND_CI_CELLTYPE_MSK) &&
|
|
|
(*maf_id == NAND_MFR_SAMSUNG ||
|
|
|
*maf_id == NAND_MFR_HYNIX ||
|
|
@@ -3125,7 +3125,7 @@ ident_done:
|
|
|
*maf_id == NAND_MFR_AMD)) ||
|
|
|
(mtd->writesize == 2048 &&
|
|
|
*maf_id == NAND_MFR_MICRON))
|
|
|
- chip->options |= NAND_BBT_SCAN2NDPAGE;
|
|
|
+ chip->bbt_options |= NAND_BBT_SCAN2NDPAGE;
|
|
|
|
|
|
/* Check for AND chips with 4 page planes */
|
|
|
if (chip->options & NAND_4PAGE_ARRAY)
|