blob: e9a9fb188f972555172349a8e0250ac237c7db5d [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
2 * arch/arm/plat-omap/include/mach/onenand.h
3 *
4 * Copyright (C) 2006 Nokia Corporation
5 * Author: Juha Yrjola
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
Afzal Mohammedb6ab13e2012-09-29 10:32:42 +053012#ifndef __MTD_ONENAND_OMAP2_H
13#define __MTD_ONENAND_OMAP2_H
14
Juha Yrjolaaa62e902009-05-28 13:23:52 -070015#include <linux/mtd/mtd.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010016#include <linux/mtd/partitions.h>
17
Juha Yrjolaaa62e902009-05-28 13:23:52 -070018#define ONENAND_SYNC_READ (1 << 0)
19#define ONENAND_SYNC_READWRITE (1 << 1)
Afzal Mohammedeb77b6a2012-10-05 11:39:54 +053020#define ONENAND_IN_OMAP34XX (1 << 2)
Juha Yrjolaaa62e902009-05-28 13:23:52 -070021
Russell Kinga09e64f2008-08-05 16:14:15 +010022struct omap_onenand_platform_data {
23 int cs;
24 int gpio_irq;
25 struct mtd_partition *parts;
26 int nr_parts;
Adrian Hunter3ad2d862011-02-07 10:46:59 +020027 int (*onenand_setup)(void __iomem *, int *freq_ptr);
Russell Kinga09e64f2008-08-05 16:14:15 +010028 int dma_channel;
Juha Yrjolaaa62e902009-05-28 13:23:52 -070029 u8 flags;
Adrian Hunter9ac4e612010-02-19 15:39:53 +010030 u8 regulator_can_sleep;
Roman Tereshonkovc93ff6b2011-02-17 13:44:42 +020031 u8 skip_initial_unlocking;
Ezequiel Garciadc75eb32013-01-25 09:23:09 -030032
33 /* for passing the partitions */
34 struct device_node *of_node;
Russell Kinga09e64f2008-08-05 16:14:15 +010035};
Juha Yrjolaaa62e902009-05-28 13:23:52 -070036#endif