Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / blackfin / include / asm / nand.h
blob256c50d8d46570e5f82cee6bb2e729e20bf30208
1 /*
2 * BF5XX - NAND flash controller platform_device info
4 * Copyright 2007-2008 Analog Devices, Inc.
6 * Licensed under the GPL-2
7 */
9 /* struct bf5xx_nand_platform
11 * define a interface between platform board specific code and
12 * bf54x NFC driver.
14 * nr_partitions = number of partitions pointed to be partitoons (or zero)
15 * partitions = mtd partition list
18 #define NFC_PG_SIZE_OFFSET 9
20 #define NFC_NWIDTH_8 0
21 #define NFC_NWIDTH_16 1
22 #define NFC_NWIDTH_OFFSET 8
24 #define NFC_RDDLY_OFFSET 4
25 #define NFC_WRDLY_OFFSET 0
27 #define NFC_STAT_NBUSY 1
29 struct bf5xx_nand_platform {
30 /* NAND chip information */
31 unsigned short data_width;
33 /* RD/WR strobe delay timing information, all times in SCLK cycles */
34 unsigned short rd_dly;
35 unsigned short wr_dly;
37 /* NAND MTD partition information */
38 int nr_partitions;
39 struct mtd_partition *partitions;