aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCheng Ming Lin <chengminglin@mxic.com.tw>2025-02-11 14:30:28 +0800
committerTudor Ambarus <tudor.ambarus@linaro.org>2025-03-07 08:23:46 +0200
commit797bbaa7531f75985b199e484451fa3f954382b3 (patch)
tree557f5b716e643772100be5975465a2cce8f3c38b
parentmtd: spi-nor: macronix: Add post_sfdp fixups for Quad Input Page Program (diff)
downloadwireguard-linux-797bbaa7531f75985b199e484451fa3f954382b3.tar.xz
wireguard-linux-797bbaa7531f75985b199e484451fa3f954382b3.zip
mtd: spi-nor: macronix: add support for mx66{l2, u1}g45g
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>
-rw-r--r--drivers/mtd/spi-nor/macronix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index 5d100a116c07..55644a3cd88c 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -128,6 +128,10 @@ static const struct flash_info macronix_nor_parts[] = {
.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",
.size = SZ_1M,
@@ -177,6 +181,10 @@ static const struct flash_info macronix_nor_parts[] = {
.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",
.size = SZ_256M,