blob: 6ba88d2630d900c082938cec434c826c47720760 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
2 * arch/arm/plat-omap/include/mach/nand.h
3 *
4 * Copyright (C) 2006 Micron Technology Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#include <linux/mtd/partitions.h>
12
13struct omap_nand_platform_data {
14 unsigned int options;
15 int cs;
16 int gpio_irq;
17 struct mtd_partition *parts;
Vimal Singh2f70a1e2010-02-15 10:03:33 -080018 struct gpmc_timings *gpmc_t;
Russell Kinga09e64f2008-08-05 16:14:15 +010019 int nr_parts;
Vimal Singh2f70a1e2010-02-15 10:03:33 -080020 int (*nand_setup)(void);
Russell Kinga09e64f2008-08-05 16:14:15 +010021 int (*dev_ready)(struct omap_nand_platform_data *);
22 int dma_channel;
Vimal Singh2f70a1e2010-02-15 10:03:33 -080023 unsigned long phys_base;
Russell Kinga09e64f2008-08-05 16:14:15 +010024 void __iomem *gpmc_cs_baseaddr;
25 void __iomem *gpmc_baseaddr;
Vimal Singh2f70a1e2010-02-15 10:03:33 -080026 int devsize;
Russell Kinga09e64f2008-08-05 16:14:15 +010027};
Vimal Singh2f70a1e2010-02-15 10:03:33 -080028
29/* size (4 KiB) for IO mapping */
30#define NAND_IO_SIZE SZ_4K
31
32extern int gpmc_nand_init(struct omap_nand_platform_data *d);