1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef __ASM_ARCH_PXA3XX_NAND_H 3*4882a593Smuzhiyun #define __ASM_ARCH_PXA3XX_NAND_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <linux/mtd/mtd.h> 6*4882a593Smuzhiyun #include <linux/mtd/partitions.h> 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun /* 9*4882a593Smuzhiyun * Current pxa3xx_nand controller has two chip select which both be workable but 10*4882a593Smuzhiyun * historically all platforms remaining on platform data used only one. Switch 11*4882a593Smuzhiyun * to device tree if you need more. 12*4882a593Smuzhiyun */ 13*4882a593Smuzhiyun struct pxa3xx_nand_platform_data { 14*4882a593Smuzhiyun /* Keep OBM/bootloader NFC timing configuration */ 15*4882a593Smuzhiyun bool keep_config; 16*4882a593Smuzhiyun /* Use a flash-based bad block table */ 17*4882a593Smuzhiyun bool flash_bbt; 18*4882a593Smuzhiyun /* Requested ECC strength and ECC step size */ 19*4882a593Smuzhiyun int ecc_strength, ecc_step_size; 20*4882a593Smuzhiyun /* Partitions */ 21*4882a593Smuzhiyun const struct mtd_partition *parts; 22*4882a593Smuzhiyun unsigned int nr_parts; 23*4882a593Smuzhiyun }; 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info); 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun #endif /* __ASM_ARCH_PXA3XX_NAND_H */ 28