]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/spear3xx.h
035b32129dc2a7e94250e143ab046a7c2d771942
[karo-tx-uboot.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_spear300)
32 #define CONFIG_SPEAR3XX                         1
33 #define CONFIG_SPEAR300                         1
34 #elif defined(CONFIG_spear310)
35 #define CONFIG_SPEAR3XX                         1
36 #define CONFIG_SPEAR310                         1
37 #elif defined(CONFIG_spear320)
38 #define CONFIG_SPEAR3XX                         1
39 #define CONFIG_SPEAR320                         1
40 #endif
41
42 #include <configs/spear-common.h>
43
44 /* Ethernet driver configuration */
45 #define CONFIG_DW_ALTDESCRIPTOR                 1
46
47 /* Serial Configuration (PL011) */
48 #define CONFIG_SYS_SERIAL0                      0xD0000000
49
50 #if defined(CONFIG_SPEAR300)
51 #define CONFIG_PL01x_PORTS                      {(void *)CONFIG_SYS_SERIAL0}
52
53 #elif defined(CONFIG_SPEAR310)
54
55 #if (CONFIG_CONS_INDEX)
56 #undef  CONFIG_PL011_CLOCK
57 #define CONFIG_PL011_CLOCK                      (83 * 1000 * 1000)
58 #endif
59
60 #define CONFIG_SYS_SERIAL1                      0xB2000000
61 #define CONFIG_SYS_SERIAL2                      0xB2080000
62 #define CONFIG_SYS_SERIAL3                      0xB2100000
63 #define CONFIG_SYS_SERIAL4                      0xB2180000
64 #define CONFIG_SYS_SERIAL5                      0xB2200000
65 #define CONFIG_PL01x_PORTS                      {(void *)CONFIG_SYS_SERIAL0, \
66                                                 (void *)CONFIG_SYS_SERIAL1, \
67                                                 (void *)CONFIG_SYS_SERIAL2, \
68                                                 (void *)CONFIG_SYS_SERIAL3, \
69                                                 (void *)CONFIG_SYS_SERIAL4, \
70                                                 (void *)CONFIG_SYS_SERIAL5 }
71 #elif defined(CONFIG_SPEAR320)
72
73 #if (CONFIG_CONS_INDEX)
74 #undef  CONFIG_PL011_CLOCK
75 #define CONFIG_PL011_CLOCK                      (83 * 1000 * 1000)
76 #endif
77
78 #define CONFIG_SYS_SERIAL1                      0xA3000000
79 #define CONFIG_SYS_SERIAL2                      0xA4000000
80 #define CONFIG_PL01x_PORTS                      {(void *)CONFIG_SYS_SERIAL0, \
81                                                 (void *)CONFIG_SYS_SERIAL1, \
82                                                 (void *)CONFIG_SYS_SERIAL2 }
83 #endif
84
85 #if defined(CONFIG_SPEAR_EMI)
86
87 #define CONFIG_SYS_FLASH_CFI
88 #define CONFIG_FLASH_CFI_DRIVER
89
90 #if defined(CONFIG_SPEAR310)
91 #define CONFIG_SYS_FLASH_BASE                   0x50000000
92 #define CONFIG_SYS_CS1_FLASH_BASE               0x60000000
93 #define CONFIG_SYS_CS2_FLASH_BASE               0x70000000
94 #define CONFIG_SYS_CS3_FLASH_BASE               0x80000000
95 #define CONFIG_SYS_CS4_FLASH_BASE               0x90000000
96 #define CONFIG_SYS_CS5_FLASH_BASE               0xA0000000
97 #define CONFIG_SYS_FLASH_BANKS_LIST             { CONFIG_SYS_FLASH_BASE,   \
98                                                 CONFIG_SYS_CS1_FLASH_BASE, \
99                                                 CONFIG_SYS_CS2_FLASH_BASE, \
100                                                 CONFIG_SYS_CS3_FLASH_BASE, \
101                                                 CONFIG_SYS_CS4_FLASH_BASE, \
102                                                 CONFIG_SYS_CS5_FLASH_BASE }
103 #define CONFIG_SYS_MAX_FLASH_BANKS              6
104
105 #elif defined(CONFIG_SPEAR320)
106 #define CONFIG_SYS_FLASH_BASE                   0x44000000
107 #define CONFIG_SYS_CS1_FLASH_BASE               0x45000000
108 #define CONFIG_SYS_CS2_FLASH_BASE               0x46000000
109 #define CONFIG_SYS_CS3_FLASH_BASE               0x47000000
110 #define CONFIG_SYS_FLASH_BANKS_LIST             { CONFIG_SYS_FLASH_BASE,   \
111                                                 CONFIG_SYS_CS1_FLASH_BASE, \
112                                                 CONFIG_SYS_CS2_FLASH_BASE, \
113                                                 CONFIG_SYS_CS3_FLASH_BASE }
114 #define CONFIG_SYS_MAX_FLASH_BANKS              4
115
116 #endif
117
118 #define CONFIG_SYS_MAX_FLASH_SECT               (127 + 8)
119 #define CONFIG_SYS_FLASH_QUIET_TEST             1
120
121 #endif
122
123 /* NAND flash configuration */
124 #define CONFIG_SYS_FSMC_NAND_SP
125 #define CONFIG_SYS_FSMC_NAND_8BIT
126
127 #if defined(CONFIG_SPEAR300)
128 #define CONFIG_SYS_NAND_BASE                    (0x80000000)
129
130 #elif defined(CONFIG_SPEAR310)
131 #define CONFIG_SYS_NAND_BASE                    (0x40000000)
132
133 #elif defined(CONFIG_SPEAR320)
134 #define CONFIG_SYS_NAND_BASE                    (0x50000000)
135
136 #endif
137
138 #endif  /* __CONFIG_H */