public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add fixups for two-plane serial NAND flash
@ 2024-07-10  1:15 Cheng Ming Lin
  2024-07-10  1:15 ` [PATCH 1/3] include/linux/mtd/spinand.h: Add fixups for spinand Cheng Ming Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Cheng Ming Lin @ 2024-07-10  1:15 UTC (permalink / raw)
  To: miquel.raynal, vigneshr, linux-mtd, linux-kernel
  Cc: richard, alvinzhou, leoyu, Cheng Ming Lin

From: Cheng Ming Lin <chengminglin@mxic.com.tw>

Macronix serial NAND flash with a two-plane structure
requires insertion of Plane Select bit into the column
address during the write_to_cache operation.

Additionally, for MX35{U,F}2G14AC, insertion of Plane
Select bit into the column address is required during
the read_from_cache operation.

In spinand.h, add struct spi_nand_fixups as SPI NAND
fixup hooks.

In macronix.c, add fixup functions and update ID table.

In core.c, add an if statement to determine whether to
insert the Plane Select bit for the column address.

These flashes have been validated on Xilinx zynq-picozed
board which included Macronix SPI Host.

Cheng Ming Lin (3):
  include/linux/mtd/spinand.h: Add fixups for spinand
  mtd: spinand: macronix: Fixups for PLANE_SELECT_BIT
  mtd: spinand: Insert Plane Select bit for the column address

 drivers/mtd/nand/spi/core.c     |  7 +++++
 drivers/mtd/nand/spi/macronix.c | 51 +++++++++++++++++++++++++++++----
 include/linux/mtd/spinand.h     | 17 +++++++++++
 3 files changed, 69 insertions(+), 6 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-07-17  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-10  1:15 [PATCH 0/3] Add fixups for two-plane serial NAND flash Cheng Ming Lin
2024-07-10  1:15 ` [PATCH 1/3] include/linux/mtd/spinand.h: Add fixups for spinand Cheng Ming Lin
2024-07-10  1:15 ` [PATCH 2/3] mtd: spinand: macronix: Fixups for PLANE_SELECT_BIT Cheng Ming Lin
2024-07-10 22:09   ` kernel test robot
2024-07-10  1:15 ` [PATCH 3/3] mtd: spinand: Insert Plane Select bit for the column address Cheng Ming Lin
2024-07-17  8:16 ` [PATCH 0/3] Add fixups for two-plane serial NAND flash Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox