Skip to content

Commit 637552b

Browse files
ambarusvarshini-rajendran
authored andcommitted
mtd: spi-nor: macronix: Set SPI_NOR_DTR_BSWAP16 on mx66lm1g45g
mx66lm1g45g does not define the SFDP tables thus it requires SPI_NOR_DTR_BSWAP16 in order to specify that the byte order of 16-bit words is swapped when read or written in DTR mode compared to STR mode. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent f151876 commit 637552b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/mtd/spi-nor/macronix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ static const struct flash_info macronix_nor_parts[] = {
231231
FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
232232
{ "mx66lm1g45g", INFO(0xc2853b, 0, 64 * 1024, 2048)
233233
NO_SFDP_FLAGS(SPI_NOR_SKIP_SFDP | SECT_4K |
234-
SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP)
234+
SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP |
235+
SPI_NOR_DTR_BSWAP16)
235236
FIXUP_FLAGS(SPI_NOR_4B_OPCODES | SPI_NOR_IO_MODE_EN_VOLATILE |
236237
SPI_NOR_SOFT_RESET)
237238
.fixups = &mx66lm1g45g_fixups,

0 commit comments

Comments
 (0)