]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mtd: spi-nor: macronix: add support for mx66{l2, u1}g45g
authorCheng Ming Lin <chengminglin@mxic.com.tw>
Tue, 11 Feb 2025 06:30:28 +0000 (14:30 +0800)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 7 Mar 2025 06:23:46 +0000 (08:23 +0200)
Due to incorrect values in the 4-BAIT table for these two flash IDs,
it is necessary to add these two flash IDs with fixups.

Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw>
Link: https://lore.kernel.org/r/20250211063028.382169-3-linchengming884@gmail.com
[ta: update commit subject]
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/macronix.c

index 5d100a116c07c4603550ac472f68cf050cefcd6b..55644a3cd88c2b4cf584fea25ba9c6f28b9523c2 100644 (file)
@@ -127,6 +127,10 @@ static const struct flash_info macronix_nor_parts[] = {
                .size = SZ_128M,
                .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
                .fixups = &macronix_qpp4b_fixups,
+       }, {
+               /* MX66L2G45G */
+               .id = SNOR_ID(0xc2, 0x20, 0x1c),
+               .fixups = &macronix_qpp4b_fixups,
        }, {
                .id = SNOR_ID(0xc2, 0x23, 0x14),
                .name = "mx25v8035f",
@@ -176,6 +180,10 @@ static const struct flash_info macronix_nor_parts[] = {
                .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
                .fixup_flags = SPI_NOR_4B_OPCODES,
                .fixups = &macronix_qpp4b_fixups,
+       }, {
+               /* MX66U1G45G */
+               .id = SNOR_ID(0xc2, 0x25, 0x3b),
+               .fixups = &macronix_qpp4b_fixups,
        }, {
                .id = SNOR_ID(0xc2, 0x25, 0x3c),
                .name = "mx66u2g45g",