0,
(NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+ {"Dosilicon NAND FMND1GXXX3D 3.3V 1Gb",
+ {NAND_MFR_DOSILICON, 0xf1, 0x80, 0x95},
+ 2048,
+ 128,
+ 0x20000,
+ 64,
+ 1,
+ 20,
+ 15,
+ 0,
+ 0,
+ (NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+
+ {"Dosilicon NAND FMND1GXXX3D 1.8V 1Gb",
+ {NAND_MFR_DOSILICON, 0xa1, 0x80, 0x15},
+ 2048,
+ 128,
+ 0x20000,
+ 64,
+ 1,
+ 30,
+ 15,
+ 0,
+ 0,
+ (NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+
+ {"Dosilicon NAND FMND2GXXX3D 3.3V 2Gb",
+ {NAND_MFR_DOSILICON, 0xda, 0x90, 0x95, 0x46},
+ 2048,
+ 256,
+ 0x20000,
+ 64,
+ 1,
+ 20,
+ 15,
+ 0,
+ 0,
+ (NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+
+ {"Dosilicon NAND FMND2GXXX3D 1.8V 2Gb",
+ {NAND_MFR_DOSILICON, 0xaa, 0x90, 0x15, 0x46},
+ 2048,
+ 256,
+ 0x20000,
+ 64,
+ 1,
+ 30,
+ 15,
+ 0,
+ 0,
+ (NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+
+ {"ATO NAND AFND1G08U3 1Gb",
+ {NAND_MFR_ATO, 0xf1, 0x00, 0x1d},
+ 2048,
+ 128,
+ 0x20000,
+ 64,
+ 1,
+ 20,
+ 15,
+ 0,
+ 0,
+ (NAND_TIMING_MODE5 | NAND_ECC_BCH8_MODE)},
+
{"A revision NAND 1GiB sF1G-A",
{NAND_MFR_AMD, 0xf1, 0x80, 0x1d, 0x01, 0xf1},
2048,
}
}
+ if (aml_chip->mfr_type == NAND_MFR_DOSILICON ||
+ aml_chip->mfr_type == NAND_MFR_ATO) {
+ if (col0_oob != 0xFF) {
+ pr_info("factory Bad blk:%llx blk=%d chip=%d\n",
+ (uint64_t)addr, start_blk, i);
+ aml_chip->nand_bbt_info->nand_bbt[bad_blk_cnt++] =
+ start_blk|0x8000;
+ aml_chip->block_status[start_blk] = NAND_FACTORY_BAD;
+ break;
+ }
+ }
+
if (aml_chip->mfr_type == 0xef) {
if (col0_oob != 0xFF) {
pr_info("factory Bad blk:%llx blk=%d chip=%d\n",