blob: 426d67475bcc8ce35ac9e8ce2c5eff543af86911 [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From 5a4cd6ba8f7ae6744ca44f78c761f26e843c0341 Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:12 +0800
4Subject: [PATCH]
5 [spi-and-storage][999-2322-mtd-spinand-micron-Add-M70A-series-Micron-SPI-NAND-devices.patch]
developer41370d52022-03-16 16:01:59 +08006
developer41370d52022-03-16 16:01:59 +08007---
8 drivers/mtd/nand/spi/micron.c | 22 ++++++++++++++++++++++
9 1 file changed, 22 insertions(+)
10
11diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c
developer5d148cb2023-06-02 13:08:11 +080012index 956f7710a..d6fd63008 100644
developer41370d52022-03-16 16:01:59 +080013--- a/drivers/mtd/nand/spi/micron.c
14+++ b/drivers/mtd/nand/spi/micron.c
15@@ -137,6 +137,28 @@ static const struct spinand_info micron_spinand_table[] = {
16 0,
17 SPINAND_ECCINFO(&micron_8_ooblayout,
18 micron_8_ecc_get_status)),
19+ /* M70A 4Gb 3.3V */
20+ SPINAND_INFO("MT29F4G01ABAFD",
21+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x34),
22+ NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
23+ NAND_ECCREQ(8, 512),
24+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
25+ &write_cache_variants,
26+ &update_cache_variants),
27+ SPINAND_HAS_CR_FEAT_BIT,
28+ SPINAND_ECCINFO(&micron_8_ooblayout,
29+ micron_8_ecc_get_status)),
30+ /* M70A 4Gb 1.8V */
31+ SPINAND_INFO("MT29F4G01ABBFD",
32+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35),
33+ NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
34+ NAND_ECCREQ(8, 512),
35+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
36+ &write_cache_variants,
37+ &update_cache_variants),
38+ SPINAND_HAS_CR_FEAT_BIT,
39+ SPINAND_ECCINFO(&micron_8_ooblayout,
40+ micron_8_ecc_get_status)),
41 };
42
43 static int micron_spinand_init(struct spinand_device *spinand)
developer5d148cb2023-06-02 13:08:11 +080044--
452.34.1
46