Skip to content

Commit 604cf6a

Browse files
miquelraynalprati0100
authored andcommitted
mtd: spi-nor: winbond: Add support for W25H02NWxxAM chips
These chips must be described as none of the block protection information are discoverable. This chip supports 4 bits plus the top/bottom addressing capability to identify the protected blocks. Cc: stable@vger.kernel.org Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Michael Walle <mwalle@kernel.org> Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
1 parent 1df1fdb commit 604cf6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/mtd/spi-nor/winbond.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ static const struct flash_info winbond_nor_parts[] = {
363363
/* W25H01NWxxAM */
364364
.id = SNOR_ID(0xef, 0xa0, 0x21),
365365
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
366+
}, {
367+
/* W25H02NWxxAM */
368+
.id = SNOR_ID(0xef, 0xa0, 0x22),
369+
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
366370
},
367371
};
368372

0 commit comments

Comments
 (0)