Skip to content

Commit 86fd0e6

Browse files
computersforpeaceprati0100
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 <computersforpeace@gmail.com> Reviewed-by: Michael Walle <mwalle@kernel.org> Signed-off-by: Pratyush Yadav <pratyush@kernel.org> Link: https://lore.kernel.org/r/20240726185825.142733-1-computersforpeace@gmail.com
1 parent 18bcb4a commit 86fd0e6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)