summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/mtd-davinci.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-08-27 11:51:57 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-09-28 16:56:34 +0300
commitef24f97daac4d9450c956ab165d8337c2feca0e9 (patch)
treea840196fdfa6fec0fa309569ef4d5141de541a8d /include/linux/platform_data/mtd-davinci.h
parenta8c7ffdb5fdde3a57c0b654f66f4d81325abe69f (diff)
downloadlinux-ef24f97daac4d9450c956ab165d8337c2feca0e9.tar.xz
mtd: rawnand: Separate the ECC engine type and the ECC byte placement
The use of "syndrome" placement should not be encoded in the ECC engine mode/type. Create a "placement" field in NAND chip and change all occurrences of the NAND_ECC_HW_SYNDROME enumeration to be just NAND_ECC_HW and possibly a placement entry like NAND_ECC_PLACEMENT_INTERLEAVED. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-10-miquel.raynal@bootlin.com
Diffstat (limited to 'include/linux/platform_data/mtd-davinci.h')
-rw-r--r--include/linux/platform_data/mtd-davinci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/mtd-davinci.h b/include/linux/platform_data/mtd-davinci.h
index 03e92c71b3fa..6e2b252a4ce6 100644
--- a/include/linux/platform_data/mtd-davinci.h
+++ b/include/linux/platform_data/mtd-davinci.h
@@ -69,6 +69,7 @@ struct davinci_nand_pdata { /* platform_data */
* using it with large page chips.
*/
enum nand_ecc_mode ecc_mode;
+ enum nand_ecc_placement ecc_placement;
u8 ecc_bits;
/* e.g. NAND_BUSWIDTH_16 */