Skip to content

Commit a15335a

Browse files
shivamurthyshastrimiquelraynal
authored andcommitted
mtd: spinand: micron: Add new Micron SPI NAND devices
Add device table for M79A and M78A series Micron SPI NAND devices. Signed-off-by: Shivamurthy Shastri <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 8511a3a commit a15335a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

drivers/mtd/nand/spi/micron.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,39 @@ static const struct spinand_info micron_spinand_table[] = {
102102
0,
103103
SPINAND_ECCINFO(&micron_8_ooblayout,
104104
micron_8_ecc_get_status)),
105+
/* M79A 2Gb 1.8V */
106+
SPINAND_INFO("MT29F2G01ABBGD",
107+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x25),
108+
NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
109+
NAND_ECCREQ(8, 512),
110+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
111+
&write_cache_variants,
112+
&update_cache_variants),
113+
0,
114+
SPINAND_ECCINFO(&micron_8_ooblayout,
115+
micron_8_ecc_get_status)),
116+
/* M78A 1Gb 3.3V */
117+
SPINAND_INFO("MT29F1G01ABAFD",
118+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14),
119+
NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
120+
NAND_ECCREQ(8, 512),
121+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
122+
&write_cache_variants,
123+
&update_cache_variants),
124+
0,
125+
SPINAND_ECCINFO(&micron_8_ooblayout,
126+
micron_8_ecc_get_status)),
127+
/* M78A 1Gb 1.8V */
128+
SPINAND_INFO("MT29F1G01ABAFD",
129+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x15),
130+
NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
131+
NAND_ECCREQ(8, 512),
132+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
133+
&write_cache_variants,
134+
&update_cache_variants),
135+
0,
136+
SPINAND_ECCINFO(&micron_8_ooblayout,
137+
micron_8_ecc_get_status)),
105138
};
106139

107140
static const struct spinand_manufacturer_ops micron_spinand_manuf_ops = {

0 commit comments

Comments
 (0)