blob: 256c50d8d46570e5f82cee6bb2e729e20bf30208 [file] [log] [blame]
Robin Getz96f10502009-09-24 14:11:24 +00001/*
Stefan Weil947af292010-01-07 00:03:52 +01002 * BF5XX - NAND flash controller platform_device info
Bryan Wub37bde12007-10-02 13:56:05 -07003 *
Robin Getz96f10502009-09-24 14:11:24 +00004 * Copyright 2007-2008 Analog Devices, Inc.
5 *
6 * Licensed under the GPL-2
Bryan Wub37bde12007-10-02 13:56:05 -07007 */
8
9/* struct bf5xx_nand_platform
10 *
Stefan Weil947af292010-01-07 00:03:52 +010011 * define a interface between platform board specific code and
Bryan Wub37bde12007-10-02 13:56:05 -070012 * bf54x NFC driver.
13 *
14 * nr_partitions = number of partitions pointed to be partitoons (or zero)
15 * partitions = mtd partition list
16 */
17
Bryan Wub37bde12007-10-02 13:56:05 -070018#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
29struct bf5xx_nand_platform {
30 /* NAND chip information */
Bryan Wub37bde12007-10-02 13:56:05 -070031 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 */
38 int nr_partitions;
39 struct mtd_partition *partitions;
40};