xref: /OK3568_Linux_fs/kernel/include/linux/mtd/sharpsl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * SharpSL NAND support
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2008 Dmitry Baryshkov
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef _MTD_SHARPSL_H
9*4882a593Smuzhiyun #define _MTD_SHARPSL_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include <linux/mtd/rawnand.h>
12*4882a593Smuzhiyun #include <linux/mtd/nand_ecc.h>
13*4882a593Smuzhiyun #include <linux/mtd/partitions.h>
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun struct sharpsl_nand_platform_data {
16*4882a593Smuzhiyun 	struct nand_bbt_descr	*badblock_pattern;
17*4882a593Smuzhiyun 	const struct mtd_ooblayout_ops *ecc_layout;
18*4882a593Smuzhiyun 	struct mtd_partition	*partitions;
19*4882a593Smuzhiyun 	unsigned int		nr_partitions;
20*4882a593Smuzhiyun 	const char *const	*part_parsers;
21*4882a593Smuzhiyun };
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #endif /* _MTD_SHARPSL_H */
24