Skip to content

Commit f80ff13

Browse files
Jungseung-Leeambarus
authored andcommitted
mtd: spi-nor: micron-st: Enable locking for n25q00
n25q00 uses the 4 bit Block Protection scheme and supports Top/Bottom protection via the BP and TB bits of the Status Register. Enable locking for n25q00. Tested with cirrus controller. Signed-off-by: Jungseung Lee <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 9f09e37 commit f80ff13

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
@@ -61,6 +61,8 @@ static const struct flash_info st_parts[] = {
6161
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) },
6262
{ "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048,
6363
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
64+
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
65+
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6 |
6466
NO_CHIP_ERASE) },
6567
{ "n25q00a", INFO(0x20bb21, 0, 64 * 1024, 2048,
6668
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |

0 commit comments

Comments
 (0)