blob: 9bccb5e2a9607b399245f3a42f9c558d325e16bd [file] [log] [blame]
Mikael Starvik51533b62005-07-27 11:44:44 -07001config ETRAX_ETHERNET
2 bool "Ethernet support"
3 depends on ETRAX_ARCH_V32
4 select NET_ETHERNET
5 help
6 This option enables the ETRAX FS built-in 10/100Mbit Ethernet
7 controller.
8
9config ETRAX_ETHERNET_HW_CSUM
10 bool "Hardware accelerated ethernet checksum and scatter/gather"
11 depends on ETRAX_ETHERNET
12 depends on ETRAX_STREAMCOPROC
13 default y
14 help
15 Hardware acceleration of checksumming and scatter/gather
16
17config ETRAX_ETHERNET_IFACE0
18 depends on ETRAX_ETHERNET
19 bool "Enable network interface 0"
20
21config ETRAX_ETHERNET_IFACE1
22 depends on ETRAX_ETHERNET
23 bool "Enable network interface 1 (uses DMA6 and DMA7)"
24
25choice
26 prompt "Network LED behavior"
27 depends on ETRAX_ETHERNET
28 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
29
30config ETRAX_NETWORK_LED_ON_WHEN_LINK
31 bool "LED_on_when_link"
32 help
33 Selecting LED_on_when_link will light the LED when there is a
34 connection and will flash off when there is activity.
35
36 Selecting LED_on_when_activity will light the LED only when
37 there is activity.
38
39 This setting will also affect the behaviour of other activity LEDs
40 e.g. Bluetooth.
41
42config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
43 bool "LED_on_when_activity"
44 help
45 Selecting LED_on_when_link will light the LED when there is a
46 connection and will flash off when there is activity.
47
48 Selecting LED_on_when_activity will light the LED only when
49 there is activity.
50
51 This setting will also affect the behaviour of other activity LEDs
52 e.g. Bluetooth.
53
54endchoice
55
56config ETRAXFS_SERIAL
57 bool "Serial-port support"
58 depends on ETRAX_ARCH_V32
59 help
60 Enables the ETRAX FS serial driver for ser0 (ttyS0)
61 You probably want this enabled.
62
63config ETRAX_SERIAL_PORT0
64 bool "Serial port 0 enabled"
65 depends on ETRAXFS_SERIAL
66 help
67 Enables the ETRAX FS serial driver for ser0 (ttyS0)
68 Normally you want this on. You can control what DMA channels to use
69 if you do not need DMA to something else.
70 ser0 can use dma4 or dma6 for output and dma5 or dma7 for input.
71
72choice
73 prompt "Ser0 DMA in channel "
74 depends on ETRAX_SERIAL_PORT0
75 default ETRAX_SERIAL_PORT0_NO_DMA_IN
76 help
77 What DMA channel to use for ser0.
78
79
80config ETRAX_SERIAL_PORT0_NO_DMA_IN
81 bool "Ser0 uses no DMA for input"
82 help
83 Do not use DMA for ser0 input.
84
85config ETRAX_SERIAL_PORT0_DMA7_IN
86 bool "Ser0 uses DMA7 for input"
87 depends on ETRAX_SERIAL_PORT0
88 help
89 Enables the DMA7 input channel for ser0 (ttyS0).
90 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante3cb2fcc2006-11-30 05:22:59 +010091 used when receiving data.
Mikael Starvik51533b62005-07-27 11:44:44 -070092 Normally you want to use DMA, unless you use the DMA channel for
93 something else.
94
95endchoice
96
97choice
98 prompt "Ser0 DMA out channel"
99 depends on ETRAX_SERIAL_PORT0
100 default ETRAX_SERIAL_PORT0_NO_DMA_OUT
101
102config ETRAX_SERIAL_PORT0_NO_DMA_OUT
103 bool "Ser0 uses no DMA for output"
104 help
105 Do not use DMA for ser0 output.
106
107config ETRAX_SERIAL_PORT0_DMA6_OUT
108 bool "Ser0 uses DMA6 for output"
109 depends on ETRAX_SERIAL_PORT0
110 help
111 Enables the DMA6 output channel for ser0 (ttyS0).
112 If you do not enable DMA, an interrupt for each character will be
113 used when transmitting data.
114 Normally you want to use DMA, unless you use the DMA channel for
115 something else.
116
117endchoice
118
119config ETRAX_SER0_DTR_BIT
120 string "Ser 0 DTR bit (empty = not used)"
121 depends on ETRAX_SERIAL_PORT0
122
123config ETRAX_SER0_RI_BIT
124 string "Ser 0 RI bit (empty = not used)"
125 depends on ETRAX_SERIAL_PORT0
126
127config ETRAX_SER0_DSR_BIT
128 string "Ser 0 DSR bit (empty = not used)"
129 depends on ETRAX_SERIAL_PORT0
130
131config ETRAX_SER0_CD_BIT
132 string "Ser 0 CD bit (empty = not used)"
133 depends on ETRAX_SERIAL_PORT0
134
135config ETRAX_SERIAL_PORT1
136 bool "Serial port 1 enabled"
137 depends on ETRAXFS_SERIAL
138 help
139 Enables the ETRAX FS serial driver for ser1 (ttyS1).
140
141choice
142 prompt "Ser1 DMA in channel "
143 depends on ETRAX_SERIAL_PORT1
144 default ETRAX_SERIAL_PORT1_NO_DMA_IN
145 help
146 What DMA channel to use for ser1.
147
148
149config ETRAX_SERIAL_PORT1_NO_DMA_IN
150 bool "Ser1 uses no DMA for input"
151 help
152 Do not use DMA for ser1 input.
153
154config ETRAX_SERIAL_PORT1_DMA5_IN
155 bool "Ser1 uses DMA5 for input"
156 depends on ETRAX_SERIAL_PORT1
157 help
158 Enables the DMA5 input channel for ser1 (ttyS1).
159 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante3cb2fcc2006-11-30 05:22:59 +0100160 used when receiving data.
Mikael Starvik51533b62005-07-27 11:44:44 -0700161 Normally you want this on, unless you use the DMA channel for
162 something else.
163
164endchoice
165
166choice
167 prompt "Ser1 DMA out channel "
168 depends on ETRAX_SERIAL_PORT1
169 default ETRAX_SERIAL_PORT1_NO_DMA_OUT
170 help
171 What DMA channel to use for ser1.
172
173config ETRAX_SERIAL_PORT1_NO_DMA_OUT
174 bool "Ser1 uses no DMA for output"
175 help
176 Do not use DMA for ser1 output.
177
178config ETRAX_SERIAL_PORT1_DMA4_OUT
179 bool "Ser1 uses DMA4 for output"
180 depends on ETRAX_SERIAL_PORT1
181 help
182 Enables the DMA4 output channel for ser1 (ttyS1).
183 If you do not enable DMA, an interrupt for each character will be
184 used when transmitting data.
185 Normally you want this on, unless you use the DMA channel for
186 something else.
187
188endchoice
189
190config ETRAX_SER1_DTR_BIT
191 string "Ser 1 DTR bit (empty = not used)"
192 depends on ETRAX_SERIAL_PORT1
193
194config ETRAX_SER1_RI_BIT
195 string "Ser 1 RI bit (empty = not used)"
196 depends on ETRAX_SERIAL_PORT1
197
198config ETRAX_SER1_DSR_BIT
199 string "Ser 1 DSR bit (empty = not used)"
200 depends on ETRAX_SERIAL_PORT1
201
202config ETRAX_SER1_CD_BIT
203 string "Ser 1 CD bit (empty = not used)"
204 depends on ETRAX_SERIAL_PORT1
205
206config ETRAX_SERIAL_PORT2
207 bool "Serial port 2 enabled"
208 depends on ETRAXFS_SERIAL
209 help
210 Enables the ETRAX FS serial driver for ser2 (ttyS2).
211
212choice
213 prompt "Ser2 DMA in channel "
214 depends on ETRAX_SERIAL_PORT2
215 default ETRAX_SERIAL_PORT2_NO_DMA_IN
216 help
217 What DMA channel to use for ser2.
218
219
220config ETRAX_SERIAL_PORT2_NO_DMA_IN
221 bool "Ser2 uses no DMA for input"
222 help
223 Do not use DMA for ser2 input.
224
225config ETRAX_SERIAL_PORT2_DMA3_IN
226 bool "Ser2 uses DMA3 for input"
227 depends on ETRAX_SERIAL_PORT2
228 help
229 Enables the DMA3 input channel for ser2 (ttyS2).
230 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante3cb2fcc2006-11-30 05:22:59 +0100231 used when receiving data.
Mikael Starvik51533b62005-07-27 11:44:44 -0700232 Normally you want to use DMA, unless you use the DMA channel for
233 something else.
234
235endchoice
236
237choice
238 prompt "Ser2 DMA out channel"
239 depends on ETRAX_SERIAL_PORT2
240 default ETRAX_SERIAL_PORT2_NO_DMA_OUT
241
242config ETRAX_SERIAL_PORT2_NO_DMA_OUT
243 bool "Ser2 uses no DMA for output"
244 help
245 Do not use DMA for ser2 output.
246
247config ETRAX_SERIAL_PORT2_DMA2_OUT
248 bool "Ser2 uses DMA2 for output"
249 depends on ETRAX_SERIAL_PORT2
250 help
251 Enables the DMA2 output channel for ser2 (ttyS2).
252 If you do not enable DMA, an interrupt for each character will be
253 used when transmitting data.
254 Normally you want to use DMA, unless you use the DMA channel for
255 something else.
256
257endchoice
258
259config ETRAX_SER2_DTR_BIT
260 string "Ser 2 DTR bit (empty = not used)"
261 depends on ETRAX_SERIAL_PORT2
262
263config ETRAX_SER2_RI_BIT
264 string "Ser 2 RI bit (empty = not used)"
265 depends on ETRAX_SERIAL_PORT2
266
267config ETRAX_SER2_DSR_BIT
268 string "Ser 2 DSR bit (empty = not used)"
269 depends on ETRAX_SERIAL_PORT2
270
271config ETRAX_SER2_CD_BIT
272 string "Ser 2 CD bit (empty = not used)"
273 depends on ETRAX_SERIAL_PORT2
274
275config ETRAX_SERIAL_PORT3
276 bool "Serial port 3 enabled"
277 depends on ETRAXFS_SERIAL
278 help
279 Enables the ETRAX FS serial driver for ser3 (ttyS3).
280
281choice
282 prompt "Ser3 DMA in channel "
283 depends on ETRAX_SERIAL_PORT3
284 default ETRAX_SERIAL_PORT3_NO_DMA_IN
285 help
286 What DMA channel to use for ser3.
287
288
289config ETRAX_SERIAL_PORT3_NO_DMA_IN
290 bool "Ser3 uses no DMA for input"
291 help
292 Do not use DMA for ser3 input.
293
294config ETRAX_SERIAL_PORT3_DMA9_IN
295 bool "Ser3 uses DMA9 for input"
296 depends on ETRAX_SERIAL_PORT3
297 help
298 Enables the DMA9 input channel for ser3 (ttyS3).
299 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante3cb2fcc2006-11-30 05:22:59 +0100300 used when receiving data.
Mikael Starvik51533b62005-07-27 11:44:44 -0700301 Normally you want to use DMA, unless you use the DMA channel for
302 something else.
303
304endchoice
305
306choice
307 prompt "Ser3 DMA out channel"
308 depends on ETRAX_SERIAL_PORT3
309 default ETRAX_SERIAL_PORT3_NO_DMA_OUT
310
311config ETRAX_SERIAL_PORT3_NO_DMA_OUT
312 bool "Ser3 uses no DMA for output"
313 help
314 Do not use DMA for ser3 output.
315
316config ETRAX_SERIAL_PORT3_DMA8_OUT
317 bool "Ser3 uses DMA8 for output"
318 depends on ETRAX_SERIAL_PORT3
319 help
320 Enables the DMA8 output channel for ser3 (ttyS3).
321 If you do not enable DMA, an interrupt for each character will be
322 used when transmitting data.
323 Normally you want to use DMA, unless you use the DMA channel for
324 something else.
325
326endchoice
327
328config ETRAX_SER3_DTR_BIT
329 string "Ser 3 DTR bit (empty = not used)"
330 depends on ETRAX_SERIAL_PORT3
331
332config ETRAX_SER3_RI_BIT
333 string "Ser 3 RI bit (empty = not used)"
334 depends on ETRAX_SERIAL_PORT3
335
336config ETRAX_SER3_DSR_BIT
337 string "Ser 3 DSR bit (empty = not used)"
338 depends on ETRAX_SERIAL_PORT3
339
340config ETRAX_SER3_CD_BIT
341 string "Ser 3 CD bit (empty = not used)"
342 depends on ETRAX_SERIAL_PORT3
343
344config ETRAX_RS485
345 bool "RS-485 support"
346 depends on ETRAX_SERIAL
347 help
348 Enables support for RS-485 serial communication. For a primer on
349 RS-485, see <http://www.hw.cz/english/docs/rs485/rs485.html>.
350
351config ETRAX_RS485_DISABLE_RECEIVER
352 bool "Disable serial receiver"
353 depends on ETRAX_RS485
354 help
355 It is necessary to disable the serial receiver to avoid serial
356 loopback. Not all products are able to do this in software only.
357 Axis 2400/2401 must disable receiver.
358
359config ETRAX_AXISFLASHMAP
360 bool "Axis flash-map support"
361 depends on ETRAX_ARCH_V32
362 select MTD
363 select MTD_CFI
364 select MTD_CFI_AMDSTD
Mikael Starvik51533b62005-07-27 11:44:44 -0700365 select MTD_CHAR
366 select MTD_BLOCK
367 select MTD_PARTITIONS
368 select MTD_CONCAT
369 select MTD_COMPLEX_MAPPINGS
370 help
371 This option enables MTD mapping of flash devices. Needed to use
372 flash memories. If unsure, say Y.
373
374config ETRAX_SYNCHRONOUS_SERIAL
375 bool "Synchronous serial-port support"
376 depends on ETRAX_ARCH_V32
377 help
378 Enables the ETRAX FS synchronous serial driver.
379
380config ETRAX_SYNCHRONOUS_SERIAL_PORT0
381 bool "Synchronous serial port 0 enabled"
382 depends on ETRAX_SYNCHRONOUS_SERIAL
383 help
384 Enabled synchronous serial port 0.
385
386config ETRAX_SYNCHRONOUS_SERIAL0_DMA
387 bool "Enable DMA on synchronous serial port 0."
388 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
389 help
390 A synchronous serial port can run in manual or DMA mode.
391 Selecting this option will make it run in DMA mode.
392
393config ETRAX_SYNCHRONOUS_SERIAL_PORT1
394 bool "Synchronous serial port 1 enabled"
395 depends on ETRAX_SYNCHRONOUS_SERIAL
396 help
397 Enabled synchronous serial port 1.
398
399config ETRAX_SYNCHRONOUS_SERIAL1_DMA
400 bool "Enable DMA on synchronous serial port 1."
401 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
402 help
403 A synchronous serial port can run in manual or DMA mode.
404 Selecting this option will make it run in DMA mode.
405
406config ETRAX_PTABLE_SECTOR
407 int "Byte-offset of partition table sector"
408 depends on ETRAX_AXISFLASHMAP
409 default "65536"
410 help
411 Byte-offset of the partition table in the first flash chip.
412 The default value is 64kB and should not be changed unless
413 you know exactly what you are doing. The only valid reason
414 for changing this is when the flash block size is bigger
415 than 64kB (e.g. when using two parallel 16 bit flashes).
416
417config ETRAX_NANDFLASH
418 bool "NAND flash support"
419 depends on ETRAX_ARCH_V32
420 select MTD_NAND
421 select MTD_NAND_IDS
422 help
423 This option enables MTD mapping of NAND flash devices. Needed to use
424 NAND flash memories. If unsure, say Y.
425
426config ETRAX_I2C
427 bool "I2C driver"
428 depends on ETRAX_ARCH_V32
429 help
430 This option enabled the I2C driver used by e.g. the RTC driver.
431
432config ETRAX_I2C_DATA_PORT
433 string "I2C data pin"
434 depends on ETRAX_I2C
435 help
436 The pin to use for I2C data.
437
438config ETRAX_I2C_CLK_PORT
439 string "I2C clock pin"
440 depends on ETRAX_I2C
441 help
442 The pin to use for I2C clock.
443
444config ETRAX_RTC
445 bool "Real Time Clock support"
446 depends on ETRAX_ARCH_V32
447 help
448 Enabled RTC support.
449
450choice
451 prompt "RTC chip"
452 depends on ETRAX_RTC
453 default ETRAX_PCF8563
454
455config ETRAX_PCF8563
456 bool "PCF8563"
457 help
458 Philips PCF8563 RTC
459
460endchoice
461
462config ETRAX_GPIO
463 bool "GPIO support"
464 depends on ETRAX_ARCH_V32
465 ---help---
466 Enables the ETRAX general port device (major 120, minors 0-4).
467 You can use this driver to access the general port bits. It supports
468 these ioctl's:
469 #include <linux/etraxgpio.h>
470 fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
471 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
472 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
473 err = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READ_INBITS), &val);
474 Remember that you need to setup the port directions appropriately in
475 the General configuration.
476
477config ETRAX_PA_BUTTON_BITMASK
478 hex "PA-buttons bitmask"
479 depends on ETRAX_GPIO
480 default "0x02"
481 help
482 This is a bitmask (8 bits) with information about what bits on PA
483 that are used for buttons.
484 Most products has a so called TEST button on PA1, if that is true
485 use 0x02 here.
486 Use 00 if there are no buttons on PA.
487 If the bitmask is <> 00 a button driver will be included in the gpio
488 driver. ETRAX general I/O support must be enabled.
489
490config ETRAX_PA_CHANGEABLE_DIR
491 hex "PA user changeable dir mask"
492 depends on ETRAX_GPIO
493 default "0x00"
494 help
495 This is a bitmask (8 bits) with information of what bits in PA that a
496 user can change direction on using ioctl's.
497 Bit set = changeable.
498 You probably want 0x00 here, but it depends on your hardware.
499
500config ETRAX_PA_CHANGEABLE_BITS
501 hex "PA user changeable bits mask"
502 depends on ETRAX_GPIO
503 default "0x00"
504 help
505 This is a bitmask (8 bits) with information of what bits in PA
506 that a user can change the value on using ioctl's.
507 Bit set = changeable.
508
509config ETRAX_PB_CHANGEABLE_DIR
510 hex "PB user changeable dir mask"
511 depends on ETRAX_GPIO
512 default "0x00000"
513 help
514 This is a bitmask (18 bits) with information of what bits in PB
515 that a user can change direction on using ioctl's.
516 Bit set = changeable.
517 You probably want 0x00000 here, but it depends on your hardware.
518
519config ETRAX_PB_CHANGEABLE_BITS
520 hex "PB user changeable bits mask"
521 depends on ETRAX_GPIO
522 default "0x00000"
523 help
524 This is a bitmask (18 bits) with information of what bits in PB
525 that a user can change the value on using ioctl's.
526 Bit set = changeable.
527
528config ETRAX_PC_CHANGEABLE_DIR
529 hex "PC user changeable dir mask"
530 depends on ETRAX_GPIO
531 default "0x00000"
532 help
533 This is a bitmask (18 bits) with information of what bits in PC
534 that a user can change direction on using ioctl's.
535 Bit set = changeable.
536 You probably want 0x00000 here, but it depends on your hardware.
537
538config ETRAX_PC_CHANGEABLE_BITS
539 hex "PC user changeable bits mask"
540 depends on ETRAX_GPIO
541 default "0x00000"
542 help
543 This is a bitmask (18 bits) with information of what bits in PC
544 that a user can change the value on using ioctl's.
545 Bit set = changeable.
546
547config ETRAX_PD_CHANGEABLE_DIR
548 hex "PD user changeable dir mask"
549 depends on ETRAX_GPIO
550 default "0x00000"
551 help
552 This is a bitmask (18 bits) with information of what bits in PD
553 that a user can change direction on using ioctl's.
554 Bit set = changeable.
555 You probably want 0x00000 here, but it depends on your hardware.
556
557config ETRAX_PD_CHANGEABLE_BITS
558 hex "PD user changeable bits mask"
559 depends on ETRAX_GPIO
560 default "0x00000"
561 help
562 This is a bitmask (18 bits) with information of what bits in PD
563 that a user can change the value on using ioctl's.
564 Bit set = changeable.
565
566config ETRAX_PE_CHANGEABLE_DIR
567 hex "PE user changeable dir mask"
568 depends on ETRAX_GPIO
569 default "0x00000"
570 help
571 This is a bitmask (18 bits) with information of what bits in PE
572 that a user can change direction on using ioctl's.
573 Bit set = changeable.
574 You probably want 0x00000 here, but it depends on your hardware.
575
576config ETRAX_PE_CHANGEABLE_BITS
577 hex "PE user changeable bits mask"
578 depends on ETRAX_GPIO
579 default "0x00000"
580 help
581 This is a bitmask (18 bits) with information of what bits in PE
582 that a user can change the value on using ioctl's.
583 Bit set = changeable.
584
Mikael Starvik51533b62005-07-27 11:44:44 -0700585config ETRAX_CARDBUS
586 bool "Cardbus support"
587 depends on ETRAX_ARCH_V32
588 select PCCARD
589 select CARDBUS
590 select HOTPLUG
591 select PCCARD_NONSTATIC
592 help
David Sterba3dde6ad2007-05-09 07:12:20 +0200593 Enabled the ETRAX Cardbus driver.
Mikael Starvik51533b62005-07-27 11:44:44 -0700594
595config PCI
596 bool
597 depends on ETRAX_CARDBUS
598 default y
599
600config ETRAX_IOP_FW_LOAD
601 tristate "IO-processor hotplug firmware loading support"
602 depends on ETRAX_ARCH_V32
603 select FW_LOADER
604 help
605 Enables IO-processor hotplug firmware loading support.
606
607config ETRAX_STREAMCOPROC
608 tristate "Stream co-processor driver enabled"
609 depends on ETRAX_ARCH_V32
610 help
611 This option enables a driver for the stream co-processor
612 for cryptographic operations.