Skip to content

Commit f21d2c7

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

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
@@ -355,6 +355,10 @@ static const struct flash_info winbond_nor_parts[] = {
355355
/* W25Q02NWxxIM */
356356
.id = SNOR_ID(0xef, 0x80, 0x22),
357357
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
358+
}, {
359+
/* W25H512NWxxAM */
360+
.id = SNOR_ID(0xef, 0xa0, 0x20),
361+
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
358362
},
359363
};
360364

0 commit comments

Comments
 (0)