Skip to content

Commit 86fd0e6

Browse files
computersforpeacePratyush Yadav
authored andcommitted
mtd: spi-nor: micron-st: Add n25q064a WP support
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 <[email protected]> Reviewed-by: Michael Walle <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 18bcb4a commit 86fd0e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mtd/spi-nor/micron-st.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ static const struct flash_info st_nor_parts[] = {
436436
.id = SNOR_ID(0x20, 0xbb, 0x17),
437437
.name = "n25q064a",
438438
.size = SZ_8M,
439+
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP |
440+
SPI_NOR_BP3_SR_BIT6,
439441
.no_sfdp_flags = SECT_4K | SPI_NOR_QUAD_READ,
440442
}, {
441443
.id = SNOR_ID(0x20, 0xbb, 0x18),

0 commit comments

Comments
 (0)