2019-05-19 21:51:31 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2008-09-02 23:16:59 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
|
|
|
|
* Copyright 2008 Sascha Hauer, kernel@pengutronix.de
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_NAND_H
|
|
|
|
#define __ASM_ARCH_NAND_H
|
|
|
|
|
2010-05-31 13:49:40 +08:00
|
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
|
2008-09-02 23:16:59 +08:00
|
|
|
struct mxc_nand_platform_data {
|
2010-06-16 12:45:15 +08:00
|
|
|
unsigned int width; /* data bus width in bytes */
|
2011-03-31 09:57:33 +08:00
|
|
|
unsigned int hw_ecc:1; /* 0 if suppress hardware ECC */
|
2010-06-16 12:45:15 +08:00
|
|
|
unsigned int flash_bbt:1; /* set to 1 to use a flash based bbt */
|
2010-05-31 13:49:40 +08:00
|
|
|
struct mtd_partition *parts; /* partition table */
|
|
|
|
int nr_parts; /* size of parts */
|
2008-09-02 23:16:59 +08:00
|
|
|
};
|
|
|
|
#endif /* __ASM_ARCH_NAND_H */
|