Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
[pandora-kernel.git] / arch / blackfin / include / asm / nand.h
1 /*
2  * BF5XX - NAND flash controller platform_device info
3  *
4  * Copyright 2007-2008 Analog Devices, Inc.
5  *
6  * Licensed under the GPL-2
7  */
8
9 /* struct bf5xx_nand_platform
10  *
11  * define a interface between platform board specific code and
12  * bf54x NFC driver.
13  *
14  * nr_partitions = number of partitions pointed to be partitoons (or zero)
15  * partitions    = mtd partition list
16  */
17
18 #define NFC_PG_SIZE_256         0
19 #define NFC_PG_SIZE_512         1
20 #define NFC_PG_SIZE_OFFSET      9
21
22 #define NFC_NWIDTH_8            0
23 #define NFC_NWIDTH_16           1
24 #define NFC_NWIDTH_OFFSET       8
25
26 #define NFC_RDDLY_OFFSET        4
27 #define NFC_WRDLY_OFFSET        0
28
29 #define NFC_STAT_NBUSY          1
30
31 struct bf5xx_nand_platform {
32         /* NAND chip information */
33         unsigned short          page_size;
34         unsigned short          data_width;
35
36         /* RD/WR strobe delay timing information, all times in SCLK cycles */
37         unsigned short          rd_dly;
38         unsigned short          wr_dly;
39
40         /* NAND MTD partition information */
41         int                     nr_partitions;
42         struct mtd_partition    *partitions;
43 };