public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] mtd: spi-nor: micron-st: Add n25q064a WP support
@ 2024-07-26 18:58 Brian Norris
  2024-07-30  6:51 ` Michael Walle
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Norris @ 2024-07-26 18:58 UTC (permalink / raw)
  To: linux-mtd
  Cc: Brian Norris, Michael Walle, Miquel Raynal, Pratyush Yadav,
	Richard Weinberger, Tudor Ambarus, Vignesh Raghavendra,
	linux-kernel

These flash chips are used on Google / TP-Link / ASUS OnHub devices, and
OnHub devices are write-protected by default (same as any other
ChromeOS/Chromebook system). I've referred to datasheets, and tested on
OnHub devices.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---

 drivers/mtd/spi-nor/micron-st.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c
index 3c6499fdb712..e6bab2d00c92 100644
--- a/drivers/mtd/spi-nor/micron-st.c
+++ b/drivers/mtd/spi-nor/micron-st.c
@@ -436,6 +436,8 @@ static const struct flash_info st_nor_parts[] = {
 		.id = SNOR_ID(0x20, 0xbb, 0x17),
 		.name = "n25q064a",
 		.size = SZ_8M,
+		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP |
+			 SPI_NOR_BP3_SR_BIT6,
 		.no_sfdp_flags = SECT_4K | SPI_NOR_QUAD_READ,
 	}, {
 		.id = SNOR_ID(0x20, 0xbb, 0x18),
-- 
2.43.0


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2024-08-05  9:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26 18:58 [PATCH] mtd: spi-nor: micron-st: Add n25q064a WP support Brian Norris
2024-07-30  6:51 ` Michael Walle
2024-07-30 11:24   ` Pratyush Yadav
2024-07-30 11:33   ` Tudor Ambarus
2024-07-30 17:28     ` Brian Norris
2024-07-31  8:51       ` Tudor Ambarus
2024-07-31  9:05         ` Michael Walle
2024-07-31 17:31           ` Brian Norris
2024-08-05  9:01             ` Michael Walle
2024-07-31 17:10         ` Brian Norris

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