Skip to content

Commit ee4e0ea

Browse files
yclin1209miquelraynal
authored andcommitted
mtd: spinand: macronix: Add support for MX35LFxG24AD
The Macronix MX35LF1G24AD(/2G24AD/4G24AD) are 3V, 1G/2G/4Gbit serial SLC NAND flash device (without on-die ECC). Validated by read, erase, read back, write, read back on Xilinx Zynq PicoZed FPGA board which included Macronix SPI Host(drivers/spi/spi-mxic.c) & S/W BCH ecc(drivers/mtd/nand/ecc-sw-bch.c) with bug fixing patch (mtd: nand: ecc-bch: Fix the size of calc_buf/code_buf of the BCH). Signed-off-by: YouChing Lin <ycllin@mxic.com.tw> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/1607570529-22341-3-git-send-email-ycllin@mxic.com.tw
1 parent 058e0e8 commit ee4e0ea

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

drivers/mtd/nand/spi/macronix.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,33 @@ static const struct spinand_info macronix_spinand_table[] = {
139139
0,
140140
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout,
141141
mx35lf1ge4ab_ecc_get_status)),
142+
SPINAND_INFO("MX35LF1G24AD",
143+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14),
144+
NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
145+
NAND_ECCREQ(8, 512),
146+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
147+
&write_cache_variants,
148+
&update_cache_variants),
149+
0,
150+
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout, NULL)),
151+
SPINAND_INFO("MX35LF2G24AD",
152+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x24),
153+
NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
154+
NAND_ECCREQ(8, 512),
155+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
156+
&write_cache_variants,
157+
&update_cache_variants),
158+
0,
159+
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout, NULL)),
160+
SPINAND_INFO("MX35LF4G24AD",
161+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35),
162+
NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 2, 1, 1),
163+
NAND_ECCREQ(8, 512),
164+
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
165+
&write_cache_variants,
166+
&update_cache_variants),
167+
0,
168+
SPINAND_ECCINFO(&mx35lfxge4ab_ooblayout, NULL)),
142169
SPINAND_INFO("MX31LF1GE4BC",
143170
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x1e),
144171
NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),

0 commit comments

Comments
 (0)