summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-11 13:11:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-11 13:11:07 +0100
commit2881f2df35d15754874e90be112d67f33088326f (patch)
treec39b98cd54bdeb3fb37e5672ba8ff1759fd16eed /include/linux/mtd
parentb9a2512aaa22086dc84db3f55a0d912b206c11e3 (diff)
parent69528e8b79aa67e1eb946689fac970ab3aee53a4 (diff)
downloadbarebox-2881f2df35d15754874e90be112d67f33088326f.tar.gz
barebox-2881f2df35d15754874e90be112d67f33088326f.tar.xz
Merge branch 'for-next/mtd'
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index f126cd9fbf..83d664e7ee 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -46,6 +46,11 @@ extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
/* unlocks specified locked blocks */
extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
+extern int nand_check_erased_ecc_chunk(void *data, int datalen,
+ void *ecc, int ecclen,
+ void *extraoob, int extraooblen,
+ int bitflips_threshold);
+
/* The maximum number of NAND chips in an array */
#define NAND_MAX_CHIPS 8