Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 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 | |
| 12 | #include <linux/mtd/partitions.h> |
| 13 | |
| 14 | struct omap_onenand_platform_data { |
| 15 | int cs; |
| 16 | int gpio_irq; |
| 17 | struct mtd_partition *parts; |
| 18 | int nr_parts; |
David Woodhouse | 742c525 | 2008-08-12 11:28:00 +0100 | [diff] [blame] | 19 | int (*onenand_setup)(void __iomem *, int freq); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | int dma_channel; |
| 21 | }; |
David Woodhouse | 742c525 | 2008-08-12 11:28:00 +0100 | [diff] [blame] | 22 | |
| 23 | int omap2_onenand_rephase(void); |
| 24 | |
| 25 | #define ONENAND_MAX_PARTITIONS 8 |