diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-09-03 18:03:38 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-09-21 15:35:04 -0700 |
commit | 730a43fbc135e593cc3de3b1b895e49c05c8e2dc (patch) | |
tree | 1f8c818f841c4fa8125d7fce61d04423e95c8264 /include/linux/mtd | |
parent | db66e32e0d2ae1f5070faa589aa460b75780ab47 (diff) |
mtd: nand: add nand_check_erased helper functions
Add two helper functions to help NAND controller drivers test whether a
specific NAND region is erased or not.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/nand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 3140b3d94838..c4d8e308f453 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -1030,4 +1030,9 @@ struct nand_sdr_timings { /* get timing characteristics from ONFI timing mode. */ const struct nand_sdr_timings *onfi_async_timing_mode_to_sdr_timings(int mode); + +int nand_check_erased_ecc_chunk(void *data, int datalen, + void *ecc, int ecclen, + void *extraoob, int extraooblen, + int threshold); #endif /* __LINUX_MTD_NAND_H */ |