Skip to content

Commit 71c2393

Browse files
miquelraynalprati0100
authored andcommitted
mtd: spi-nor: winbond: Add support for W25Q02NWxxIM 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 a607e67 commit 71c2393

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
@@ -351,6 +351,10 @@ static const struct flash_info winbond_nor_parts[] = {
351351
/* W25Q01NWxxIM */
352352
.id = SNOR_ID(0xef, 0x80, 0x21),
353353
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
354+
}, {
355+
/* W25Q02NWxxIM */
356+
.id = SNOR_ID(0xef, 0x80, 0x22),
357+
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
354358
},
355359
};
356360

0 commit comments

Comments
 (0)