blob: 5c5af5617f728eec460db7dd1ce35ab0e37c81c7 [file] [log] [blame]
developerc1160862022-05-19 19:37:04 +08001--- a/drivers/mtd/nand/spi/gigadevice.c
2+++ b/drivers/mtd/nand/spi/gigadevice.c
3@@ -379,7 +379,7 @@ static const struct spinand_info gigadev
4 SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x31),
5 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
6 NAND_ECCREQ(4, 512),
7- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
8+ SPINAND_INFO_OP_VARIANTS(&dummy2_read_cache_variants,
9 &write_cache_variants,
10 &update_cache_variants),
11 SPINAND_HAS_QE_BIT,
12@@ -389,17 +389,17 @@ static const struct spinand_info gigadev
13 SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x32),
14 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
15 NAND_ECCREQ(4, 512),
16- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
17+ SPINAND_INFO_OP_VARIANTS(&dummy4_read_cache_variants,
18 &write_cache_variants,
19 &update_cache_variants),
20 SPINAND_HAS_QE_BIT,
21 SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
22 gd5fxgq5xexxg_ecc_get_status)),
23 SPINAND_INFO("GD5F4GQ6UExxH",
24- SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x32),
25+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35),
26 NAND_MEMORG(1, 2048, 64, 64, 4096, 80, 1, 1, 1),
27 NAND_ECCREQ(4, 512),
28- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
29+ SPINAND_INFO_OP_VARIANTS(&dummy4_read_cache_variants,
30 &write_cache_variants,
31 &update_cache_variants),
32 SPINAND_HAS_QE_BIT,