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 <mamta.shukla@leica-geosystems.com>
Link: https://lore.kernel.org/r/20231017074711.12167-1-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
This commit is contained in:
Mamta Shukla 2023-10-17 10:47:10 +03:00 committed by Tudor Ambarus
parent 8f407eda17
commit a2a3e5430e
No known key found for this signature in database
GPG Key ID: 4B554F47A58D14E9
1 changed files with 2 additions and 0 deletions

View File

@ -405,6 +405,8 @@ static const struct flash_info st_nor_parts[] = {
}, { }, {
.id = SNOR_ID(0x20, 0xbb, 0x20, 0x10, 0x44, 0x00), .id = SNOR_ID(0x20, 0xbb, 0x20, 0x10, 0x44, 0x00),
.name = "mt25qu512a", .name = "mt25qu512a",
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP |
SPI_NOR_BP3_SR_BIT6,
.size = SZ_64M, .size = SZ_64M,
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
.fixup_flags = SPI_NOR_4B_OPCODES, .fixup_flags = SPI_NOR_4B_OPCODES,