]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mtd: spi-nor: atmel: add at25sf321 entry
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Sat, 16 Nov 2024 10:55:55 +0000 (11:55 +0100)
committerPratyush Yadav <pratyush@kernel.org>
Fri, 6 Dec 2024 15:13:19 +0000 (15:13 +0000)
Add entry for the at25sf321 32Mbit SPI flash.

This flash is populated on a custom board and was tested at
10MHz frequency using the "ti,da830-spi" SPI controller.

Link: https://www.renesas.com/en/document/dst/at25sf321-datasheet?r=1608801
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20241116-spi-nor-v4-1-3de8ac6fd0be@gmail.com
drivers/mtd/spi-nor/atmel.c

index 45d1153a04a07b7c61f46b117311b24ab695038f..82c592f0a1e156e6871785d58b670f76a0c03911 100644 (file)
@@ -238,6 +238,10 @@ static const struct flash_info atmel_nor_parts[] = {
                .flags = SPI_NOR_HAS_LOCK,
                .no_sfdp_flags = SECT_4K,
                .fixups = &at25fs_nor_fixups
+       }, {
+               .id = SNOR_ID(0x1f, 0x87, 0x01),
+               .size = SZ_4M,
+               .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
        },
 };