nand.h 927 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/arm/plat-omap/include/mach/nand.h
  3. *
  4. * Copyright (C) 2006 Micron Technology Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/mtd/partitions.h>
  11. struct omap_nand_platform_data {
  12. unsigned int options;
  13. int cs;
  14. int gpio_irq;
  15. struct mtd_partition *parts;
  16. struct gpmc_timings *gpmc_t;
  17. int nr_parts;
  18. int (*nand_setup)(void);
  19. int (*dev_ready)(struct omap_nand_platform_data *);
  20. int dma_channel;
  21. unsigned long phys_base;
  22. int devsize;
  23. };
  24. /* minimum size for IO mapping */
  25. #define NAND_IO_SIZE 4
  26. #if defined(CONFIG_MTD_NAND_OMAP2) || defined(CONFIG_MTD_NAND_OMAP2_MODULE)
  27. extern int gpmc_nand_init(struct omap_nand_platform_data *d);
  28. #else
  29. static inline int gpmc_nand_init(struct omap_nand_platform_data *d)
  30. {
  31. return 0;
  32. }
  33. #endif