Skip to content

Commit 15b0205

Browse files
jlemonambarus
authored andcommitted
mtd: spi-nor: Enable locking for n25q128a13
As 4bit block protection patchset for some micron models are merged, n25q128a13 also uses 4 bit Block Protection scheme, so enable locking for it. Tested it on n25q128a13, the locking functions work well. Signed-off-by: Jonathan Lemon <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Reviewed-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3f491d1 commit 15b0205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ static const struct flash_info st_parts[] = {
146146
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
147147
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) },
148148
{ "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256,
149-
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) },
149+
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
150+
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
151+
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) },
150152
{ "mt25ql256a", INFO6(0x20ba19, 0x104400, 64 * 1024, 512,
151153
SECT_4K | USE_FSR | SPI_NOR_DUAL_READ |
152154
SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },

0 commit comments

Comments
 (0)