mtd: spi-nor: Add support for Spansion S25FL064L
Subsystems (2)
PATCH 1/1 mtd: spi-nor: Add support for Spansion S25FL064L
It's an 8 MiB flash with 4 KiB erase sectors.
Signed-off-by Harry Chou <[email protected]>
--- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
@@ -1076,6 +1076,7 @@ static const struct flash_info spi_nor_ids[] = { { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) }, { "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ) }, { "s25fl208k", INFO(0x014014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ) }, + { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K) },/* SST -- large erase sizes are "overlays", "sectors" are 4K */ { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
Signature · 1 line
2.7.4
Hi Harry,
Quoted 12 lines · Harry Chou
It's an 8 MiB flash with 4 KiB erase sectors.
Signed-off-by Harry Chou <[email protected]>--- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+)drivers/mtd/spi-nor/spi-nor.c +0
-0
drivers/mtd/spi-nor/spi-nor.c static const struct flash_info spi_nor_ids[] = { · line 1080
Quoted 5 lines
drivers/mtd/spi-nor/spi-nor.c +1
-0@@ -1076,6 +1076,7 @@ static const struct flash_info spi_nor_ids[] = { { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) }, { "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ) }, { "s25fl208k", INFO(0x014014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ) }, + { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K) },
According to the Cypress datasheet, this memory part number supports Fast Read:
- Dual Output (SPI 1-1-2)
- Dual I/O (SPI 1-2-2)
- Quad Output (SPI 1-1-4)
- Quad I/O (SPI 1-4-4)
http://www.cypress.com/file/316661/download
So you should also add the 2 flags SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ in addition to SECT_4K and also the flag SPI_NOR_4B_OPCODES since this part number also supports the 4-byte address instruction set.
Best regards,
Cyrille
Quoted 3 lines
drivers/mtd/spi-nor/spi-nor.c +0
-0/* SST -- large erase sizes are "overlays", "sectors" are 4K */ { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },