Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nand.h
Go to the documentation of this file.
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_OFFSET 9
19 
20 #define NFC_NWIDTH_8 0
21 #define NFC_NWIDTH_16 1
22 #define NFC_NWIDTH_OFFSET 8
23 
24 #define NFC_RDDLY_OFFSET 4
25 #define NFC_WRDLY_OFFSET 0
26 
27 #define NFC_STAT_NBUSY 1
28 
30  /* NAND chip information */
31  unsigned short data_width;
32 
33  /* RD/WR strobe delay timing information, all times in SCLK cycles */
34  unsigned short rd_dly;
35  unsigned short wr_dly;
36 
37  /* NAND MTD partition information */
40 };