[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230705154942.3936658-1-mamta.shukla@leica-geosystems.com>
Date: Wed, 5 Jul 2023 17:49:42 +0200
From: Mamta Shukla <mamta.shukla@...ca-geosystems.com>
To: tudor.ambarus@...aro.org, pratyush@...nel.org, michael@...le.cc,
miquel.raynal@...tlin.com, richard@....at, vigneshr@...com,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: bsp-development.geo@...ca-geosystems.com,
Mamta Shukla <mamta.shukla@...ca-geosystems.com>
Subject: [PATCH v2] mtd: micron-st: enable lock/unlock for mt25qu512a
mt25qu512a[1] supports locking/unlocking through BP bits in SR.
Tested using mtd-utils- flash_lock/flash_unlock for MT25QU512ABB8E12.
Link: https://media-www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/mt25q/die-rev-b/mt25q_qlkt_u_512_abb_0.pdf?rev=b259aadc3bea49ea8210a41c9ad58211
Signed-off-by: Mamta Shukla <mamta.shukla@...ca-geosystems.com>
---
Changes in v2:
- add Link tag
- fix chip part number mt25ql512a->mt25qu512a
drivers/mtd/spi-nor/micron-st.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c
index 4b919756a205..08e94340ebaa 100644
--- a/drivers/mtd/spi-nor/micron-st.c
+++ b/drivers/mtd/spi-nor/micron-st.c
@@ -229,6 +229,8 @@ static const struct flash_info st_nor_parts[] = {
MFR_FLAGS(USE_FSR)
},
{ "mt25qu512a", INFO6(0x20bb20, 0x104400, 64 * 1024, 1024)
+ 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_DUAL_READ | SPI_NOR_QUAD_READ)
FIXUP_FLAGS(SPI_NOR_4B_OPCODES)
MFR_FLAGS(USE_FSR)
--
2.25.1
Powered by blists - more mailing lists