onenand.h 615 B

12345678910111213141516171819202122232425
  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. #include <linux/mtd/partitions.h>
  12. struct omap_onenand_platform_data {
  13. int cs;
  14. int gpio_irq;
  15. struct mtd_partition *parts;
  16. int nr_parts;
  17. int (*onenand_setup)(void __iomem *, int freq);
  18. int dma_channel;
  19. };
  20. int omap2_onenand_rephase(void);
  21. #define ONENAND_MAX_PARTITIONS 8