mtd-nand-pxa3xx.h 812 B

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