2007-01-26 22:14:34 +01: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.
|
|
|
|
*/
|
|
|
|
|
2012-09-29 07:02:42 +02:00
|
|
|
#ifndef __MTD_ONENAND_OMAP2_H
|
|
|
|
#define __MTD_ONENAND_OMAP2_H
|
|
|
|
|
2009-05-28 22:23:52 +02:00
|
|
|
#include <linux/mtd/mtd.h>
|
2007-01-26 22:14:34 +01:00
|
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
|
2009-05-28 22:23:52 +02:00
|
|
|
#define ONENAND_SYNC_READ (1 << 0)
|
|
|
|
#define ONENAND_SYNC_READWRITE (1 << 1)
|
2012-10-05 08:09:54 +02:00
|
|
|
#define ONENAND_IN_OMAP34XX (1 << 2)
|
2009-05-28 22:23:52 +02:00
|
|
|
|
2007-01-26 22:14:34 +01:00
|
|
|
struct omap_onenand_platform_data {
|
|
|
|
int cs;
|
|
|
|
int gpio_irq;
|
|
|
|
struct mtd_partition *parts;
|
|
|
|
int nr_parts;
|
2011-02-07 09:46:59 +01:00
|
|
|
int (*onenand_setup)(void __iomem *, int *freq_ptr);
|
2007-01-26 22:14:34 +01:00
|
|
|
int dma_channel;
|
2009-05-28 22:23:52 +02:00
|
|
|
u8 flags;
|
2010-02-19 15:39:53 +01:00
|
|
|
u8 regulator_can_sleep;
|
2011-02-17 12:44:42 +01:00
|
|
|
u8 skip_initial_unlocking;
|
2013-01-25 13:23:09 +01:00
|
|
|
|
|
|
|
/* for passing the partitions */
|
|
|
|
struct device_node *of_node;
|
2007-01-26 22:14:34 +01:00
|
|
|
};
|
2009-05-28 22:23:52 +02:00
|
|
|
#endif
|