X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fnand.h;h=f4b217904e20182c1945b75a94c1bfbb1922b433;hb=47d79dfb0b72c81464c88aaa12769bf2926fb2b1;hp=51a77344c563c5490c05777b6c95d9d2964a1b27;hpb=b401956a8e6fcf052cebd392efaccceb6891b354;p=karo-tx-uboot.git diff --git a/include/nand.h b/include/nand.h index 51a77344c5..f4b217904e 100644 --- a/include/nand.h +++ b/include/nand.h @@ -88,15 +88,16 @@ typedef struct nand_erase_options nand_erase_options_t; int nand_read_skip_bad(nand_info_t *nand, loff_t offset, size_t *length, size_t *actual, loff_t lim, u_char *buffer); -#define WITH_YAFFS_OOB (1 << 0) /* whether write with yaffs format. This flag - * is a 'mode' meaning it cannot be mixed with - * other flags */ -#define WITH_DROP_FFS (1 << 1) /* drop trailing all-0xff pages */ +#define WITH_DROP_FFS (1 << 0) /* drop trailing all-0xff pages */ +#define WITH_WR_VERIFY (1 << 1) /* verify data was written correctly */ int nand_write_skip_bad(nand_info_t *nand, loff_t offset, size_t *length, size_t *actual, loff_t lim, u_char *buffer, int flags); int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts); int nand_torture(nand_info_t *nand, loff_t offset); +int nand_verify_page_oob(nand_info_t *nand, struct mtd_oob_ops *ops, + loff_t ofs); +int nand_verify(nand_info_t *nand, loff_t ofs, size_t len, u_char *buf); #define NAND_LOCK_STATUS_TIGHT 0x01 #define NAND_LOCK_STATUS_UNLOCK 0x04