Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_ARCH_PXA3XX_NAND_H
0003 #define __ASM_ARCH_PXA3XX_NAND_H
0004 
0005 #include <linux/mtd/mtd.h>
0006 #include <linux/mtd/partitions.h>
0007 
0008 /*
0009  * Current pxa3xx_nand controller has two chip select which both be workable but
0010  * historically all platforms remaining on platform data used only one. Switch
0011  * to device tree if you need more.
0012  */
0013 struct pxa3xx_nand_platform_data {
0014     /* Keep OBM/bootloader NFC timing configuration */
0015     bool keep_config;
0016     /* Use a flash-based bad block table */
0017     bool flash_bbt;
0018     /* Requested ECC strength and ECC step size */
0019     int ecc_strength, ecc_step_size;
0020     /* Partitions */
0021     const struct mtd_partition *parts;
0022     unsigned int nr_parts;
0023 };
0024 
0025 extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info);
0026 
0027 #endif /* __ASM_ARCH_PXA3XX_NAND_H */