blob: be3a3b197a675d2fe4ae5067c9ad6d3da5aed745 [file] [log] [blame]
developer41370d52022-03-16 16:01:59 +08001From a15335a17f4abf48ed9739c3b119232f9392cb60 Mon Sep 17 00:00:00 2001
2From: Shivamurthy Shastri <sshivamurthy@micron.com>
3Date: Wed, 11 Mar 2020 18:57:32 +0100
4Subject: [PATCH] mtd: spinand: micron: Add new Micron SPI NAND devices
5
6Add device table for M79A and M78A series Micron SPI NAND devices.
7
8Signed-off-by: Shivamurthy Shastri <sshivamurthy@micron.com>
9Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
10Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
11Link: https://lore.kernel.org/linux-mtd/20200311175735.2007-4-sshivamurthy@micron.com
12---
13 drivers/mtd/nand/spi/micron.c | 33 +++++++++++++++++++++++++++++++++
14 1 file changed, 33 insertions(+)
15
16diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c
17index 4727933c894bc8..26925714a9fbac 100644
18--- a/drivers/mtd/nand/spi/micron.c
19+++ b/drivers/mtd/nand/spi/micron.c
20@@ -102,6 +102,39 @@ static const struct spinand_info micron_spinand_table[] = {
21 0,
22 SPINAND_ECCINFO(&micron_8_ooblayout,
23 micron_8_ecc_get_status)),
24+ /* M79A 2Gb 1.8V */
25+ SPINAND_INFO("MT29F2G01ABBGD",
26+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x25),
27+ NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
28+ NAND_ECCREQ(8, 512),
29+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
30+ &write_cache_variants,
31+ &update_cache_variants),
32+ 0,
33+ SPINAND_ECCINFO(&micron_8_ooblayout,
34+ micron_8_ecc_get_status)),
35+ /* M78A 1Gb 3.3V */
36+ SPINAND_INFO("MT29F1G01ABAFD",
37+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14),
38+ NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
39+ NAND_ECCREQ(8, 512),
40+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
41+ &write_cache_variants,
42+ &update_cache_variants),
43+ 0,
44+ SPINAND_ECCINFO(&micron_8_ooblayout,
45+ micron_8_ecc_get_status)),
46+ /* M78A 1Gb 1.8V */
47+ SPINAND_INFO("MT29F1G01ABAFD",
48+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x15),
49+ NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
50+ NAND_ECCREQ(8, 512),
51+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
52+ &write_cache_variants,
53+ &update_cache_variants),
54+ 0,
55+ SPINAND_ECCINFO(&micron_8_ooblayout,
56+ micron_8_ecc_get_status)),
57 };
58
59 static const struct spinand_manufacturer_ops micron_spinand_manuf_ops = {