nand.h 824 字节
Newer Older
1
/*
2
 * arch/arm/plat-omap/include/mach/nand.h
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * Copyright (C) 2006 Micron Technology Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/mtd/partitions.h>

struct omap_nand_platform_data {
	unsigned int		options;
	int			cs;
	int			gpio_irq;
	struct mtd_partition	*parts;
18
	struct gpmc_timings	*gpmc_t;
19
	int			nr_parts;
20
	int			(*nand_setup)(void);
21 22
	int			(*dev_ready)(struct omap_nand_platform_data *);
	int			dma_channel;
23
	unsigned long		phys_base;
24 25
	void __iomem		*gpmc_cs_baseaddr;
	void __iomem		*gpmc_baseaddr;
26
	int			devsize;
27
};
28 29 30 31 32

/* size (4 KiB) for IO mapping */
#define	NAND_IO_SIZE	SZ_4K

extern int gpmc_nand_init(struct omap_nand_platform_data *d);