SPEAr : Support added for SPEAr310 board
[oweals/u-boot.git] / include / configs / spear3xx.h
1 /*
2  * (C) Copyright 2009
3  * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23
24 #ifndef __CONFIG_H
25 #define __CONFIG_H
26
27 /*
28  * High Level Configuration Options
29  * (easy to change)
30  */
31 #if defined(CONFIG_MK_spear300)
32 #define CONFIG_SPEAR3XX                         1
33 #define CONFIG_SPEAR300                         1
34 #elif defined(CONFIG_MK_spear310)
35 #define CONFIG_SPEAR3XX                         1
36 #define CONFIG_SPEAR310                         1
37 #endif
38
39 #include <configs/spear-common.h>
40
41 /* Serial Configuration (PL011) */
42 #define CONFIG_SYS_SERIAL0                      0xD0000000
43
44 #if defined(CONFIG_SPEAR300)
45 #define CONFIG_PL01x_PORTS                      {(void *)CONFIG_SYS_SERIAL0}
46
47 #elif defined(CONFIG_SPEAR310)
48
49 #if (CONFIG_CONS_INDEX)
50 #undef  CONFIG_PL011_CLOCK
51 #define CONFIG_PL011_CLOCK                      (83 * 1000 * 1000)
52 #endif
53
54 #define CONFIG_SYS_SERIAL1                      0xB2000000
55 #define CONFIG_SYS_SERIAL2                      0xB2080000
56 #define CONFIG_SYS_SERIAL3                      0xB2100000
57 #define CONFIG_SYS_SERIAL4                      0xB2180000
58 #define CONFIG_SYS_SERIAL5                      0xB2200000
59 #define CONFIG_PL01x_PORTS                      {(void *)CONFIG_SYS_SERIAL0, \
60                                                 (void *)CONFIG_SYS_SERIAL1, \
61                                                 (void *)CONFIG_SYS_SERIAL2, \
62                                                 (void *)CONFIG_SYS_SERIAL3, \
63                                                 (void *)CONFIG_SYS_SERIAL4, \
64                                                 (void *)CONFIG_SYS_SERIAL5 }
65 #endif
66
67 #if defined(CONFIG_SPEAR_EMI)
68
69 #define CONFIG_SYS_FLASH_CFI
70 #define CONFIG_FLASH_CFI_DRIVER
71
72 #if defined(CONFIG_SPEAR310)
73 #define CONFIG_SYS_FLASH_BASE                   0x50000000
74 #define CONFIG_SYS_CS1_FLASH_BASE               0x60000000
75 #define CONFIG_SYS_CS2_FLASH_BASE               0x70000000
76 #define CONFIG_SYS_CS3_FLASH_BASE               0x80000000
77 #define CONFIG_SYS_CS4_FLASH_BASE               0x90000000
78 #define CONFIG_SYS_CS5_FLASH_BASE               0xA0000000
79 #define CONFIG_SYS_FLASH_BANKS_LIST             { CONFIG_SYS_FLASH_BASE,   \
80                                                 CONFIG_SYS_CS1_FLASH_BASE, \
81                                                 CONFIG_SYS_CS2_FLASH_BASE, \
82                                                 CONFIG_SYS_CS3_FLASH_BASE, \
83                                                 CONFIG_SYS_CS4_FLASH_BASE, \
84                                                 CONFIG_SYS_CS5_FLASH_BASE }
85 #define CONFIG_SYS_MAX_FLASH_BANKS              6
86
87 #endif
88
89 #define CONFIG_SYS_MAX_FLASH_SECT               (127 + 8)
90 #define CONFIG_SYS_FLASH_QUIET_TEST             1
91
92 #endif
93
94 #if defined(CONFIG_SPEAR300)
95 #define CONFIG_SYS_NAND_BASE                    (0x80000000)
96
97 #elif defined(CONFIG_SPEAR310)
98 #define CONFIG_SYS_NAND_BASE                    (0x40000000)
99
100 #endif
101
102 #endif  /* __CONFIG_H */