mtd: spi-nor: macronix: Add fixups for MX25L3255E
authorCheng Ming Lin <chengminglin@mxic.com.tw>
Mon, 7 Apr 2025 07:54:00 +0000 (15:54 +0800)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 8 Apr 2025 15:04:54 +0000 (15:04 +0000)
commit594c8df92b946c851bb767455f32f9e762d99810
treefb661eb5e0dc398862bd3a1f2a10fd4bfe9dcaea
parentc425efacec03d9fb6c7bad1678daf717f201e934
mtd: spi-nor: macronix: Add fixups for MX25L3255E

SFDP of MX25L3255E is JESD216, which does not include the Quad
Enable bit Requirement in BFPT. As a result, during BFPT parsing,
the quad_enable method is not set to spi_nor_sr1_bit6_quad_enable.
Therefore, it is necessary to correct this setting by late_init.

In addition, MX25L3255E also supports 1-4-4 page program in 3-byte
address mode. However, since the 3-byte address 1-4-4 page program
is not defined in SFDP, it needs to be configured in late_init.

Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw>
Acked-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
[pratyush@kernel.org: move params declaration to top, and use it everywhere]
Link: https://lore.kernel.org/r/20250407075400.1113177-4-linchengming884@gmail.com
drivers/mtd/spi-nor/macronix.c