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 #include <linux/mtd/mtd.h>
13 #include <linux/mtd/partitions.h>
15 #define ONENAND_SYNC_READ (1 << 0)
16 #define ONENAND_SYNC_READWRITE (1 << 1)
18 struct omap_onenand_platform_data {
21 struct mtd_partition *parts;
23 int (*onenand_setup)(void __iomem *, int freq);
28 #define ONENAND_MAX_PARTITIONS 8
30 #if defined(CONFIG_MTD_ONENAND_OMAP2) || \
31 defined(CONFIG_MTD_ONENAND_OMAP2_MODULE)
33 extern void gpmc_onenand_init(struct omap_onenand_platform_data *d);
37 #define board_onenand_data NULL
39 static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d)