All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: spi-nor: micron-st: added support for np8p128ax60
@ 2021-08-31  8:13 ` Andrea Zanotti
  0 siblings, 0 replies; 12+ messages in thread
From: Andrea Zanotti @ 2021-08-31  8:13 UTC (permalink / raw)
  Cc: Andrea Zanotti, Tudor Ambarus, Michael Walle, Pratyush Yadav,
	Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	linux-mtd, linux-kernel

From: Andrea Zanotti <andreazanottifo@gmail.com>

Added support for P8P Parallel Phase Change Memory.

Added memory information (page size and sector size) as per data-
sheet information, after typos corrections.

At page 37, paragraph 'SPI Memory Organization', it is written
down that the memory is organized as:
 * 16.772.216 bytes (typo here, there 16.777.216 bytes)
 * 128 sectors of 128 Kbytes each (correct)
 * 131.072 pages of 64 bytes each (typo here, as the total would be
   64Mbit, but the total memory is actually 128Mbit, correct value
   is 262.144 pages)

Patch tested against the aforementioned PCM memory.

No known regressions inserted, as the patch only adds the possibility
to recognize said PCM memory inside the common spi-nor driver.

Signed-off-by: Andrea Zanotti <andreazanottifo@gmail.com>
---
 drivers/mtd/spi-nor/micron-st.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c
index c224e59820a1..c78331451082 100644
--- a/drivers/mtd/spi-nor/micron-st.c
+++ b/drivers/mtd/spi-nor/micron-st.c
@@ -128,6 +128,7 @@ static const struct flash_info micron_parts[] = {
 	{ "mt35xu02g", INFO(0x2c5b1c, 0, 128 * 1024, 2048,
 			    SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ |
 			    SPI_NOR_4B_OPCODES) },
+	{ "np8p128ax60", {0x89, 0xda, 0x18}, 3, 128 * 1024, 128, 64, 0, 0 },
 };
 
 static const struct flash_info st_parts[] = {
-- 
2.17.1


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

end of thread, other threads:[~2021-09-03 11:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31  8:13 [PATCH] mtd: spi-nor: micron-st: added support for np8p128ax60 Andrea Zanotti
2021-08-31  8:13 ` Andrea Zanotti
2021-08-31  8:39 ` Michael Walle
2021-08-31  8:39   ` Michael Walle
     [not found]   ` <CAGiusB1JvHkX7GSvD2JsqKWwC5xBePX_ruWk9nU9gugoroLnKA@mail.gmail.com>
2021-08-31 10:11     ` Andrea Zanotti
2021-08-31 10:11       ` Andrea Zanotti
2021-08-31 15:05       ` Michael Walle
2021-08-31 15:05         ` Michael Walle
2021-09-01 11:20         ` Andrea Zanotti
2021-09-01 11:20           ` Andrea Zanotti
2021-09-03 11:47           ` Michael Walle
2021-09-03 11:47             ` Michael Walle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.