]> git.karo-electronics.de Git - linux-beck.git/blob - include/linux/platform_data/mtd-onenand-omap2.h
ARM: arm-soc: Merge branch 'next/clk' into next/pm
[linux-beck.git] / include / linux / platform_data / mtd-onenand-omap2.h
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 #ifndef __MTD_ONENAND_OMAP2_H
13 #define __MTD_ONENAND_OMAP2_H
14
15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/partitions.h>
17
18 #define ONENAND_SYNC_READ       (1 << 0)
19 #define ONENAND_SYNC_READWRITE  (1 << 1)
20 #define ONENAND_IN_OMAP34XX     (1 << 2)
21
22 struct omap_onenand_platform_data {
23         int                     cs;
24         int                     gpio_irq;
25         struct mtd_partition    *parts;
26         int                     nr_parts;
27         int                     (*onenand_setup)(void __iomem *, int *freq_ptr);
28         int                     dma_channel;
29         u8                      flags;
30         u8                      regulator_can_sleep;
31         u8                      skip_initial_unlocking;
32 };
33 #endif