]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mtd: spi-nor: add support for sst26wf016b memory IC
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Thu, 18 Jul 2019 14:06:23 +0000 (17:06 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 20 Aug 2019 14:35:21 +0000 (17:35 +0300)
This commit adds support for the SST sst26wf016b flash memory IC.
This IC was tested with  "snps,dw-apb-ssi" SPI controller.
We don't test dual/quad reads however sst26wf016b flash's datasheet
advertises both dual and quad reads (and support of corresponding
commands)

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c

index be4eeefa1273c9ed2c31e5a541bfe6ba3e80f539..4fb551aacd253412d4ca4452d8d7015692531f00 100644 (file)
@@ -2425,6 +2425,8 @@ static const struct flash_info spi_nor_ids[] = {
        { "sst25wf040b", INFO(0x621613, 0, 64 * 1024,  8, SECT_4K) },
        { "sst25wf040",  INFO(0xbf2504, 0, 64 * 1024,  8, SECT_4K | SST_WRITE) },
        { "sst25wf080",  INFO(0xbf2505, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) },
+       { "sst26wf016b", INFO(0xbf2651, 0, 64 * 1024, 32, SECT_4K |
+                             SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
        { "sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 
        /* ST Microelectronics -- newer production may have feature updates */