Merge branch 'timers/urgent' into timers/core
[sfrench/cifs-2.6.git] / include / linux / platform_data / mtd-onenand-omap2.h
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
10 #ifndef __MTD_ONENAND_OMAP2_H
11 #define __MTD_ONENAND_OMAP2_H
12
13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/partitions.h>
15
16 #define ONENAND_SYNC_READ       (1 << 0)
17 #define ONENAND_SYNC_READWRITE  (1 << 1)
18 #define ONENAND_IN_OMAP34XX     (1 << 2)
19
20 struct omap_onenand_platform_data {
21         int                     cs;
22         int                     gpio_irq;
23         struct mtd_partition    *parts;
24         int                     nr_parts;
25         int                     (*onenand_setup)(void __iomem *, int *freq_ptr);
26         int                     dma_channel;
27         u8                      flags;
28         u8                      regulator_can_sleep;
29         u8                      skip_initial_unlocking;
30
31         /* for passing the partitions */
32         struct device_node      *of_node;
33 };
34 #endif