ASoC: wm_adsp: Separate concept of booted and running
[linux-2.6/btrfs-unstable.git] / include / linux / platform_data / mtd-onenand-omap2.h
blob56ff0e6f5ad1dae5bfe9d774a71cb85a32856afa
1 /*
2 * Copyright (C) 2006 Nokia Corporation
3 * Author: Juha Yrjola
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 */
10 #ifndef __MTD_ONENAND_OMAP2_H
11 #define __MTD_ONENAND_OMAP2_H
13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/partitions.h>
16 #define ONENAND_SYNC_READ (1 << 0)
17 #define ONENAND_SYNC_READWRITE (1 << 1)
18 #define ONENAND_IN_OMAP34XX (1 << 2)
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;
31 /* for passing the partitions */
32 struct device_node *of_node;
34 #endif