Skip to content

Commit 150ccc1

Browse files
Xiang Chenambarus
authored andcommitted
mtd: spi-nor: Enable locking for n25q128a11
As 4bit block protection patchset for some micron models are merged, n25q128a11 also uses 4 bit Block Protection scheme, so enable locking for it. Tested it on n25q128a11, the locking functions work well. Signed-off-by: Xiang Chen <[email protected]> Reviewed-by: Jungseung Lee <[email protected]> Tested-by: Shreyas Joshi <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 954fd81 commit 150ccc1

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
@@ -29,7 +29,9 @@ static const struct flash_info st_parts[] = {
2929
{ "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128,
3030
SECT_4K | SPI_NOR_QUAD_READ) },
3131
{ "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256,
32-
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) },
32+
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
33+
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
34+
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) },
3335
{ "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256,
3436
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) },
3537
{ "mt25ql256a", INFO6(0x20ba19, 0x104400, 64 * 1024, 512,

0 commit comments

Comments
 (0)