2 * (C) Copyright 2006-2008
3 * Texas Instruments, <www.ti.com>
6 * Mansoor Ahamed <mansoor.ahamed@ti.com>
9 * Richard Woodruff <r-woodruff2@ti.com>
11 * See file CREDITS for list of people who contributed to this
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of
17 * the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
35 * Definitions is as per the following format
36 * #define <PART>_GPMC_CONFIG<x> <value>
38 * PART is the part name e.g. STNOR - Intel Strata Flash
39 * x is GPMC config registers from 1 to 6 (there will be 6 macros)
40 * Value is corresponding value
42 * For every valid PRCM configuration there should be only one definition of
43 * the same. if values are independent of the board, this definition will be
44 * present in this file if values are dependent on the board, then this should
45 * go into corresponding mem-boardName.h file
47 * Currently valid part Names are (PART):
48 * M_NAND - Micron NAND
50 #define GPMC_SIZE_256M 0x0
51 #define GPMC_SIZE_128M 0x8
52 #define GPMC_SIZE_64M 0xC
53 #define GPMC_SIZE_32M 0xE
54 #define GPMC_SIZE_16M 0xF
56 #define M_NAND_GPMC_CONFIG1 0x00000800
57 #define M_NAND_GPMC_CONFIG2 0x001e1e00
58 #define M_NAND_GPMC_CONFIG3 0x001e1e00
59 #define M_NAND_GPMC_CONFIG4 0x16051807
60 #define M_NAND_GPMC_CONFIG5 0x00151e1e
61 #define M_NAND_GPMC_CONFIG6 0x16000f80
62 #define M_NAND_GPMC_CONFIG7 0x00000008
64 /* max number of GPMC Chip Selects */
66 /* max number of GPMC regs */
67 #define GPMC_MAX_REG 7
73 #define PISMO1_ONENAND 5
75 #define PISMO2_NAND_CS0 7
76 #define PISMO2_NAND_CS1 8
78 /* make it readable for the gpmc_init */
79 #define PISMO1_NOR_BASE FLASH_BASE
80 #define PISMO1_NAND_BASE CONFIG_SYS_NAND_BASE
81 #define PISMO1_NAND_SIZE GPMC_SIZE_256M
83 #endif /* endif _MEM_H_ */