2007-01-26 16:14:34 -05:00
|
|
|
/*
|
2008-08-05 11:14:15 -04:00
|
|
|
* arch/arm/plat-omap/include/mach/onenand.h
|
2007-01-26 16:14:34 -05:00
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Nokia Corporation
|
|
|
|
* Author: Juha Yrjola
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2009-05-28 16:23:52 -04:00
|
|
|
#include <linux/mtd/mtd.h>
|
2007-01-26 16:14:34 -05:00
|
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
|
2009-05-28 16:23:52 -04:00
|
|
|
#define ONENAND_SYNC_READ (1 << 0)
|
|
|
|
#define ONENAND_SYNC_READWRITE (1 << 1)
|
|
|
|
|
2007-01-26 16:14:34 -05:00
|
|
|
struct omap_onenand_platform_data {
|
|
|
|
int cs;
|
|
|
|
int gpio_irq;
|
|
|
|
struct mtd_partition *parts;
|
|
|
|
int nr_parts;
|
2008-08-06 03:08:46 -04:00
|
|
|
int (*onenand_setup)(void __iomem *, int freq);
|
2007-01-26 16:14:34 -05:00
|
|
|
int dma_channel;
|
2009-05-28 16:23:52 -04:00
|
|
|
u8 flags;
|
2007-01-26 16:14:34 -05:00
|
|
|
};
|
2008-08-06 03:08:46 -04:00
|
|
|
|
|
|
|
#define ONENAND_MAX_PARTITIONS 8
|
2009-05-28 16:23:52 -04:00
|
|
|
|
|
|
|
#if defined(CONFIG_MTD_ONENAND_OMAP2) || \
|
|
|
|
defined(CONFIG_MTD_ONENAND_OMAP2_MODULE)
|
|
|
|
|
|
|
|
extern void gpmc_onenand_init(struct omap_onenand_platform_data *d);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define board_onenand_data NULL
|
|
|
|
|
|
|
|
static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|