stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: spinand: macronix: Add support for serial NAND flash
@ 2023-06-08  5:43 Jaime Liao
  2023-06-12 10:05 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jaime Liao @ 2023-06-08  5:43 UTC (permalink / raw)
  To: gregkh, sashal, miquel.raynal, richard, stable
  Cc: alvinzhou, juliensu, liangyanyu13, JaimeLiao

From: JaimeLiao <jaimeliao.tw@gmail.com>

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.

Signed-off-by: JaimeLiao <jaimeliao.tw@gmail.com>
---
 drivers/mtd/nand/spi/macronix.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c
index 21def3f8fb36..bbb1d68bce4a 100644
--- a/drivers/mtd/nand/spi/macronix.c
+++ b/drivers/mtd/nand/spi/macronix.c
@@ -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)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: spinand: macronix: Add support for serial NAND flash
  2023-06-08  5:43 [PATCH] mtd: spinand: macronix: Add support for serial NAND flash Jaime Liao
@ 2023-06-12 10:05 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2023-06-12 10:05 UTC (permalink / raw)
  To: Jaime Liao
  Cc: sashal, miquel.raynal, richard, stable, alvinzhou, juliensu,
	liangyanyu13

On Thu, Jun 08, 2023 at 01:43:50PM +0800, Jaime Liao wrote:
> From: JaimeLiao <jaimeliao.tw@gmail.com>
> 
> 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.
> 
> Signed-off-by: JaimeLiao <jaimeliao.tw@gmail.com>
> ---
>  drivers/mtd/nand/spi/macronix.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)

Now queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-12 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-08  5:43 [PATCH] mtd: spinand: macronix: Add support for serial NAND flash Jaime Liao
2023-06-12 10:05 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).