Skip to content

Commit f74b79f

Browse files
committed
mtd: spi-nor: add support for Microchip SST26 QSPI flash memories
The flash memories are write-protected by default at power-on and must be unlocked first, before being erased, then programmed. The erase block sizes are not uniform. The memory layout is uniform just for the 4K sector blocks. Based on initial work done by Cyrille Pitchen. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 916635a commit f74b79f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,11 +1314,31 @@ 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+
{
1318+
"sst26vf016b", INFO(0xbf2641, 0, 64 * 1024, 32,
1319+
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
1320+
UNLOCK_GLOBAL_BLOCK)
1321+
},
1322+
{
1323+
"sst26vf032b", INFO(0xbf2642, 0, 64 * 1024, 64,
1324+
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
1325+
UNLOCK_GLOBAL_BLOCK)
1326+
},
13171327
{
13181328
"sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128,
13191329
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
13201330
UNLOCK_GLOBAL_BLOCK)
13211331
},
1332+
{
1333+
"sst26vf040b", INFO(0xbf2654, 0, 64 * 1024, 8,
1334+
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
1335+
UNLOCK_GLOBAL_BLOCK)
1336+
},
1337+
{
1338+
"sst26vf080b", INFO(0xbf2658, 0, 64 * 1024, 16,
1339+
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
1340+
UNLOCK_GLOBAL_BLOCK)
1341+
},
13221342

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

0 commit comments

Comments
 (0)