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