]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linux/mtd/nand_ecc.h
mtd: nand: kirkwood: add RS-ECC encoding support
[karo-tx-uboot.git] / include / linux / mtd / nand_ecc.h
index 090da505425d77d105acb6133d63dfaaa7c95b7b..dc1ddeda9a45c681cc34022e6e138e38af36a6e2 100644 (file)
@@ -25,4 +25,11 @@ int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code
  */
 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
 
+#ifdef CONFIG_NAND_ECC_SOFT_RS
+/*
+ * Calculate 10 byte RS ECC syndrome for 512 byte block
+ */
+int nand_rs_calculate_ecc(struct mtd_info *mtd, const uint8_t *data, uint8_t *ecc);
+#endif
+
 #endif /* __MTD_NAND_ECC_H__ */