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 | |
Afzal Mohammed | b6ab13e | 2012-09-29 10:32:42 +0530 | [diff] [blame] | 12 | #ifndef __MTD_ONENAND_OMAP2_H |
| 13 | #define __MTD_ONENAND_OMAP2_H |
| 14 | |
Juha Yrjola | aa62e90 | 2009-05-28 13:23:52 -0700 | [diff] [blame] | 15 | #include <linux/mtd/mtd.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 16 | #include <linux/mtd/partitions.h> |
| 17 | |
Juha Yrjola | aa62e90 | 2009-05-28 13:23:52 -0700 | [diff] [blame] | 18 | #define ONENAND_SYNC_READ (1 << 0) |
| 19 | #define ONENAND_SYNC_READWRITE (1 << 1) |
Afzal Mohammed | eb77b6a | 2012-10-05 11:39:54 +0530 | [diff] [blame] | 20 | #define ONENAND_IN_OMAP34XX (1 << 2) |
Juha Yrjola | aa62e90 | 2009-05-28 13:23:52 -0700 | [diff] [blame] | 21 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 22 | struct omap_onenand_platform_data { |
| 23 | int cs; |
| 24 | int gpio_irq; |
| 25 | struct mtd_partition *parts; |
| 26 | int nr_parts; |
Adrian Hunter | 3ad2d86 | 2011-02-07 10:46:59 +0200 | [diff] [blame] | 27 | int (*onenand_setup)(void __iomem *, int *freq_ptr); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 28 | int dma_channel; |
Juha Yrjola | aa62e90 | 2009-05-28 13:23:52 -0700 | [diff] [blame] | 29 | u8 flags; |
Adrian Hunter | 9ac4e61 | 2010-02-19 15:39:53 +0100 | [diff] [blame] | 30 | u8 regulator_can_sleep; |
Roman Tereshonkov | c93ff6b | 2011-02-17 13:44:42 +0200 | [diff] [blame] | 31 | u8 skip_initial_unlocking; |
Ezequiel Garcia | dc75eb3 | 2013-01-25 09:23:09 -0300 | [diff] [blame] | 32 | |
| 33 | /* for passing the partitions */ |
| 34 | struct device_node *of_node; |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 35 | }; |
Juha Yrjola | aa62e90 | 2009-05-28 13:23:52 -0700 | [diff] [blame] | 36 | #endif |