1 From 573eec222bc82fb5e724586267fbbb1aed9ffd03 Mon Sep 17 00:00:00 2001
2 From: Chuanhong Guo <gch981213@gmail.com>
3 Date: Sun, 20 Mar 2022 17:59:58 +0800
4 Subject: [PATCH 2/5] mtd: spinand: gigadevice: add support for GD5FxGQ4xExxG
10 These chips differ from GD5F1GQ4UExxG only in chip ID, voltage
13 Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
14 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
15 Link: https://lore.kernel.org/linux-mtd/20220320100001.247905-3-gch981213@gmail.com
17 drivers/mtd/nand/spi/gigadevice.c | 30 ++++++++++++++++++++++++++++++
18 1 file changed, 30 insertions(+)
20 diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c
21 index da77ab20296e..85a61d3d8467 100644
22 --- a/drivers/mtd/nand/spi/gigadevice.c
23 +++ b/drivers/mtd/nand/spi/gigadevice.c
24 @@ -333,6 +333,36 @@ static const struct spinand_info gigadevice_spinand_table[] = {
26 SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
27 gd5fxgq4uexxg_ecc_get_status)),
28 + SPINAND_INFO("GD5F1GQ4RExxG",
29 + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xc1),
30 + NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
31 + NAND_ECCREQ(8, 512),
32 + SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
33 + &write_cache_variants,
34 + &update_cache_variants),
36 + SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
37 + gd5fxgq4uexxg_ecc_get_status)),
38 + SPINAND_INFO("GD5F2GQ4UExxG",
39 + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xd2),
40 + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
41 + NAND_ECCREQ(8, 512),
42 + SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
43 + &write_cache_variants,
44 + &update_cache_variants),
46 + SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
47 + gd5fxgq4uexxg_ecc_get_status)),
48 + SPINAND_INFO("GD5F2GQ4RExxG",
49 + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xc2),
50 + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
51 + NAND_ECCREQ(8, 512),
52 + SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
53 + &write_cache_variants,
54 + &update_cache_variants),
56 + SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
57 + gd5fxgq4uexxg_ecc_get_status)),
58 SPINAND_INFO("GD5F1GQ4UFxxG",
59 SPINAND_ID(SPINAND_READID_METHOD_OPCODE, 0xb1, 0x48),
60 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),