mtd: spi-nor: atmel: add at25dn011
PATCH 1/1 mtd: spi-nor: atmel: add at25dn011
Add AT25DN011 with 1Mbit.
Used on multiple custom boards and tested with this patch.
Signed-off-by Simon Richter <[email protected]>
--- drivers/mtd/spi-nor/atmel.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/mtd/spi-nor/atmel.c +5 -0
@@ -171,6 +171,11 @@ static const struct flash_info atmel_nor_parts[] = { .name = "at45db081d", .size = SZ_1M, .no_sfdp_flags = SECT_4K, + }, { + .id = SNOR_ID(0x1f, 0x42, 0x00), + .name = "at25dn011", + .size = SZ_128K, + .no_sfdp_flags =SECT_4K |SPI_NOR_DUAL_READ }, { .id = SNOR_ID(0x1f, 0x42, 0x16), .name = "at25sl321",
Signature · 1 line
2.51.0
Michael Walle
maintainerHi Simon,
Quoted 2 lines · Simon Richter
Add AT25DN011 with 1Mbit.
Used on multiple custom boards and tested with this patch.
Could you add your testing to the next version of your patch (below a "---" line). See also [1].
Quoted 2 lines
Newer flash and no SFDP :|
Quoted 10 lines
Signed-off-by Simon Richter <[email protected]>--- drivers/mtd/spi-nor/atmel.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/mtd/spi-nor/atmel.c +0
-0
drivers/mtd/spi-nor/atmel.c static const struct flash_info atmel_nor_parts[] = { · line 176
Quoted 6 lines
drivers/mtd/spi-nor/atmel.c +3
-0@@ -171,6 +171,11 @@ static const struct flash_info atmel_nor_parts[] = { .name = "at45db081d", .size = SZ_1M, .no_sfdp_flags = SECT_4K, + }, { + .id = SNOR_ID(0x1f, 0x42, 0x00), + .name = "at25dn011",
No .name please, the ID is enough. We've deprecated the use of a name.
drivers/mtd/spi-nor/atmel.c static const struct flash_info atmel_nor_parts[] = { · line 178
Quoted 2 lines
drivers/mtd/spi-nor/atmel.c +2
-0+ .size = SZ_128K, + .no_sfdp_flags =SECT_4K |SPI_NOR_DUAL_READ
missing trailing comma.
-michael
drivers/mtd/spi-nor/atmel.c static const struct flash_info atmel_nor_parts[] = { · line 181
Quoted 3 lines
drivers/mtd/spi-nor/atmel.c +0
-0}, { .id = SNOR_ID(0x1f, 0x42, 0x16), .name = "at25sl321",