Skip to content

Commit 797bbaa

Browse files
zmlin1998ambarus
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ta: update commit subject] Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 798aafe commit 797bbaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/mtd/spi-nor/macronix.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ static const struct flash_info macronix_nor_parts[] = {
127127
.size = SZ_128M,
128128
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
129129
.fixups = &macronix_qpp4b_fixups,
130+
}, {
131+
/* MX66L2G45G */
132+
.id = SNOR_ID(0xc2, 0x20, 0x1c),
133+
.fixups = &macronix_qpp4b_fixups,
130134
}, {
131135
.id = SNOR_ID(0xc2, 0x23, 0x14),
132136
.name = "mx25v8035f",
@@ -176,6 +180,10 @@ static const struct flash_info macronix_nor_parts[] = {
176180
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
177181
.fixup_flags = SPI_NOR_4B_OPCODES,
178182
.fixups = &macronix_qpp4b_fixups,
183+
}, {
184+
/* MX66U1G45G */
185+
.id = SNOR_ID(0xc2, 0x25, 0x3b),
186+
.fixups = &macronix_qpp4b_fixups,
179187
}, {
180188
.id = SNOR_ID(0xc2, 0x25, 0x3c),
181189
.name = "mx66u2g45g",

0 commit comments

Comments
 (0)