hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/mtd/nand/spi/dosilicon.c
....@@ -9,7 +9,7 @@
99
1010 #define SPINAND_MFR_DOSILICON 0xE5
1111
12
-#define DOSICON_STATUS_ECC_MASK GENMASK(7, 4)
12
+#define DOSICON_STATUS_ECC_MASK GENMASK(6, 4)
1313 #define DOSICON_STATUS_ECC_NO_BITFLIPS (0 << 4)
1414 #define DOSICON_STATUS_ECC_1TO3_BITFLIPS (1 << 4)
1515 #define DOSICON_STATUS_ECC_4TO6_BITFLIPS (3 << 4)
....@@ -213,6 +213,15 @@
213213 SPINAND_HAS_QE_BIT,
214214 SPINAND_ECCINFO(&ds35xxgb_ooblayout,
215215 ds35xxgb_ecc_get_status)),
216
+ SPINAND_INFO("DS35Q1GD-IB",
217
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x51),
218
+ NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
219
+ NAND_ECCREQ(8, 512),
220
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
221
+ &write_cache_variants,
222
+ &update_cache_variants),
223
+ SPINAND_HAS_QE_BIT,
224
+ SPINAND_ECCINFO(&ds35xxgb_ooblayout, ds35xxgb_ecc_get_status)),
216225 };
217226
218227 static const struct spinand_manufacturer_ops dosilicon_spinand_manuf_ops = {