mtd-onenand-omap2.h 877 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * arch/arm/plat-omap/include/mach/onenand.h
  3. *
  4. * Copyright (C) 2006 Nokia Corporation
  5. * Author: Juha Yrjola
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __MTD_ONENAND_OMAP2_H
  12. #define __MTD_ONENAND_OMAP2_H
  13. #include <linux/mtd/mtd.h>
  14. #include <linux/mtd/partitions.h>
  15. #define ONENAND_SYNC_READ (1 << 0)
  16. #define ONENAND_SYNC_READWRITE (1 << 1)
  17. #define ONENAND_IN_OMAP34XX (1 << 2)
  18. struct omap_onenand_platform_data {
  19. int cs;
  20. int gpio_irq;
  21. struct mtd_partition *parts;
  22. int nr_parts;
  23. int (*onenand_setup)(void __iomem *, int *freq_ptr);
  24. int dma_channel;
  25. u8 flags;
  26. u8 regulator_can_sleep;
  27. u8 skip_initial_unlocking;
  28. /* for passing the partitions */
  29. struct device_node *of_node;
  30. };
  31. #endif