hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
u-boot/drivers/mtd/nand/spi/hyf.c
....@@ -106,7 +106,7 @@
106106 if (section > 3)
107107 return -ERANGE;
108108
109
- region->offset = 16 * section;
109
+ region->offset = 32 * section;
110110 region->length = 8;
111111
112112 return 0;
....@@ -199,6 +199,26 @@
199199 SPINAND_HAS_QE_BIT,
200200 SPINAND_ECCINFO(&hyf2gq4uaacae_ooblayout,
201201 hyf1gq4udacae_ecc_get_status)),
202
+ SPINAND_INFO("HYF2GQ4IAACAE",
203
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0x82),
204
+ NAND_MEMORG(1, 2048, 128, 64, 2048, 1, 1, 1),
205
+ NAND_ECCREQ(14, 512),
206
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
207
+ &write_cache_variants,
208
+ &update_cache_variants),
209
+ SPINAND_HAS_QE_BIT,
210
+ SPINAND_ECCINFO(&hyf2gq4uaacae_ooblayout,
211
+ hyf1gq4udacae_ecc_get_status)),
212
+ SPINAND_INFO("HYF1GQ4IDACAE",
213
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0x81),
214
+ NAND_MEMORG(1, 2048, 64, 64, 1024, 1, 1, 1),
215
+ NAND_ECCREQ(4, 512),
216
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
217
+ &write_cache_variants,
218
+ &update_cache_variants),
219
+ SPINAND_HAS_QE_BIT,
220
+ SPINAND_ECCINFO(&hyf1gq4udacae_ooblayout,
221
+ hyf1gq4udacae_ecc_get_status)),
202222 };
203223
204224 static const struct spinand_manufacturer_ops hyf_spinand_manuf_ops = {