Skip to contentSkip to conversation

mtd: spinand: macronix: Add support for serial NAND flash

PATCH In review Jaime Liao 2 participants 2 messages Jun 8, 2023 – Jun 12, 2023

Subsystems (3)
lore
Share & tools
lore

Jaime Liao

author
#0 lore raw

PATCH 1/1 mtd: spinand: macronix: Add support for serial NAND flash

From: JaimeLiao <[email protected]>

MX35LFxGE4AD have been merge into Linux kernel mainline

Commit ID : 5ece78de88739b4c68263e9f2582380c1fd8314f

For SPI-NAND flash support on Linux kernel LTS v5.4.y

Add SPI-NAND flash MX35LF2GE4AD and MX35LF4GE4AD in id tables.

Those two flase have been validate on Xilinx zynq-picozed board and

Linux kernel LTS v5.4.242.

---
 drivers/mtd/nand/spi/macronix.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/mtd/nand/spi/macronix.c +16 -0
index 21def3f8fb36..bbb1d68bce4a 100644
@@ -116,6 +116,22 @@ static const struct spinand_info macronix_spinand_table[] = {
 					      &update_cache_variants),
 		     SPINAND_HAS_QE_BIT,
 		     SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout, NULL)),
+	SPINAND_INFO("MX35LF2GE4AD", 0x26,
+		     NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
+		     NAND_ECCREQ(8, 512),
+		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
+					      &write_cache_variants,
+					      &update_cache_variants),
+		     SPINAND_HAS_QE_BIT,
+		     SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout, NULL)),
+	SPINAND_INFO("MX35LF4GE4AD", 0x37,
+		     NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
+		     NAND_ECCREQ(8, 512),
+		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
+					      &write_cache_variants,
+					      &update_cache_variants),
+		     SPINAND_HAS_QE_BIT,
+		     SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout, NULL)),
 };
 
 static int macronix_spinand_detect(struct spinand_device *spinand)
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 10 lines · Jaime Liao

From: JaimeLiao <[email protected]>

MX35LFxGE4AD have been merge into Linux kernel mainline

Commit ID : 5ece78de88739b4c68263e9f2582380c1fd8314f

For SPI-NAND flash support on Linux kernel LTS v5.4.y

Add SPI-NAND flash MX35LF2GE4AD and MX35LF4GE4AD in id tables.

Quoted 8 lines

Those two flase have been validate on Xilinx zynq-picozed board and

Linux kernel LTS v5.4.242.

---
 drivers/mtd/nand/spi/macronix.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Now queued up, thanks.

greg k-h