2 * Copyright (C) 2006 Nokia Corporation
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.
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
{
23 struct mtd_partition
*parts
;
25 int (*onenand_setup
)(void __iomem
*, int *freq_ptr
);
28 u8 regulator_can_sleep
;
29 u8 skip_initial_unlocking
;
31 /* for passing the partitions */
32 struct device_node
*of_node
;