Skip to content

Commit 1df1fdb

Browse files
miquelraynalprati0100
authored andcommitted
mtd: spi-nor: winbond: Add support for W25H01NWxxAM 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 f21d2c7 commit 1df1fdb

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
@@ -359,6 +359,10 @@ static const struct flash_info winbond_nor_parts[] = {
359359
/* W25H512NWxxAM */
360360
.id = SNOR_ID(0xef, 0xa0, 0x20),
361361
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
362+
}, {
363+
/* W25H01NWxxAM */
364+
.id = SNOR_ID(0xef, 0xa0, 0x21),
365+
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
362366
},
363367
};
364368

0 commit comments

Comments
 (0)