2 * arch/arm/plat-omap/include/mach/onenand.h
4 * Copyright (C) 2006 Nokia Corporation
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.
12 #ifndef __MTD_ONENAND_OMAP2_H
13 #define __MTD_ONENAND_OMAP2_H
15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/partitions.h>
18 #define ONENAND_SYNC_READ (1 << 0)
19 #define ONENAND_SYNC_READWRITE (1 << 1)
20 #define ONENAND_IN_OMAP34XX (1 << 2)
22 struct omap_onenand_platform_data {
25 struct mtd_partition *parts;
27 int (*onenand_setup)(void __iomem *, int *freq_ptr);
30 u8 regulator_can_sleep;
31 u8 skip_initial_unlocking;