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