Skip to content

Commit 1a50947

Browse files
JaimeLiaoTWmiquelraynal
authored andcommitted
mtd: spinand: macronix: Add support for serial NAND flash
MX31LF2GE4BC and MX31UF2GE4BC are Macroninx SPI NAND flash with 8-bit on-die ECC. Validated via normal(default) and QUAD mode by read ,read back, on Xilinx Zynq PicoZed FPGA which include Macronix SPI Host(drivers/spi/spi-mxic.c) Signed-off-by: JaimeLiao <jaimeliao.tw@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230608052114.20454-1-jaimeliao.tw@gmail.com
1 parent c17a90a commit 1a50947

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

drivers/mtd/nand/spi/macronix.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,26 @@ static const struct spinand_info macronix_spinand_table[] = {
299299
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout,
300300
mx35lf1ge4ab_ecc_get_status)),
301301

302+
SPINAND_INFO("MX31LF2GE4BC",
303+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x2e),
304+
NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
305+
NAND_ECCREQ(8, 512),
306+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
307+
&write_cache_variants,
308+
&update_cache_variants),
309+
SPINAND_HAS_QE_BIT,
310+
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout,
311+
mx35lf1ge4ab_ecc_get_status)),
312+
SPINAND_INFO("MX3UF2GE4BC",
313+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xae),
314+
NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
315+
NAND_ECCREQ(8, 512),
316+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
317+
&write_cache_variants,
318+
&update_cache_variants),
319+
SPINAND_HAS_QE_BIT,
320+
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout,
321+
mx35lf1ge4ab_ecc_get_status)),
302322
};
303323

304324
static const struct spinand_manufacturer_ops macronix_spinand_manuf_ops = {

0 commit comments

Comments
 (0)