Skip to content

Commit f3f2b7e

Browse files
Jungseung-Leeambarus
authored andcommitted
mtd: spi-nor: Enable locking for n25q512ax3/n25q512a
n25q512ax3 and n25q512a use the 4 bit Block Protection scheme. Enable locking for both. Tested on n25q512ax3. The other is modified following the datasheet. Signed-off-by: Jungseung Lee <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 05635c1 commit f3f2b7e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ static const struct flash_info st_parts[] = {
4747
SECT_4K | USE_FSR | SPI_NOR_DUAL_READ |
4848
SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
4949
{ "n25q512ax3", INFO(0x20ba20, 0, 64 * 1024, 1024,
50-
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) },
50+
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
51+
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
52+
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) },
5153
{ "mt25qu512a", INFO6(0x20bb20, 0x104400, 64 * 1024, 1024,
5254
SECT_4K | USE_FSR | SPI_NOR_DUAL_READ |
5355
SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
5456
{ "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024,
55-
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) },
57+
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
58+
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
59+
SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) },
5660
{ "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048,
5761
SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
5862
NO_CHIP_ERASE) },

0 commit comments

Comments
 (0)