blob: d8acaa920e1c0de92bfc5cfe34be843e11c56563 [file] [log] [blame]
Jesper Nilsson2d33d562008-02-04 22:30:31 -08001if ETRAX_ARCH_V32
2
Mikael Starvik51533b62005-07-27 11:44:44 -07003config ETRAX_DRAM_VIRTUAL_BASE
4 hex
5 depends on ETRAX_ARCH_V32
6 default "c0000000"
7
8config ETRAX_LED1G
9 string "First green LED bit"
10 depends on ETRAX_ARCH_V32
11 default "PA3"
12 help
13 Bit to use for the first green LED (network LED).
14 Most Axis products use bit A3 here.
15
16config ETRAX_LED1R
17 string "First red LED bit"
18 depends on ETRAX_ARCH_V32
19 default "PA4"
20 help
21 Bit to use for the first red LED (network LED).
22 Most Axis products use bit A4 here.
23
24config ETRAX_LED2G
25 string "Second green LED bit"
26 depends on ETRAX_ARCH_V32
27 default "PA5"
28 help
29 Bit to use for the first green LED (status LED).
30 Most Axis products use bit A5 here.
31
32config ETRAX_LED2R
33 string "Second red LED bit"
34 depends on ETRAX_ARCH_V32
35 default "PA6"
36 help
37 Bit to use for the first red LED (network LED).
38 Most Axis products use bit A6 here.
39
40config ETRAX_LED3G
41 string "Third green LED bit"
42 depends on ETRAX_ARCH_V32
43 default "PA7"
44 help
45 Bit to use for the first green LED (drive/power LED).
46 Most Axis products use bit A7 here.
47
48config ETRAX_LED3R
49 string "Third red LED bit"
50 depends on ETRAX_ARCH_V32
51 default "PA7"
52 help
53 Bit to use for the first red LED (drive/power LED).
54 Most Axis products use bit A7 here.
55
56choice
57 prompt "Product debug-port"
58 depends on ETRAX_ARCH_V32
59 default ETRAX_DEBUG_PORT0
60
61config ETRAX_DEBUG_PORT0
62 bool "Serial-0"
63 help
64 Choose a serial port for the ETRAX debug console. Default to
65 port 0.
66
67config ETRAX_DEBUG_PORT1
68 bool "Serial-1"
69 help
70 Use serial port 1 for the console.
71
72config ETRAX_DEBUG_PORT2
73 bool "Serial-2"
74 help
75 Use serial port 2 for the console.
76
77config ETRAX_DEBUG_PORT3
78 bool "Serial-3"
79 help
80 Use serial port 3 for the console.
81
82config ETRAX_DEBUG_PORT_NULL
83 bool "disabled"
84 help
85 Disable serial-port debugging.
86
87endchoice
88
89choice
90 prompt "Kernel GDB port"
91 depends on ETRAX_KGDB
92 default ETRAX_KGDB_PORT0
93 help
94 Choose a serial port for kernel debugging. NOTE: This port should
95 not be enabled under Drivers for built-in interfaces (as it has its
96 own initialization code) and should not be the same as the debug port.
97
98config ETRAX_KGDB_PORT0
99 bool "Serial-0"
100 help
101 Use serial port 0 for kernel debugging.
102
103config ETRAX_KGDB_PORT1
104 bool "Serial-1"
105 help
106 Use serial port 1 for kernel debugging.
107
108config ETRAX_KGDB_PORT2
109 bool "Serial-2"
110 help
111 Use serial port 2 for kernel debugging.
112
113config ETRAX_KGDB_PORT3
114 bool "Serial-3"
115 help
116 Use serial port 3 for kernel debugging.
117
118endchoice
119
120config ETRAX_MEM_GRP1_CONFIG
121 hex "MEM_GRP1_CONFIG"
122 depends on ETRAX_ARCH_V32
123 default "4044a"
124 help
125 Waitstates for flash. The default value is suitable for the
126 standard flashes used in axis products (120 ns).
127
128config ETRAX_MEM_GRP2_CONFIG
129 hex "MEM_GRP2_CONFIG"
130 depends on ETRAX_ARCH_V32
131 default "0"
132 help
133 Waitstates for SRAM. 0 is a good choice for most Axis products.
134
135config ETRAX_MEM_GRP3_CONFIG
136 hex "MEM_GRP3_CONFIG"
137 depends on ETRAX_ARCH_V32
138 default "0"
139 help
140 Waitstates for CSP0-3. 0 is a good choice for most Axis products.
141 It may need to be changed if external devices such as extra
142 register-mapped LEDs are used.
143
144config ETRAX_MEM_GRP4_CONFIG
145 hex "MEM_GRP4_CONFIG"
146 depends on ETRAX_ARCH_V32
147 default "0"
148 help
149 Waitstates for CSP4-6. 0 is a good choice for most Axis products.
150
151config ETRAX_SDRAM_GRP0_CONFIG
152 hex "SDRAM_GRP0_CONFIG"
153 depends on ETRAX_ARCH_V32
154 default "336"
155 help
156 SDRAM configuration for group 0. The value depends on the
157 hardware configuration. The default value is suitable
158 for 32 MB organized as two 16 bits chips (e.g. Axis
159 part number 18550) connected as one 32 bit device (i.e. in
160 the same group).
161
162config ETRAX_SDRAM_GRP1_CONFIG
163 hex "SDRAM_GRP1_CONFIG"
164 depends on ETRAX_ARCH_V32
165 default "0"
166 help
Matt LaPlante44c09202006-10-03 22:34:14 +0200167 SDRAM configuration for group 1. The default value is 0
Mikael Starvik51533b62005-07-27 11:44:44 -0700168 because group 1 is not used in the default configuration,
169 described in the help for SDRAM_GRP0_CONFIG.
170
171config ETRAX_SDRAM_TIMING
172 hex "SDRAM_TIMING"
173 depends on ETRAX_ARCH_V32
174 default "104a"
175 help
176 SDRAM timing parameters. The default value is ok for
177 most hardwares but large SDRAMs may require a faster
178 refresh (a.k.a 8K refresh). The default value implies
179 100MHz clock and SDR mode.
180
181config ETRAX_SDRAM_COMMAND
182 hex "SDRAM_COMMAND"
183 depends on ETRAX_ARCH_V32
184 default "0"
185 help
186 SDRAM command. Should be 0 unless you really know what
187 you are doing (may be != 0 for unusual address line
188 mappings such as in a MCM)..
189
190config ETRAX_DEF_GIO_PA_OE
191 hex "GIO_PA_OE"
192 depends on ETRAX_ARCH_V32
193 default "1c"
194 help
195 Configures the direction of general port A bits. 1 is out, 0 is in.
196 This is often totally different depending on the product used.
197 There are some guidelines though - if you know that only LED's are
198 connected to port PA, then they are usually connected to bits 2-4
199 and you can therefore use 1c. On other boards which don't have the
200 LED's at the general ports, these bits are used for all kinds of
201 stuff. If you don't know what to use, it is always safe to put all
202 as inputs, although floating inputs isn't good.
203
204config ETRAX_DEF_GIO_PA_OUT
205 hex "GIO_PA_OUT"
206 depends on ETRAX_ARCH_V32
207 default "00"
208 help
209 Configures the initial data for the general port A bits. Most
210 products should use 00 here.
211
212config ETRAX_DEF_GIO_PB_OE
213 hex "GIO_PB_OE"
214 depends on ETRAX_ARCH_V32
215 default "00000"
216 help
217 Configures the direction of general port B bits. 1 is out, 0 is in.
218 This is often totally different depending on the product used.
219 There are some guidelines though - if you know that only LED's are
220 connected to port PA, then they are usually connected to bits 2-4
221 and you can therefore use 1c. On other boards which don't have the
222 LED's at the general ports, these bits are used for all kinds of
223 stuff. If you don't know what to use, it is always safe to put all
224 as inputs, although floating inputs isn't good.
225
226config ETRAX_DEF_GIO_PB_OUT
227 hex "GIO_PB_OUT"
228 depends on ETRAX_ARCH_V32
229 default "00000"
230 help
231 Configures the initial data for the general port B bits. Most
232 products should use 00000 here.
233
234config ETRAX_DEF_GIO_PC_OE
235 hex "GIO_PC_OE"
236 depends on ETRAX_ARCH_V32
237 default "00000"
238 help
239 Configures the direction of general port C bits. 1 is out, 0 is in.
240 This is often totally different depending on the product used.
241 There are some guidelines though - if you know that only LED's are
242 connected to port PA, then they are usually connected to bits 2-4
243 and you can therefore use 1c. On other boards which don't have the
244 LED's at the general ports, these bits are used for all kinds of
245 stuff. If you don't know what to use, it is always safe to put all
246 as inputs, although floating inputs isn't good.
247
248config ETRAX_DEF_GIO_PC_OUT
249 hex "GIO_PC_OUT"
250 depends on ETRAX_ARCH_V32
251 default "00000"
252 help
253 Configures the initial data for the general port C bits. Most
254 products should use 00000 here.
255
256config ETRAX_DEF_GIO_PD_OE
257 hex "GIO_PD_OE"
258 depends on ETRAX_ARCH_V32
259 default "00000"
260 help
261 Configures the direction of general port D bits. 1 is out, 0 is in.
262 This is often totally different depending on the product used.
263 There are some guidelines though - if you know that only LED's are
264 connected to port PA, then they are usually connected to bits 2-4
265 and you can therefore use 1c. On other boards which don't have the
266 LED's at the general ports, these bits are used for all kinds of
267 stuff. If you don't know what to use, it is always safe to put all
268 as inputs, although floating inputs isn't good.
269
270config ETRAX_DEF_GIO_PD_OUT
271 hex "GIO_PD_OUT"
272 depends on ETRAX_ARCH_V32
273 default "00000"
274 help
275 Configures the initial data for the general port D bits. Most
276 products should use 00000 here.
277
278config ETRAX_DEF_GIO_PE_OE
279 hex "GIO_PE_OE"
280 depends on ETRAX_ARCH_V32
281 default "00000"
282 help
283 Configures the direction of general port E bits. 1 is out, 0 is in.
284 This is often totally different depending on the product used.
285 There are some guidelines though - if you know that only LED's are
286 connected to port PA, then they are usually connected to bits 2-4
287 and you can therefore use 1c. On other boards which don't have the
288 LED's at the general ports, these bits are used for all kinds of
289 stuff. If you don't know what to use, it is always safe to put all
290 as inputs, although floating inputs isn't good.
291
292config ETRAX_DEF_GIO_PE_OUT
293 hex "GIO_PE_OUT"
294 depends on ETRAX_ARCH_V32
295 default "00000"
296 help
297 Configures the initial data for the general port E bits. Most
298 products should use 00000 here.
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800299
300endif