mtd: nand: mxic-ecc: Support SPI pipelined mode
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 16 Dec 2021 11:16:42 +0000 (12:16 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Feb 2022 08:32:25 +0000 (09:32 +0100)
commit70e038f89b467995708207fb57bbf46aec32dc2c
tree4ff18c5c6957c8f0f1b38e8c19403713816d5db1
parent5145abeb0649acf810a32e63bd762e617a9b3309
mtd: nand: mxic-ecc: Support SPI pipelined mode

Introduce the support for another possible configuration: the ECC
engine may work as DMA master (pipelined) and move itself the data
to/from the NAND chip into the buffer, applying the necessary
corrections/computations on the fly.

This driver offers an ECC engine implementation that must be
instatiated from a SPI controller driver.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211216111654.238086-17-miquel.raynal@bootlin.com
drivers/mtd/nand/ecc-mxic.c
include/linux/mtd/nand-ecc-mxic.h [new file with mode: 0644]