summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/arch-v10/Kconfig')
-rw-r--r--arch/cris/arch-v10/Kconfig422
1 files changed, 422 insertions, 0 deletions
diff --git a/arch/cris/arch-v10/Kconfig b/arch/cris/arch-v10/Kconfig
new file mode 100644
index 000000000000..2ca64cc40c63
--- /dev/null
+++ b/arch/cris/arch-v10/Kconfig
@@ -0,0 +1,422 @@
1# ETRAX 100LX v1 has a MMU "feature" requiring a low mapping
2config CRIS_LOW_MAP
3 bool
4 depends on ETRAX_ARCH_V10 && ETRAX100LX
5 default y
6
7config ETRAX_DRAM_VIRTUAL_BASE
8 hex
9 depends on ETRAX_ARCH_V10
10 default "c0000000" if !ETRAX100LX
11 default "60000000" if ETRAX100LX
12
13choice
14 prompt "Product LED port"
15 depends on ETRAX_ARCH_V10
16 default ETRAX_PA_LEDS
17
18config ETRAX_PA_LEDS
19 bool "Port-PA-LEDs"
20 help
21 The ETRAX network driver is responsible for flashing LED's when
22 packets arrive and are sent. It uses macros defined in
23 <file:include/asm-cris/io.h>, and those macros are defined after what
24 YOU choose in this option. The actual bits used are configured
25 separately. Select this if the LEDs are on port PA. Some products
26 put the leds on PB or a memory-mapped latch (CSP0) instead.
27
28config ETRAX_PB_LEDS
29 bool "Port-PB-LEDs"
30 help
31 The ETRAX network driver is responsible for flashing LED's when
32 packets arrive and are sent. It uses macros defined in
33 <file:include/asm-cris/io.h>, and those macros are defined after what
34 YOU choose in this option. The actual bits used are configured
35 separately. Select this if the LEDs are on port PB. Some products
36 put the leds on PA or a memory-mapped latch (CSP0) instead.
37
38config ETRAX_CSP0_LEDS
39 bool "Port-CSP0-LEDs"
40 help
41 The ETRAX network driver is responsible for flashing LED's when
42 packets arrive and are sent. It uses macros defined in
43 <file:include/asm-cris/io.h>, and those macros are defined after what
44 YOU choose in this option. The actual bits used are configured
45 separately. Select this if the LEDs are on a memory-mapped latch
46 using chip select CSP0, this is mapped at 0x90000000.
47 Some products put the leds on PA or PB instead.
48
49config ETRAX_NO_LEDS
50 bool "None"
51 help
52 Select this option if you don't have any LED at all.
53
54endchoice
55
56config ETRAX_LED1G
57 int "First green LED bit"
58 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
59 default "2"
60 help
61 Bit to use for the first green LED.
62 Most Axis products use bit 2 here.
63
64config ETRAX_LED1R
65 int "First red LED bit"
66 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
67 default "3"
68 help
69 Bit to use for the first red LED.
70 Most Axis products use bit 3 here.
71 For products with only one controllable LED,
72 set this to same as CONFIG_ETRAX_LED1G (normally 2).
73
74config ETRAX_LED2G
75 int "Second green LED bit"
76 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
77 default "4"
78 help
79 Bit to use for the second green LED. The "Active" LED.
80 Most Axis products use bit 4 here.
81 For products with only one controllable LED,
82 set this to same as CONFIG_ETRAX_LED1G (normally 2).
83
84config ETRAX_LED2R
85 int "Second red LED bit"
86 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
87 default "5"
88 help
89 Bit to use for the second red LED.
90 Most Axis products use bit 5 here.
91 For products with only one controllable LED,
92 set this to same as CONFIG_ETRAX_LED1G (normally 2).
93
94config ETRAX_LED3G
95 int "Third green LED bit"
96 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
97 default "2"
98 help
99 Bit to use for the third green LED. The "Drive" LED.
100 For products with only one or two controllable LEDs,
101 set this to same as CONFIG_ETRAX_LED1G (normally 2).
102
103config ETRAX_LED3R
104 int "Third red LED bit"
105 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
106 default "2"
107 help
108 Bit to use for the third red LED.
109 For products with only one or two controllable LEDs,
110 set this to same as CONFIG_ETRAX_LED1G (normally 2).
111
112config ETRAX_LED4R
113 int "Fourth red LED bit"
114 depends on ETRAX_CSP0_LEDS
115 default "2"
116 help
117 Bit to use for the fourth red LED.
118 For products with only one or two controllable LEDs,
119 set this to same as CONFIG_ETRAX_LED1G (normally 2).
120
121config ETRAX_LED4G
122 int "Fourth green LED bit"
123 depends on ETRAX_CSP0_LEDS
124 default "2"
125 help
126 Bit to use for the fourth green LED.
127 For products with only one or two controllable LEDs,
128 set this to same as CONFIG_ETRAX_LED1G (normally 2).
129
130config ETRAX_LED5R
131 int "Fifth red LED bit"
132 depends on ETRAX_CSP0_LEDS
133 default "2"
134 help
135 Bit to use for the fifth red LED.
136 For products with only one or two controllable LEDs,
137 set this to same as CONFIG_ETRAX_LED1G (normally 2).
138
139config ETRAX_LED5G
140 int "Fifth green LED bit"
141 depends on ETRAX_CSP0_LEDS
142 default "2"
143 help
144 Bit to use for the fifth green LED.
145 For products with only one or two controllable LEDs,
146 set this to same as CONFIG_ETRAX_LED1G (normally 2).
147
148config ETRAX_LED6R
149 int "Sixth red LED bit"
150 depends on ETRAX_CSP0_LEDS
151 default "2"
152 help
153 Bit to use for the sixth red LED.
154 For products with only one or two controllable LEDs,
155 set this to same as CONFIG_ETRAX_LED1G (normally 2).
156
157config ETRAX_LED6G
158 int "Sixth green LED bit"
159 depends on ETRAX_CSP0_LEDS
160 default "2"
161 help
162 Bit to use for the sixth green LED. The "Drive" LED.
163 For products with only one or two controllable LEDs,
164 set this to same as CONFIG_ETRAX_LED1G (normally 2).
165
166config ETRAX_LED7R
167 int "Seventh red LED bit"
168 depends on ETRAX_CSP0_LEDS
169 default "2"
170 help
171 Bit to use for the seventh red LED.
172 For products with only one or two controllable LEDs,
173 set this to same as CONFIG_ETRAX_LED1G (normally 2).
174
175config ETRAX_LED7G
176 int "Seventh green LED bit"
177 depends on ETRAX_CSP0_LEDS
178 default "2"
179 help
180 Bit to use for the seventh green LED.
181 For products with only one or two controllable LEDs,
182 set this to same as CONFIG_ETRAX_LED1G (normally 2).
183
184config ETRAX_LED8Y
185 int "Eigth yellow LED bit"
186 depends on ETRAX_CSP0_LEDS
187 default "2"
188 help
189 Bit to use for the eighth yellow LED. The "Drive" LED.
190 For products with only one or two controllable LEDs,
191 set this to same as CONFIG_ETRAX_LED1G (normally 2).
192
193config ETRAX_LED9Y
194 int "Ninth yellow LED bit"
195 depends on ETRAX_CSP0_LEDS
196 default "2"
197 help
198 Bit to use for the ninth yellow LED.
199 For products with only one or two controllable LEDs,
200 set this to same as CONFIG_ETRAX_LED1G (normally 2).
201
202config ETRAX_LED10Y
203 int "Tenth yellow LED bit"
204 depends on ETRAX_CSP0_LEDS
205 default "2"
206 help
207 Bit to use for the tenth yellow LED.
208 For products with only one or two controllable LEDs,
209 set this to same as CONFIG_ETRAX_LED1G (normally 2).
210
211config ETRAX_LED11Y
212 int "Eleventh yellow LED bit"
213 depends on ETRAX_CSP0_LEDS
214 default "2"
215 help
216 Bit to use for the eleventh yellow LED.
217 For products with only one or two controllable LEDs,
218 set this to same as CONFIG_ETRAX_LED1G (normally 2).
219
220config ETRAX_LED12R
221 int "Twelfth red LED bit"
222 depends on ETRAX_CSP0_LEDS
223 default "2"
224 help
225 Bit to use for the twelfth red LED.
226 For products with only one or two controllable LEDs,
227 set this to same as CONFIG_ETRAX_LED1G (normally 2).
228
229choice
230 prompt "Product debug-port"
231 depends on ETRAX_ARCH_V10
232 default ETRAX_DEBUG_PORT0
233
234config ETRAX_DEBUG_PORT0
235 bool "Serial-0"
236 help
237 Choose a serial port for the ETRAX debug console. Default to
238 port 0.
239
240config ETRAX_DEBUG_PORT1
241 bool "Serial-1"
242 help
243 Use serial port 1 for the console.
244
245config ETRAX_DEBUG_PORT2
246 bool "Serial-2"
247 help
248 Use serial port 2 for the console.
249
250config ETRAX_DEBUG_PORT3
251 bool "Serial-3"
252 help
253 Use serial port 3 for the console.
254
255config ETRAX_DEBUG_PORT_NULL
256 bool "disabled"
257 help
258 Disable serial-port debugging.
259
260endchoice
261
262choice
263 prompt "Product rescue-port"
264 depends on ETRAX_ARCH_V10
265 default ETRAX_RESCUE_SER0
266
267config ETRAX_RESCUE_SER0
268 bool "Serial-0"
269 help
270 Select one of the four serial ports as a rescue port. The default
271 is port 0.
272
273config ETRAX_RESCUE_SER1
274 bool "Serial-1"
275 help
276 Use serial port 1 as the rescue port.
277
278config ETRAX_RESCUE_SER2
279 bool "Serial-2"
280 help
281 Use serial port 2 as the rescue port.
282
283config ETRAX_RESCUE_SER3
284 bool "Serial-3"
285 help
286 Use serial port 3 as the rescue port.
287
288endchoice
289
290config ETRAX_DEF_R_WAITSTATES
291 hex "R_WAITSTATES"
292 depends on ETRAX_ARCH_V10
293 default "95a6"
294 help
295 Waitstates for SRAM, Flash and peripherials (not DRAM). 95f8 is a
296 good choice for most Axis products...
297
298config ETRAX_DEF_R_BUS_CONFIG
299 hex "R_BUS_CONFIG"
300 depends on ETRAX_ARCH_V10
301 default "104"
302 help
303 Assorted bits controlling write mode, DMA burst length etc. 104 is
304 a good choice for most Axis products...
305
306config ETRAX_SDRAM
307 bool "SDRAM support"
308 depends on ETRAX_ARCH_V10
309 help
310 Enable this if you use SDRAM chips and configure
311 R_SDRAM_CONFIG and R_SDRAM_TIMING as well.
312
313config ETRAX_DEF_R_DRAM_CONFIG
314 hex "R_DRAM_CONFIG"
315 depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
316 default "1a200040"
317 help
318 The R_DRAM_CONFIG register specifies everything on how the DRAM
319 chips in the system are connected to the ETRAX CPU. This is
320 different depending on the manufacturer, chip type and number of
321 chips. So this value often needs to be different for each Axis
322 product.
323
324config ETRAX_DEF_R_DRAM_TIMING
325 hex "R_DRAM_TIMING"
326 depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
327 default "5611"
328 help
329 Different DRAM chips have different speeds. Current Axis products
330 use 50ns DRAM chips which can use the timing: 5611.
331
332config ETRAX_DEF_R_SDRAM_CONFIG
333 hex "R_SDRAM_CONFIG"
334 depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
335 default "d2fa7878"
336 help
337 The R_SDRAM_CONFIG register specifies everything on how the SDRAM
338 chips in the system are connected to the ETRAX CPU. This is
339 different depending on the manufacturer, chip type and number of
340 chips. So this value often needs to be different for each Axis
341 product.
342
343config ETRAX_DEF_R_SDRAM_TIMING
344 hex "R_SDRAM_TIMING"
345 depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
346 default "80004801"
347 help
348 Different SDRAM chips have different timing.
349
350config ETRAX_DEF_R_PORT_PA_DIR
351 hex "R_PORT_PA_DIR"
352 depends on ETRAX_ARCH_V10
353 default "1c"
354 help
355 Configures the direction of general port A bits. 1 is out, 0 is in.
356 This is often totally different depending on the product used.
357 There are some guidelines though - if you know that only LED's are
358 connected to port PA, then they are usually connected to bits 2-4
359 and you can therefore use 1c. On other boards which don't have the
360 LED's at the general ports, these bits are used for all kinds of
361 stuff. If you don't know what to use, it is always safe to put all
362 as inputs, although floating inputs isn't good.
363
364config ETRAX_DEF_R_PORT_PA_DATA
365 hex "R_PORT_PA_DATA"
366 depends on ETRAX_ARCH_V10
367 default "00"
368 help
369 Configures the initial data for the general port A bits. Most
370 products should use 00 here.
371
372config ETRAX_DEF_R_PORT_PB_CONFIG
373 hex "R_PORT_PB_CONFIG"
374 depends on ETRAX_ARCH_V10
375 default "00"
376 help
377 Configures the type of the general port B bits. 1 is chip select,
378 0 is port. Most products should use 00 here.
379
380config ETRAX_DEF_R_PORT_PB_DIR
381 hex "R_PORT_PB_DIR"
382 depends on ETRAX_ARCH_V10
383 default "00"
384 help
385 Configures the direction of general port B bits. 1 is out, 0 is in.
386 This is often totally different depending on the product used. Bits
387 0 and 1 on port PB are usually used for I2C communication, but the
388 kernel I2C driver sets the appropriate directions itself so you
389 don't need to take that into consideration when setting this option.
390 If you don't know what to use, it is always safe to put all as
391 inputs.
392
393config ETRAX_DEF_R_PORT_PB_DATA
394 hex "R_PORT_PB_DATA"
395 depends on ETRAX_ARCH_V10
396 default "ff"
397 help
398 Configures the initial data for the general port A bits. Most
399 products should use FF here.
400
401config ETRAX_SOFT_SHUTDOWN
402 bool "Software Shutdown Support"
403 depends on ETRAX_ARCH_V10
404 help
405 Enable this if ETRAX is used with a power-supply that can be turned
406 off and on with PS_ON signal. Gives the possibility to detect
407 powerbutton and then do a power off after unmounting disks.
408
409config ETRAX_SHUTDOWN_BIT
410 int "Shutdown bit on port CSP0"
411 depends on ETRAX_SOFT_SHUTDOWN
412 default "12"
413 help
414 Configure what pin on CSPO-port that is used for controlling power
415 supply.
416
417config ETRAX_POWERBUTTON_BIT
418 int "Power button bit on port G"
419 depends on ETRAX_SOFT_SHUTDOWN
420 default "25"
421 help
422 Configure where power button is connected.