Commit | Line | Data |
---|---|---|
8777297b | 1 | /* |
8777297b KS |
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 | ||
b6ab13e7 AM |
10 | #ifndef __MTD_ONENAND_OMAP2_H |
11 | #define __MTD_ONENAND_OMAP2_H | |
12 | ||
aa62e90f | 13 | #include <linux/mtd/mtd.h> |
8777297b KS |
14 | #include <linux/mtd/partitions.h> |
15 | ||
aa62e90f JY |
16 | #define ONENAND_SYNC_READ (1 << 0) |
17 | #define ONENAND_SYNC_READWRITE (1 << 1) | |
eb77b6a7 | 18 | #define ONENAND_IN_OMAP34XX (1 << 2) |
aa62e90f | 19 | |
8777297b KS |
20 | struct omap_onenand_platform_data { |
21 | int cs; | |
22 | int gpio_irq; | |
23 | struct mtd_partition *parts; | |
24 | int nr_parts; | |
3ad2d861 | 25 | int (*onenand_setup)(void __iomem *, int *freq_ptr); |
8777297b | 26 | int dma_channel; |
aa62e90f | 27 | u8 flags; |
9ac4e613 | 28 | u8 regulator_can_sleep; |
c93ff6bf | 29 | u8 skip_initial_unlocking; |
dc75eb36 EG |
30 | |
31 | /* for passing the partitions */ | |
32 | struct device_node *of_node; | |
8777297b | 33 | }; |
aa62e90f | 34 | #endif |