blob: 56ff0e6f5ad1dae5bfe9d774a71cb85a32856afa [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
Russell Kinga09e64f2008-08-05 16:14:15 +01002 * Copyright (C) 2006 Nokia Corporation
3 * Author: Juha Yrjola
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9
Afzal Mohammedb6ab13e2012-09-29 10:32:42 +053010#ifndef __MTD_ONENAND_OMAP2_H
11#define __MTD_ONENAND_OMAP2_H
12
Juha Yrjolaaa62e902009-05-28 13:23:52 -070013#include <linux/mtd/mtd.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010014#include <linux/mtd/partitions.h>
15
Juha Yrjolaaa62e902009-05-28 13:23:52 -070016#define ONENAND_SYNC_READ (1 << 0)
17#define ONENAND_SYNC_READWRITE (1 << 1)
Afzal Mohammedeb77b6a2012-10-05 11:39:54 +053018#define ONENAND_IN_OMAP34XX (1 << 2)
Juha Yrjolaaa62e902009-05-28 13:23:52 -070019
Russell Kinga09e64f2008-08-05 16:14:15 +010020struct omap_onenand_platform_data {
21 int cs;
22 int gpio_irq;
23 struct mtd_partition *parts;
24 int nr_parts;
Adrian Hunter3ad2d862011-02-07 10:46:59 +020025 int (*onenand_setup)(void __iomem *, int *freq_ptr);
Russell Kinga09e64f2008-08-05 16:14:15 +010026 int dma_channel;
Juha Yrjolaaa62e902009-05-28 13:23:52 -070027 u8 flags;
Adrian Hunter9ac4e612010-02-19 15:39:53 +010028 u8 regulator_can_sleep;
Roman Tereshonkovc93ff6b2011-02-17 13:44:42 +020029 u8 skip_initial_unlocking;
Ezequiel Garciadc75eb32013-01-25 09:23:09 -030030
31 /* for passing the partitions */
32 struct device_node *of_node;
Russell Kinga09e64f2008-08-05 16:14:15 +010033};
Juha Yrjolaaa62e902009-05-28 13:23:52 -070034#endif