mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
db66e32e0d
commit
730a43fbc1
2 changed files with 133 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue