4 bool "Ethernet support"
5 depends on ETRAX_ARCH_V32
9 This option enables the ETRAX FS built-in 10/100Mbit Ethernet
13 bool "PHY not present"
14 depends on ETRAX_ETHERNET
17 This option disables all MDIO communication with an ethernet
18 transceiver connected to the MII interface. This option shall
19 typically be enabled if the MII interface is connected to a
20 switch. This option should normally be disabled. If enabled,
21 speed and duplex will be locked to 100 Mbit and full duplex.
23 config ETRAX_ETHERNET_IFACE0
24 depends on ETRAX_ETHERNET
25 bool "Enable network interface 0"
27 config ETRAX_ETHERNET_IFACE1
28 depends on (ETRAX_ETHERNET && ETRAXFS)
29 bool "Enable network interface 1 (uses DMA6 and DMA7)"
31 config ETRAX_ETHERNET_GBIT
32 depends on (ETRAX_ETHERNET && CRIS_MACH_ARTPEC3)
33 bool "Enable gigabit Ethernet support"
36 prompt "Eth0 led group"
37 depends on ETRAX_ETHERNET_IFACE0
38 default ETRAX_ETH0_USE_LEDGRP0
40 config ETRAX_ETH0_USE_LEDGRP0
42 depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
44 Use LED grp 0 for eth0
46 config ETRAX_ETH0_USE_LEDGRP1
48 depends on ETRAX_NBR_LED_GRP_TWO
50 Use LED grp 1 for eth0
52 config ETRAX_ETH0_USE_LEDGRPNULL
53 bool "Use no LEDs for eth0"
59 prompt "Eth1 led group"
60 depends on ETRAX_ETHERNET_IFACE1
61 default ETRAX_ETH1_USE_LEDGRP1
63 config ETRAX_ETH1_USE_LEDGRP0
65 depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
67 Use LED grp 0 for eth1
69 config ETRAX_ETH1_USE_LEDGRP1
71 depends on ETRAX_NBR_LED_GRP_TWO
73 Use LED grp 1 for eth1
75 config ETRAX_ETH1_USE_LEDGRPNULL
76 bool "Use no LEDs for eth1"
82 bool "Serial-port support"
83 depends on ETRAX_ARCH_V32
85 select SERIAL_CORE_CONSOLE
87 Enables the ETRAX FS serial driver for ser0 (ttyS0)
88 You probably want this enabled.
92 depends on ETRAXFS_SERIAL
94 Enables support for RS-485 serial communication.
96 config ETRAX_RS485_DISABLE_RECEIVER
97 bool "Disable serial receiver"
98 depends on ETRAX_RS485
100 It is necessary to disable the serial receiver to avoid serial
101 loopback. Not all products are able to do this in software only.
103 config ETRAX_SERIAL_PORT0
104 bool "Serial port 0 enabled"
105 depends on ETRAXFS_SERIAL
107 Enables the ETRAX FS serial driver for ser0 (ttyS0)
108 Normally you want this on. You can control what DMA channels to use
109 if you do not need DMA to something else.
110 ser0 can use dma4 or dma6 for output and dma5 or dma7 for input.
113 prompt "Ser0 default port type "
114 depends on ETRAX_SERIAL_PORT0
115 default ETRAX_SERIAL_PORT0_TYPE_232
119 config ETRAX_SERIAL_PORT0_TYPE_232
120 bool "Ser0 is a RS-232 port"
122 Configure serial port 0 to be a RS-232 port.
124 config ETRAX_SERIAL_PORT0_TYPE_485HD
125 bool "Ser0 is a half duplex RS-485 port"
126 depends on ETRAX_RS485
128 Configure serial port 0 to be a half duplex (two wires) RS-485 port.
130 config ETRAX_SERIAL_PORT0_TYPE_485FD
131 bool "Ser0 is a full duplex RS-485 port"
132 depends on ETRAX_RS485
134 Configure serial port 0 to be a full duplex (four wires) RS-485 port.
137 config ETRAX_SER0_DTR_BIT
138 string "Ser 0 DTR bit (empty = not used)"
139 depends on ETRAX_SERIAL_PORT0
141 config ETRAX_SER0_RI_BIT
142 string "Ser 0 RI bit (empty = not used)"
143 depends on ETRAX_SERIAL_PORT0
145 config ETRAX_SER0_DSR_BIT
146 string "Ser 0 DSR bit (empty = not used)"
147 depends on ETRAX_SERIAL_PORT0
149 config ETRAX_SER0_CD_BIT
150 string "Ser 0 CD bit (empty = not used)"
151 depends on ETRAX_SERIAL_PORT0
153 config ETRAX_SERIAL_PORT1
154 bool "Serial port 1 enabled"
155 depends on ETRAXFS_SERIAL
157 Enables the ETRAX FS serial driver for ser1 (ttyS1).
160 prompt "Ser1 default port type"
161 depends on ETRAX_SERIAL_PORT1
162 default ETRAX_SERIAL_PORT1_TYPE_232
166 config ETRAX_SERIAL_PORT1_TYPE_232
167 bool "Ser1 is a RS-232 port"
169 Configure serial port 1 to be a RS-232 port.
171 config ETRAX_SERIAL_PORT1_TYPE_485HD
172 bool "Ser1 is a half duplex RS-485 port"
173 depends on ETRAX_RS485
175 Configure serial port 1 to be a half duplex (two wires) RS-485 port.
177 config ETRAX_SERIAL_PORT1_TYPE_485FD
178 bool "Ser1 is a full duplex RS-485 port"
179 depends on ETRAX_RS485
181 Configure serial port 1 to be a full duplex (four wires) RS-485 port.
184 config ETRAX_SER1_DTR_BIT
185 string "Ser 1 DTR bit (empty = not used)"
186 depends on ETRAX_SERIAL_PORT1
188 config ETRAX_SER1_RI_BIT
189 string "Ser 1 RI bit (empty = not used)"
190 depends on ETRAX_SERIAL_PORT1
192 config ETRAX_SER1_DSR_BIT
193 string "Ser 1 DSR bit (empty = not used)"
194 depends on ETRAX_SERIAL_PORT1
196 config ETRAX_SER1_CD_BIT
197 string "Ser 1 CD bit (empty = not used)"
198 depends on ETRAX_SERIAL_PORT1
200 config ETRAX_SERIAL_PORT2
201 bool "Serial port 2 enabled"
202 depends on ETRAXFS_SERIAL
204 Enables the ETRAX FS serial driver for ser2 (ttyS2).
207 prompt "Ser2 default port type"
208 depends on ETRAX_SERIAL_PORT2
209 default ETRAX_SERIAL_PORT2_TYPE_232
211 What DMA channel to use for ser2
213 config ETRAX_SERIAL_PORT2_TYPE_232
214 bool "Ser2 is a RS-232 port"
216 Configure serial port 2 to be a RS-232 port.
218 config ETRAX_SERIAL_PORT2_TYPE_485HD
219 bool "Ser2 is a half duplex RS-485 port"
220 depends on ETRAX_RS485
222 Configure serial port 2 to be a half duplex (two wires) RS-485 port.
224 config ETRAX_SERIAL_PORT2_TYPE_485FD
225 bool "Ser2 is a full duplex RS-485 port"
226 depends on ETRAX_RS485
228 Configure serial port 2 to be a full duplex (four wires) RS-485 port.
232 config ETRAX_SER2_DTR_BIT
233 string "Ser 2 DTR bit (empty = not used)"
234 depends on ETRAX_SERIAL_PORT2
236 config ETRAX_SER2_RI_BIT
237 string "Ser 2 RI bit (empty = not used)"
238 depends on ETRAX_SERIAL_PORT2
240 config ETRAX_SER2_DSR_BIT
241 string "Ser 2 DSR bit (empty = not used)"
242 depends on ETRAX_SERIAL_PORT2
244 config ETRAX_SER2_CD_BIT
245 string "Ser 2 CD bit (empty = not used)"
246 depends on ETRAX_SERIAL_PORT2
248 config ETRAX_SERIAL_PORT3
249 bool "Serial port 3 enabled"
250 depends on ETRAXFS_SERIAL
252 Enables the ETRAX FS serial driver for ser3 (ttyS3).
255 prompt "Ser3 default port type"
256 depends on ETRAX_SERIAL_PORT3
257 default ETRAX_SERIAL_PORT3_TYPE_232
259 What DMA channel to use for ser3.
261 config ETRAX_SERIAL_PORT3_TYPE_232
262 bool "Ser3 is a RS-232 port"
264 Configure serial port 3 to be a RS-232 port.
266 config ETRAX_SERIAL_PORT3_TYPE_485HD
267 bool "Ser3 is a half duplex RS-485 port"
268 depends on ETRAX_RS485
270 Configure serial port 3 to be a half duplex (two wires) RS-485 port.
272 config ETRAX_SERIAL_PORT3_TYPE_485FD
273 bool "Ser3 is a full duplex RS-485 port"
274 depends on ETRAX_RS485
276 Configure serial port 3 to be a full duplex (four wires) RS-485 port.
279 config ETRAX_SER3_DTR_BIT
280 string "Ser 3 DTR bit (empty = not used)"
281 depends on ETRAX_SERIAL_PORT3
283 config ETRAX_SER3_RI_BIT
284 string "Ser 3 RI bit (empty = not used)"
285 depends on ETRAX_SERIAL_PORT3
287 config ETRAX_SER3_DSR_BIT
288 string "Ser 3 DSR bit (empty = not used)"
289 depends on ETRAX_SERIAL_PORT3
291 config ETRAX_SER3_CD_BIT
292 string "Ser 3 CD bit (empty = not used)"
293 depends on ETRAX_SERIAL_PORT3
295 config ETRAX_SERIAL_PORT4
296 bool "Serial port 4 enabled"
297 depends on ETRAXFS_SERIAL && CRIS_MACH_ARTPEC3
299 Enables the ETRAX FS serial driver for ser4 (ttyS4).
302 prompt "Ser4 default port type"
303 depends on ETRAX_SERIAL_PORT4
304 default ETRAX_SERIAL_PORT4_TYPE_232
306 What DMA channel to use for ser4.
308 config ETRAX_SERIAL_PORT4_TYPE_232
309 bool "Ser4 is a RS-232 port"
311 Configure serial port 4 to be a RS-232 port.
313 config ETRAX_SERIAL_PORT4_TYPE_485HD
314 bool "Ser4 is a half duplex RS-485 port"
315 depends on ETRAX_RS485
317 Configure serial port 4 to be a half duplex (two wires) RS-485 port.
319 config ETRAX_SERIAL_PORT4_TYPE_485FD
320 bool "Ser4 is a full duplex RS-485 port"
321 depends on ETRAX_RS485
323 Configure serial port 4 to be a full duplex (four wires) RS-485 port.
327 prompt "Ser4 DMA in channel "
328 depends on ETRAX_SERIAL_PORT4
329 default ETRAX_SERIAL_PORT4_NO_DMA_IN
331 What DMA channel to use for ser4.
334 config ETRAX_SERIAL_PORT4_NO_DMA_IN
335 bool "Ser4 uses no DMA for input"
337 Do not use DMA for ser4 input.
339 config ETRAX_SERIAL_PORT4_DMA9_IN
340 bool "Ser4 uses DMA9 for input"
341 depends on ETRAX_SERIAL_PORT4
343 Enables the DMA9 input channel for ser4 (ttyS4).
344 If you do not enable DMA, an interrupt for each character will be
345 used when receiveing data.
346 Normally you want to use DMA, unless you use the DMA channel for
351 config ETRAX_SER4_DTR_BIT
352 string "Ser 4 DTR bit (empty = not used)"
353 depends on ETRAX_SERIAL_PORT4
355 config ETRAX_SER4_RI_BIT
356 string "Ser 4 RI bit (empty = not used)"
357 depends on ETRAX_SERIAL_PORT4
359 config ETRAX_SER4_DSR_BIT
360 string "Ser 4 DSR bit (empty = not used)"
361 depends on ETRAX_SERIAL_PORT4
363 config ETRAX_SER3_CD_BIT
364 string "Ser 4 CD bit (empty = not used)"
365 depends on ETRAX_SERIAL_PORT4
368 bool "RS-485 support"
369 depends on ETRAXFS_SERIAL
371 Enables support for RS-485 serial communication. For a primer on
372 RS-485, see <http://www.hw.cz/english/docs/rs485/rs485.html>.
374 config ETRAX_RS485_DISABLE_RECEIVER
375 bool "Disable serial receiver"
376 depends on ETRAX_RS485
378 It is necessary to disable the serial receiver to avoid serial
379 loopback. Not all products are able to do this in software only.
381 config ETRAX_AXISFLASHMAP
382 bool "Axis flash-map support"
383 depends on ETRAX_ARCH_V32
386 select MTD_CFI_AMDSTD
387 select MTD_JEDECPROBE
390 select MTD_PARTITIONS
392 select MTD_COMPLEX_MAPPINGS
394 This option enables MTD mapping of flash devices. Needed to use
395 flash memories. If unsure, say Y.
397 config ETRAX_SYNCHRONOUS_SERIAL
398 bool "Synchronous serial-port support"
399 depends on ETRAX_ARCH_V32
401 Enables the ETRAX FS synchronous serial driver.
403 config ETRAX_SYNCHRONOUS_SERIAL_PORT0
404 bool "Synchronous serial port 0 enabled"
405 depends on ETRAX_SYNCHRONOUS_SERIAL
407 Enabled synchronous serial port 0.
409 config ETRAX_SYNCHRONOUS_SERIAL0_DMA
410 bool "Enable DMA on synchronous serial port 0."
411 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
413 A synchronous serial port can run in manual or DMA mode.
414 Selecting this option will make it run in DMA mode.
416 config ETRAX_SYNCHRONOUS_SERIAL_PORT1
417 bool "Synchronous serial port 1 enabled"
418 depends on ETRAX_SYNCHRONOUS_SERIAL && ETRAXFS
420 Enabled synchronous serial port 1.
422 config ETRAX_SYNCHRONOUS_SERIAL1_DMA
423 bool "Enable DMA on synchronous serial port 1."
424 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
426 A synchronous serial port can run in manual or DMA mode.
427 Selecting this option will make it run in DMA mode.
429 config ETRAX_AXISFLASHMAP
430 bool "Axis flash-map support"
431 depends on ETRAX_ARCH_V32
434 select MTD_CFI_AMDSTD
435 select MTD_JEDECPROBE
438 select MTD_PARTITIONS
440 select MTD_COMPLEX_MAPPINGS
442 This option enables MTD mapping of flash devices. Needed to use
443 flash memories. If unsure, say Y.
445 config ETRAX_AXISFLASHMAP_MTD0WHOLE
446 bool "MTD0 is whole boot flash device"
447 depends on ETRAX_AXISFLASHMAP
450 When this option is not set, mtd0 refers to the first partition
451 on the boot flash device. When set, mtd0 refers to the whole
452 device, with mtd1 referring to the first partition etc.
454 config ETRAX_PTABLE_SECTOR
455 int "Byte-offset of partition table sector"
456 depends on ETRAX_AXISFLASHMAP
459 Byte-offset of the partition table in the first flash chip.
460 The default value is 64kB and should not be changed unless
461 you know exactly what you are doing. The only valid reason
462 for changing this is when the flash block size is bigger
463 than 64kB (e.g. when using two parallel 16 bit flashes).
465 config ETRAX_NANDFLASH
466 bool "NAND flash support"
467 depends on ETRAX_ARCH_V32
471 This option enables MTD mapping of NAND flash devices. Needed to use
472 NAND flash memories. If unsure, say Y.
474 config ETRAX_NANDBOOT
475 bool "Boot from NAND flash"
476 depends on ETRAX_NANDFLASH
478 This options enables booting from NAND flash devices.
479 Say Y if your boot code, kernel and root file system is in
480 NAND flash. Say N if they are in NOR flash.
484 depends on ETRAX_ARCH_V32
486 This option enables the I2C driver used by e.g. the RTC driver.
488 config ETRAX_V32_I2C_DATA_PORT
489 string "I2C data pin"
492 The pin to use for I2C data.
494 config ETRAX_V32_I2C_CLK_PORT
495 string "I2C clock pin"
498 The pin to use for I2C clock.
502 depends on ETRAX_ARCH_V32
504 Enables the ETRAX general port device (major 120, minors 0-4).
505 You can use this driver to access the general port bits. It supports
507 #include <linux/etraxgpio.h>
508 fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob
509 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set);
510 ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear);
511 err = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READ_INBITS), &val);
512 Remember that you need to setup the port directions appropriately in
513 the General configuration.
515 config ETRAX_VIRTUAL_GPIO
516 bool "Virtual GPIO support"
517 depends on ETRAX_GPIO
519 Enables the virtual Etrax general port device (major 120, minor 6).
520 It uses an I/O expander for the I2C-bus.
522 config ETRAX_VIRTUAL_GPIO_INTERRUPT_PA_PIN
523 int "Virtual GPIO interrupt pin on PA pin"
525 depends on ETRAX_VIRTUAL_GPIO
527 The pin to use on PA for virtual gpio interrupt.
529 config ETRAX_PA_CHANGEABLE_DIR
530 hex "PA user changeable dir mask"
531 depends on ETRAX_GPIO
532 default "0x00" if ETRAXFS
533 default "0x00000000" if !ETRAXFS
535 This is a bitmask (8 bits) with information of what bits in PA that a
536 user can change direction on using ioctl's.
537 Bit set = changeable.
538 You probably want 0 here, but it depends on your hardware.
540 config ETRAX_PA_CHANGEABLE_BITS
541 hex "PA user changeable bits mask"
542 depends on ETRAX_GPIO
543 default "0x00" if ETRAXFS
544 default "0x00000000" if !ETRAXFS
546 This is a bitmask (8 bits) with information of what bits in PA
547 that a user can change the value on using ioctl's.
548 Bit set = changeable.
550 config ETRAX_PB_CHANGEABLE_DIR
551 hex "PB user changeable dir mask"
552 depends on ETRAX_GPIO
553 default "0x00000" if ETRAXFS
554 default "0x00000000" if !ETRAXFS
556 This is a bitmask (18 bits) with information of what bits in PB
557 that a user can change direction on using ioctl's.
558 Bit set = changeable.
559 You probably want 0 here, but it depends on your hardware.
561 config ETRAX_PB_CHANGEABLE_BITS
562 hex "PB user changeable bits mask"
563 depends on ETRAX_GPIO
564 default "0x00000" if ETRAXFS
565 default "0x00000000" if !ETRAXFS
567 This is a bitmask (18 bits) with information of what bits in PB
568 that a user can change the value on using ioctl's.
569 Bit set = changeable.
571 config ETRAX_PC_CHANGEABLE_DIR
572 hex "PC user changeable dir mask"
573 depends on ETRAX_GPIO
574 default "0x00000" if ETRAXFS
575 default "0x00000000" if !ETRAXFS
577 This is a bitmask (18 bits) with information of what bits in PC
578 that a user can change direction on using ioctl's.
579 Bit set = changeable.
580 You probably want 0 here, but it depends on your hardware.
582 config ETRAX_PC_CHANGEABLE_BITS
583 hex "PC user changeable bits mask"
584 depends on ETRAX_GPIO
585 default "0x00000" if ETRAXFS
586 default "0x00000000" if ETRAXFS
588 This is a bitmask (18 bits) with information of what bits in PC
589 that a user can change the value on using ioctl's.
590 Bit set = changeable.
592 config ETRAX_PD_CHANGEABLE_DIR
593 hex "PD user changeable dir mask"
594 depends on ETRAX_GPIO && ETRAXFS
597 This is a bitmask (18 bits) with information of what bits in PD
598 that a user can change direction on using ioctl's.
599 Bit set = changeable.
600 You probably want 0x00000 here, but it depends on your hardware.
602 config ETRAX_PD_CHANGEABLE_BITS
603 hex "PD user changeable bits mask"
604 depends on ETRAX_GPIO && ETRAXFS
607 This is a bitmask (18 bits) with information of what bits in PD
608 that a user can change the value on using ioctl's.
609 Bit set = changeable.
611 config ETRAX_PE_CHANGEABLE_DIR
612 hex "PE user changeable dir mask"
613 depends on ETRAX_GPIO && ETRAXFS
616 This is a bitmask (18 bits) with information of what bits in PE
617 that a user can change direction on using ioctl's.
618 Bit set = changeable.
619 You probably want 0x00000 here, but it depends on your hardware.
621 config ETRAX_PE_CHANGEABLE_BITS
622 hex "PE user changeable bits mask"
623 depends on ETRAX_GPIO && ETRAXFS
626 This is a bitmask (18 bits) with information of what bits in PE
627 that a user can change the value on using ioctl's.
628 Bit set = changeable.
630 config ETRAX_PV_CHANGEABLE_DIR
631 hex "PV user changeable dir mask"
632 depends on ETRAX_VIRTUAL_GPIO
635 This is a bitmask (16 bits) with information of what bits in PV
636 that a user can change direction on using ioctl's.
637 Bit set = changeable.
638 You probably want 0x0000 here, but it depends on your hardware.
640 config ETRAX_PV_CHANGEABLE_BITS
641 hex "PV user changeable bits mask"
642 depends on ETRAX_VIRTUAL_GPIO
645 This is a bitmask (16 bits) with information of what bits in PV
646 that a user can change the value on using ioctl's.
647 Bit set = changeable.
650 bool "Cardbus support"
651 depends on ETRAX_ARCH_V32
654 Enabled the ETRAX Cardbus driver.
658 depends on ETRAX_CARDBUS
661 config ETRAX_IOP_FW_LOAD
662 tristate "IO-processor hotplug firmware loading support"
663 depends on ETRAX_ARCH_V32
666 Enables IO-processor hotplug firmware loading support.
668 config ETRAX_STREAMCOPROC
669 tristate "Stream co-processor driver enabled"
670 depends on ETRAX_ARCH_V32
672 This option enables a driver for the stream co-processor
673 for cryptographic operations.
675 source drivers/mmc/Kconfig
678 tristate "MMC/SD host driver using IO-processor"
679 depends on ETRAX_ARCH_V32 && MMC
681 This option enables the SD/MMC host controller interface.
682 The host controller is implemented using the built in
683 IO-Processor. Only the SPU is used in this implementation.
686 # Make this one of several "choices" (possible simultaneously but
687 # suggested uniquely) when an IOP driver emerges for "real" MMC/SD
690 depends on !ETRAX_MMC_IOP
694 select ETRAX_SPI_MMC_BOARD
696 # For the parts that can't be a module (due to restrictions in
697 # framework elsewhere).
698 config ETRAX_SPI_MMC_BOARD
702 # While the board info is MMC_SPI only, the drivers are written to be
703 # independent of MMC_SPI, so we'll keep SPI non-dependent on the
704 # MMC_SPI config choices (well, except for a single depends-on-line
705 # for the board-info file until a separate non-MMC SPI board file
707 # FIXME: When that happens, we'll need to be able to ask for and
708 # configure non-MMC SPI ports together with MMC_SPI ports (if multiple
709 # SPI ports are enabled).
711 config SPI_ETRAX_SSER
713 depends on SPI_MASTER && ETRAX_ARCH_V32 && EXPERIMENTAL
716 This enables using an synchronous serial (sser) port as a
717 SPI master controller on Axis ETRAX FS and later. The
718 driver can be configured to use any sser port.
720 config SPI_ETRAX_GPIO
722 depends on SPI_MASTER && ETRAX_ARCH_V32 && EXPERIMENTAL
725 This enables using GPIO pins port as a SPI master controller
726 on Axis ETRAX FS and later. The driver can be configured to
729 config ETRAX_SPI_SSER0
730 tristate "SPI using synchronous serial port 0 (sser0)"
731 depends on ETRAX_SPI_MMC
732 default m if MMC_SPI=m
733 default y if MMC_SPI=y
734 default y if MMC_SPI=n
735 select SPI_ETRAX_SSER
737 Say Y for an MMC/SD socket connected to synchronous serial port 0,
738 or for devices using the SPI protocol on that port. Say m if you
739 want to build it as a module, which will be named spi_crisv32_sser.
740 (You need to select MMC separately.)
742 config ETRAX_SPI_SSER0_DMA
743 bool "DMA for SPI on sser0 enabled"
744 depends on ETRAX_SPI_SSER0
745 depends on !ETRAX_SERIAL_PORT1_DMA4_OUT && !ETRAX_SERIAL_PORT1_DMA5_IN
748 Say Y if using DMA (dma4/dma5) for SPI on synchronous serial port 0.
750 config ETRAX_SPI_MMC_CD_SSER0_PIN
751 string "MMC/SD card detect pin for SPI on sser0"
752 depends on ETRAX_SPI_SSER0 && MMC_SPI
755 The pin to use for SD/MMC card detect. This pin should be pulled up
756 and grounded when a card is present. If defined as " " (space), no
757 pin is selected. A card must then always be inserted for proper
760 config ETRAX_SPI_MMC_WP_SSER0_PIN
761 string "MMC/SD card write-protect pin for SPI on sser0"
762 depends on ETRAX_SPI_SSER0 && MMC_SPI
765 The pin to use for the SD/MMC write-protect signal for a memory
766 card. If defined as " " (space), the card is considered writable.
768 config ETRAX_SPI_SSER1
769 tristate "SPI using synchronous serial port 1 (sser1)"
770 depends on ETRAX_SPI_MMC
771 default m if MMC_SPI=m && ETRAX_SPI_SSER0=n
772 default y if MMC_SPI=y && ETRAX_SPI_SSER0=n
773 default y if MMC_SPI=n && ETRAX_SPI_SSER0=n
774 select SPI_ETRAX_SSER
776 Say Y for an MMC/SD socket connected to synchronous serial port 1,
777 or for devices using the SPI protocol on that port. Say m if you
778 want to build it as a module, which will be named spi_crisv32_sser.
779 (You need to select MMC separately.)
781 config ETRAX_SPI_SSER1_DMA
782 bool "DMA for SPI on sser1 enabled"
783 depends on ETRAX_SPI_SSER1 && !ETRAX_ETHERNET_IFACE1
784 depends on !ETRAX_SERIAL_PORT0_DMA6_OUT && !ETRAX_SERIAL_PORT0_DMA7_IN
787 Say Y if using DMA (dma6/dma7) for SPI on synchronous serial port 1.
789 config ETRAX_SPI_MMC_CD_SSER1_PIN
790 string "MMC/SD card detect pin for SPI on sser1"
791 depends on ETRAX_SPI_SSER1 && MMC_SPI
794 The pin to use for SD/MMC card detect. This pin should be pulled up
795 and grounded when a card is present. If defined as " " (space), no
796 pin is selected. A card must then always be inserted for proper
799 config ETRAX_SPI_MMC_WP_SSER1_PIN
800 string "MMC/SD card write-protect pin for SPI on sser1"
801 depends on ETRAX_SPI_SSER1 && MMC_SPI
804 The pin to use for the SD/MMC write-protect signal for a memory
805 card. If defined as " " (space), the card is considered writable.
807 config ETRAX_SPI_GPIO
808 tristate "Bitbanged SPI using gpio pins"
809 depends on ETRAX_SPI_MMC
810 select SPI_ETRAX_GPIO
811 default m if MMC_SPI=m && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
812 default y if MMC_SPI=y && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
813 default y if MMC_SPI=n && ETRAX_SPI_SSER0=n && ETRAX_SPI_SSER1=n
815 Say Y for an MMC/SD socket connected to general I/O pins (but not
816 a complete synchronous serial ports), or for devices using the SPI
817 protocol on general I/O pins. Slow and slows down the system.
818 Say m to build it as a module, which will be called spi_crisv32_gpio.
819 (You need to select MMC separately.)
821 # The default match that of sser0, only because that's how it was tested.
822 config ETRAX_SPI_CS_PIN
823 string "SPI chip select pin"
824 depends on ETRAX_SPI_GPIO
827 The pin to use for SPI chip select.
829 config ETRAX_SPI_CLK_PIN
830 string "SPI clock pin"
831 depends on ETRAX_SPI_GPIO
834 The pin to use for the SPI clock.
836 config ETRAX_SPI_DATAIN_PIN
837 string "SPI MISO (data in) pin"
838 depends on ETRAX_SPI_GPIO
841 The pin to use for SPI data in from the device.
843 config ETRAX_SPI_DATAOUT_PIN
844 string "SPI MOSI (data out) pin"
845 depends on ETRAX_SPI_GPIO
848 The pin to use for SPI data out to the device.
850 config ETRAX_SPI_MMC_CD_GPIO_PIN
851 string "MMC/SD card detect pin for SPI using gpio (space for none)"
852 depends on ETRAX_SPI_GPIO && MMC_SPI
855 The pin to use for SD/MMC card detect. This pin should be pulled up
856 and grounded when a card is present. If defined as " " (space), no
857 pin is selected. A card must then always be inserted for proper
860 config ETRAX_SPI_MMC_WP_GPIO_PIN
861 string "MMC/SD card write-protect pin for SPI using gpio (space for none)"
862 depends on ETRAX_SPI_GPIO && MMC_SPI
865 The pin to use for the SD/MMC write-protect signal for a memory
866 card. If defined as " " (space), the card is considered writable.
868 # Avoid choices causing non-working configs by conditionalizing the inclusion.
870 source drivers/spi/Kconfig