Skip to content

Commit a2a3e54

Browse files
Mamta Shuklaambarus
authored andcommitted
mtd: spi-nor: micron-st: enable lock/unlock for mt25qu512a
mt25qu512a supports locking/unlocking through the SR BP bits. Enable locking support. Tested with mtd-utils- flash_lock/flash_unlock on MT25QU512ABB8E12. Signed-off-by: Mamta Shukla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 8f407ed commit a2a3e54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mtd/spi-nor/micron-st.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ static const struct flash_info st_nor_parts[] = {
405405
}, {
406406
.id = SNOR_ID(0x20, 0xbb, 0x20, 0x10, 0x44, 0x00),
407407
.name = "mt25qu512a",
408+
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP |
409+
SPI_NOR_BP3_SR_BIT6,
408410
.size = SZ_64M,
409411
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
410412
.fixup_flags = SPI_NOR_4B_OPCODES,

0 commit comments

Comments
 (0)