2 * BF5XX - NAND flash controller platfrom_device info
4 * Copyright 2007-2008 Analog Devices, Inc.
6 * Licensed under the GPL-2
9 /* struct bf5xx_nand_platform
11 * define a interface between platfrom board specific code and
14 * nr_partitions = number of partitions pointed to be partitoons (or zero)
15 * partitions = mtd partition list
18 #define NFC_PG_SIZE_256 0
19 #define NFC_PG_SIZE_512 1
20 #define NFC_PG_SIZE_OFFSET 9
22 #define NFC_NWIDTH_8 0
23 #define NFC_NWIDTH_16 1
24 #define NFC_NWIDTH_OFFSET 8
26 #define NFC_RDDLY_OFFSET 4
27 #define NFC_WRDLY_OFFSET 0
29 #define NFC_STAT_NBUSY 1
31 struct bf5xx_nand_platform
{
32 /* NAND chip information */
33 unsigned short page_size
;
34 unsigned short data_width
;
36 /* RD/WR strobe delay timing information, all times in SCLK cycles */
37 unsigned short rd_dly
;
38 unsigned short wr_dly
;
40 /* NAND MTD partition information */
42 struct mtd_partition
*partitions
;