diff options
| author | Tom Rini <trini@ti.com> | 2013-11-25 10:42:13 -0500 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-11-25 10:42:13 -0500 | 
| commit | faca8ff55f4a2cf45fb906cc37f44601149fc00e (patch) | |
| tree | 181e94fa3326f2ec97f0287f3bbbe54ccd3b13d1 /include/linux/mtd/mtd.h | |
| parent | 5a4fe1aaf1210b02bb98e347993ffbcffeb4ffaa (diff) | |
| parent | 2c17e6d1d996a1b8b9325de15f253a13d5877dee (diff) | |
| download | olio-uboot-2014.01-faca8ff55f4a2cf45fb906cc37f44601149fc00e.tar.xz olio-uboot-2014.01-faca8ff55f4a2cf45fb906cc37f44601149fc00e.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'include/linux/mtd/mtd.h')
| -rw-r--r-- | include/linux/mtd/mtd.h | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 6f44abdc1..a65b68155 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -96,6 +96,29 @@ struct mtd_oob_ops {  	uint8_t		*oobbuf;  }; +#ifdef CONFIG_SYS_NAND_MAX_OOBFREE +#define MTD_MAX_OOBFREE_ENTRIES_LARGE	CONFIG_SYS_NAND_MAX_OOBFREE +#else +#define MTD_MAX_OOBFREE_ENTRIES_LARGE	32 +#endif + +#ifdef CONFIG_SYS_NAND_MAX_ECCPOS +#define MTD_MAX_ECCPOS_ENTRIES_LARGE	CONFIG_SYS_NAND_MAX_ECCPOS +#else +#define MTD_MAX_ECCPOS_ENTRIES_LARGE	640 +#endif + +/* + * ECC layout control structure. Exported to userspace for + * diagnosis and to allow creation of raw images + */ +struct nand_ecclayout { +	uint32_t eccbytes; +	uint32_t eccpos[MTD_MAX_ECCPOS_ENTRIES_LARGE]; +	uint32_t oobavail; +	struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES_LARGE]; +}; +  struct mtd_info {  	u_char type;  	u_int32_t flags; |