mtd-onenand-omap2.h 829 B

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