aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-06-24 23:27:22 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-07-02 09:01:41 +0200
commitf308d7353d1f5c3ddedc784a367edc72fc51bbaa (patch)
tree2a2ef32716ef30020ca9bef81787fe1f44e81048 /include/linux/mtd
parentmtd: rawnand: hynix: fix decoding the OOB size on H27UCG8T2BTR (diff)
downloadlinux-dev-f308d7353d1f5c3ddedc784a367edc72fc51bbaa.tar.xz
linux-dev-f308d7353d1f5c3ddedc784a367edc72fc51bbaa.zip
mtd: rawnand: add Reed-Solomon error correction algorithm
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/rawnand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h
index 3e8ec3b8a39c..2d9cb7acbc3d 100644
--- a/include/linux/mtd/rawnand.h
+++ b/include/linux/mtd/rawnand.h
@@ -121,6 +121,7 @@ enum nand_ecc_algo {
NAND_ECC_UNKNOWN,
NAND_ECC_HAMMING,
NAND_ECC_BCH,
+ NAND_ECC_RS,
};
/*