nand.h 566 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (c) 2015 Zhang, Keguang <[email protected]>
  4. *
  5. * Loongson 1 NAND platform support.
  6. */
  7. #ifndef __ASM_MACH_LOONGSON32_NAND_H
  8. #define __ASM_MACH_LOONGSON32_NAND_H
  9. #include <linux/dmaengine.h>
  10. #include <linux/mtd/partitions.h>
  11. struct plat_ls1x_nand {
  12. struct mtd_partition *parts;
  13. unsigned int nr_parts;
  14. int hold_cycle;
  15. int wait_cycle;
  16. };
  17. extern struct plat_ls1x_nand ls1b_nand_pdata;
  18. bool ls1x_dma_filter_fn(struct dma_chan *chan, void *param);
  19. #endif /* __ASM_MACH_LOONGSON32_NAND_H */