summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2026-05-26 16:56:48 +0200
committerPratyush Yadav <pratyush@kernel.org>2026-05-27 14:36:03 +0200
commit855599425e1aefb499e7bf90c34f708ebbb63045 (patch)
tree6fa090179a9aefa5cf0c0ae55b602197c6d4bbf9 /drivers/mtd
parent591be2ba7861be3ca3aabeb3fd2a3ce96ddb8601 (diff)
downloadlinux-next-855599425e1aefb499e7bf90c34f708ebbb63045.tar.gz
linux-next-855599425e1aefb499e7bf90c34f708ebbb63045.zip
mtd: spi-nor: winbond: Add W25H01NWxxAM CMP locking support
This chip has support for the locking complement (CMP) feature. Add the relevant bit to enable it. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi-nor/winbond.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c
index ef73c855cedb..7628fa7fb64f 100644
--- a/drivers/mtd/spi-nor/winbond.c
+++ b/drivers/mtd/spi-nor/winbond.c
@@ -365,7 +365,8 @@ static const struct flash_info winbond_nor_parts[] = {
}, {
/* W25H01NWxxAM */
.id = SNOR_ID(0xef, 0xa0, 0x21),
- .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
+ .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 |
+ SPI_NOR_4BIT_BP | SPI_NOR_HAS_CMP,
}, {
/* W25H02NWxxAM */
.id = SNOR_ID(0xef, 0xa0, 0x22),