blob: 4c5e91181ee6b6edc5d7b74406bf6d7b968510bc [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From 66ea40f7c5b196eee609c5e3322aac3a7ac59e03 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-2320-mtd-spinand-micron-Add-new-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 | 33 +++++++++++++++++++++++++++++++++
9 1 file changed, 33 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 4727933c8..26925714a 100644
developer41370d52022-03-16 16:01:59 +080013--- a/drivers/mtd/nand/spi/micron.c
14+++ b/drivers/mtd/nand/spi/micron.c
15@@ -102,6 +102,39 @@ static const struct spinand_info micron_spinand_table[] = {
16 0,
17 SPINAND_ECCINFO(&micron_8_ooblayout,
18 micron_8_ecc_get_status)),
19+ /* M79A 2Gb 1.8V */
20+ SPINAND_INFO("MT29F2G01ABBGD",
21+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x25),
22+ NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
23+ NAND_ECCREQ(8, 512),
24+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
25+ &write_cache_variants,
26+ &update_cache_variants),
27+ 0,
28+ SPINAND_ECCINFO(&micron_8_ooblayout,
29+ micron_8_ecc_get_status)),
30+ /* M78A 1Gb 3.3V */
31+ SPINAND_INFO("MT29F1G01ABAFD",
32+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14),
33+ NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 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+ 0,
39+ SPINAND_ECCINFO(&micron_8_ooblayout,
40+ micron_8_ecc_get_status)),
41+ /* M78A 1Gb 1.8V */
42+ SPINAND_INFO("MT29F1G01ABAFD",
43+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x15),
44+ NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
45+ NAND_ECCREQ(8, 512),
46+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
47+ &write_cache_variants,
48+ &update_cache_variants),
49+ 0,
50+ SPINAND_ECCINFO(&micron_8_ooblayout,
51+ micron_8_ecc_get_status)),
52 };
53
54 static const struct spinand_manufacturer_ops micron_spinand_manuf_ops = {
developer5d148cb2023-06-02 13:08:11 +080055--
562.34.1
57