Skip to content

Commit 916635a

Browse files
committed
mtd: spi-nor: unlock global block protection on sst26vf064b
To avoid inadvertent writes during power-up, sst26vf064b is write-protected by default after a power-on reset cycle. Unlock the serial flash memory by using the Global Block Protection Unlock command - it offers a single command cycle that unlocks the entire memory array. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 07a635b commit 916635a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,11 @@ static const struct flash_info spi_nor_ids[] = {
13141314
{ "sst25wf040b", INFO(0x621613, 0, 64 * 1024, 8, SECT_4K) },
13151315
{ "sst25wf040", INFO(0xbf2504, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
13161316
{ "sst25wf080", INFO(0xbf2505, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) },
1317-
{ "sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
1317+
{
1318+
"sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128,
1319+
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
1320+
UNLOCK_GLOBAL_BLOCK)
1321+
},
13181322

13191323
/* ST Microelectronics -- newer production may have feature updates */
13201324
{ "m25p05", INFO(0x202010, 0, 32 * 1024, 2, 0) },

0 commit comments

Comments
 (0)