Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpmi-nand.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __MACH_MXS_GPMI_NAND_H__
20 #define __MACH_MXS_GPMI_NAND_H__
21 
22 /* The size of the resources is fixed. */
23 #define GPMI_NAND_RES_SIZE 6
24 
25 /* Resource names for the GPMI NAND driver. */
26 #define GPMI_NAND_GPMI_REGS_ADDR_RES_NAME "gpmi-nand"
27 #define GPMI_NAND_GPMI_INTERRUPT_RES_NAME "GPMI NAND GPMI Interrupt"
28 #define GPMI_NAND_BCH_REGS_ADDR_RES_NAME "bch"
29 #define GPMI_NAND_BCH_INTERRUPT_RES_NAME "bch"
30 #define GPMI_NAND_DMA_CHANNELS_RES_NAME "GPMI NAND DMA Channels"
31 #define GPMI_NAND_DMA_INTERRUPT_RES_NAME "gpmi-dma"
32 
56  /* SoC hardware information. */
58 
59  /* NAND Flash information. */
60  unsigned int min_prop_delay_in_ns;
61  unsigned int max_prop_delay_in_ns;
62  unsigned int max_chip_count;
63 
64  /* Medium information. */
66  unsigned partition_count;
67 };
68 #endif