mtd: spi-nor: Add support for at25sl321
Subsystems (2)
PATCH 1/1 mtd: spi-nor: Add support for at25sl321
This was tested in single, dual and quad mode on a custom board with the NXP FlexSPI controller.
Signed-off-by Michael Walle <[email protected]>
--- drivers/mtd/spi-nor/spi-nor.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/mtd/spi-nor/spi-nor.c +6 -0
@@ -2332,6 +2332,12 @@ static const struct flash_info spi_nor_ids[] = { { "at45db081d", INFO(0x1f2500, 0, 64 * 1024, 16, SECT_4K) }, +/* Adesto (former Atmel) */ + { +"at25sl321" ,INFO (0x1f4216 ,0 ,64 *1024 ,64 , +SECT_4K |SPI_NOR_DUAL_READ |SPI_NOR_QUAD_READ ) + }, +/* EON -- en25xxx */ { "en25f32", INFO(0x1c3116, 0, 64 * 1024, 64, SECT_4K) }, { "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) },
Signature · 1 line
2.20.1
Quoted 16 lines · EET Michael Walle
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
This was tested in single, dual and quad mode on a custom board with the NXP FlexSPI controller.
Signed-off-by Michael Walle <[email protected]>--- drivers/mtd/spi-nor/spi-nor.c | 6 ++++++ 1 file changed, 6 insertions(+)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 2335
Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +1
-0@@ -2332,6 +2332,12 @@ static const struct flash_info spi_nor_ids[] = { { "at45db081d", INFO(0x1f2500, 0, 64 * 1024, 16, SECT_4K) }, +/* Adesto (former Atmel) */
All the atmel flashes from above start with Adesto's manufacturer id, 0x1f. I dropped this comment, ordered the entry alphabetically and applied to spi- nor/next. Thanks.
ta
Quoted 10 lines
drivers/mtd/spi-nor/spi-nor.c +5
-1+ { +"at25sl321" ,INFO (0x1f4216 ,0 ,64 *1024 ,64 , +SECT_4K |SPI_NOR_DUAL_READ |SPI_NOR_QUAD_READ ) + }, +/* EON -- en25xxx */ { "en25f32", INFO(0x1c3116, 0, 64 * 1024, 64, SECT_4K) }, { "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) }, --2.20.1