xref: /OK3568_Linux_fs/kernel/include/linux/platform_data/mtd-mxc_nand.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
4*4882a593Smuzhiyun  * Copyright 2008 Sascha Hauer, kernel@pengutronix.de
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #ifndef __ASM_ARCH_NAND_H
8*4882a593Smuzhiyun #define __ASM_ARCH_NAND_H
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include <linux/mtd/partitions.h>
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun struct mxc_nand_platform_data {
13*4882a593Smuzhiyun 	unsigned int width;	/* data bus width in bytes */
14*4882a593Smuzhiyun 	unsigned int hw_ecc:1;	/* 0 if suppress hardware ECC */
15*4882a593Smuzhiyun 	unsigned int flash_bbt:1; /* set to 1 to use a flash based bbt */
16*4882a593Smuzhiyun 	struct mtd_partition *parts;	/* partition table */
17*4882a593Smuzhiyun 	int nr_parts;			/* size of parts */
18*4882a593Smuzhiyun };
19*4882a593Smuzhiyun #endif /* __ASM_ARCH_NAND_H */
20