Skip to contentSkip to conversation

mtd: spi-nor: micron-st: Enable locking for n25q256ax1

PATCH Superseded Eliav Farber 2 participants 2 messages Oct 18, 2022

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor: micron-st: Enable locking for n25q256ax1

n25q256ax1 [1] uses the 4 bit Block Protection scheme and supports Top/Bottom protection via the BP and TB bits of the Status Register. BP3 is located in bit 6 of the Status Register.
Tested on n25q256ax1.

[1] https://www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/n25q/n25q_256mb_3v.pdf

---
 drivers/mtd/spi-nor/micron-st.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/micron-st.c +2 -0
index 3c9681a3f7a3..7cf5fbb28f99 100644
@@ -206,6 +206,8 @@ static const struct flash_info st_nor_parts[] = {
 		MFR_FLAGS(USE_FSR)
 	},
 	{ "n25q256ax1",  INFO(0x20bb19, 0, 64 * 1024,  512)
+		FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP |
+		      SPI_NOR_BP3_SR_BIT6)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ)
 		MFR_FLAGS(USE_FSR)
 	},
Signature · 1 line
2.37.1
#1 lore raw

Hi,

Am 2022-10-18 09:22, schrieb Eliav Farber:

Quoted 8 lines

n25q256ax1 [1] uses the 4 bit Block Protection scheme and supports Top/Bottom protection via the BP and TB bits of the Status Register. BP3 is located in bit 6 of the Status Register.
Tested on n25q256ax1.

[1] https://www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/n25q/n25q_256mb_3v.pdf

Looks good. But could you please dump the SFDP tables as described in [1].

-michael

[1] https://lore.kernel.org/linux-mtd/[email protected]/